misc/dist: fix Windows breakage

The files could use some attention on the
Windows side but better to wait until after
the upcoming release.

R=golang-dev, adg
CC=golang-dev
https://codereview.appspot.com/7621044

Committer: Andrew Gerrand <adg@golang.org>
runtime: correct mmap return value checking on netbsd/openbsd

The current SysAlloc implementation suffers from a signed vs unsigned
comparision bug. Since the error code from mmap is negated, the
unsigned comparision of v < 4096 is always false on error. Fix this
by switching to the darwin/freebsd/linux mmap model and leave the mmap
return value unmodified.

R=golang-dev, r
CC=golang-dev
https://codereview.appspot.com/7870044
os/exec: fix fd leak with Std*Pipe + LookPath

If LookPath in Command fails, sets a sticky error, and then
StdinPipe, StdoutPipe, or StderrPipe were called, those pipe
fds were never cleaned up.

Fixes issue 5071

R=golang-dev, rogpeppe
CC=golang-dev
https://codereview.appspot.com/7799046
database/sql: allow simultaneous queries, etc in a Tx

Now that revision 0c029965805f is in, it's easy
to guarantee that we never access a driver.Conn
concurrently, per the database/sql/driver contract,
so we can remove this overlarge mutex.

Fixes issue 3857

R=golang-dev, adg
CC=golang-dev
https://codereview.appspot.com/7707047
runtime: fix build for NetBSD/ARM

R=golang-dev, jsing
CC=golang-dev
https://codereview.appspot.com/7597046
runtime: fix tv_sec 32-bit overflows in sleep routines.

Fixes issue 5063.

R=golang-dev, minux.ma, rsc
CC=golang-dev
https://codereview.appspot.com/7876043
net/http: shorten and clean up TestTransportConcurrency

R=golang-dev, rsc
CC=golang-dev
https://codereview.appspot.com/7817044
net/http: add StripPrefix example; simplify code

The example is the same as the FileServer one, but
it's relevant for both.

Also use strings.TrimPrefix while I'm here.

R=golang-dev, rsc
CC=golang-dev
https://codereview.appspot.com/7598046
cmd/gc: steal escape analysis info when inlining

Usually, there is no esc info when inlining, but there will be when generating inlined wrapper functions.

If we don't use this information, we get invalid addresses on the stack.

Fixes issue 5056.

R=golang-dev, rsc
CC=golang-dev, remyoudompheng
https://codereview.appspot.com/7850045
doc/go1.1.html: document some of the library changes.
Still much to do, but this is a start.

R=golang-dev, adg, bradfitz, remyoudompheng
CC=golang-dev
https://codereview.appspot.com/7729046
database/sql: add DB.SetMaxIdleConns

Update issue 4805

R=golang-dev, r
CC=golang-dev
https://codereview.appspot.com/7634045
database/sql: doc cleanup on the DB type

R=golang-dev, adg
CC=golang-dev
https://codereview.appspot.com/7865044
doc/go1.1.html: document the surrogate and BOM changes

R=golang-dev, adg
CC=golang-dev
https://codereview.appspot.com/7853048
runtime: fix erroneous overflow protection on netbsd/openbsd semasleep.

On NetBSD tv_sec is already an int64 so no need for a test.

On OpenBSD, semasleep expects a Unix time as argument,
and 1<<30 is in 2004.

R=golang-dev, iant
CC=golang-dev
https://codereview.appspot.com/7810044
lib/godoc: convert indentation to tabs.

R=golang-dev, dsymonds, rsc
CC=golang-dev
https://codereview.appspot.com/7497048

Committer: Russ Cox <rsc@golang.org>
misc/emacs: Add support for godef

godef[1][2] is a third party tool for printing information about
expressions, especially the location of their definition. This can be
used to implement a "jump to definition" function. Unlike
cross-language solutions like ctags, godef does not require an index,
operates on the Go AST instead of symbols and works across packages,
including the standard library.

This patch implements two new public functions: godef-describe (C-c
C-d) and godef-jump (C-d C-j). godef-describe describes the expression
at point, printing its type, and godef-jump jumps to its definition.

[1]: https://code.google.com/p/rog-go/source/browse/exp/cmd/godef/
[2]: go get code.google.com/p/rog-go/exp/cmd/godef

R=adonovan, cw, patrick.allen.higgins, sameer
CC=golang-dev
https://codereview.appspot.com/7781043

Committer: Alan Donovan <adonovan@google.com>
cmd/fix: revert IPv6 scoped address zone support of IPNet

R=golang-dev, bradfitz
CC=golang-dev
https://codereview.appspot.com/7554051
net: make use of reflect.DeepEqual in IP manipulation tests

Also applies camel style to test case holders.

R=golang-dev, r
CC=golang-dev
https://codereview.appspot.com/7884043
runtime: add missing copyright

R=golang-dev, rsc
CC=golang-dev
https://codereview.appspot.com/7884045
unicode: remove an extra space

R=golang-dev, rsc
CC=golang-dev
https://codereview.appspot.com/7856044

Committer: Russ Cox <rsc@golang.org>