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