lib9: remove unreferenced externs and getuser()

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

Committer: Russ Cox <rsc@golang.org>
time: clarify why timer.Stop and ticker.Stop don't close the channel

R=golang-dev, r
CC=golang-dev
http://codereview.appspot.com/6818106
cmd/api: bug fix for goapi's lame type checker

This is blocking me submitting the net fd timeout
CL, since goapi chokes on my constant.

The much more extensive fix to goapi's type checker
in pending review in https://codereview.appspot.com/6742050

But I'd rather get this quick fix in first.

R=golang-dev, mikioh.mikioh
CC=golang-dev
http://codereview.appspot.com/6818104
net: close fds eagerly in DialTimeout

Integrates with the pollserver now.

Uses the old implementation on windows and plan9.

Fixes issue 2631

R=paul, iant, adg, bendaglish, rsc
CC=golang-dev
http://codereview.appspot.com/6815049
runtime: fix instrumentation of slice append for race detection

R=golang-dev, iant
CC=golang-dev
http://codereview.appspot.com/6819107
runtime: re-enable crash test on NetBSD

Re-enable the crash tests on NetBSD now that the issue has been
identified and fixed.

R=golang-dev, bradfitz
CC=golang-dev
http://codereview.appspot.com/6813100
test: run some more tests by default

R=golang-dev, remyoudompheng, iant, rsc
CC=golang-dev
http://codereview.appspot.com/6833043
net: fix non-unixen build

R=golang-dev, bradfitz
CC=golang-dev
http://codereview.appspot.com/6813101
cmd/gc: fix export of inlined function body with type guard

When exporting a body containing
        x, ok := v.(Type)

the definition for Type was not being included, so when the body
was actually used, it would cause an "unknown type" compiler error.

Fixes issue 4370.

R=ken2
CC=golang-dev
http://codereview.appspot.com/6827064
archive/tar: accept binary format when reading numeric header fields.

Fixes issue 4358.

R=golang-dev, r
CC=golang-dev
http://codereview.appspot.com/6840043
test: change index.go to test size of int, not GOARCH == "amd64"

Fixes the test to work correctly on other platforms with
64-bit ints, like Alpha.

R=golang-dev, bradfitz
CC=golang-dev
http://codereview.appspot.com/6822099
runtime: re-enable crash test on FreeBSD

It also passes on FreeBSD.

R=golang-dev, bradfitz
CC=golang-dev
http://codereview.appspot.com/6812103
net: consolidate multiple init functions

R=golang-dev, bradfitz
CC=golang-dev
http://codereview.appspot.com/6819117
runtime: use vDSO clock_gettime for time.now & runtime.nanotime on Linux/amd64
Performance improvement aside, time.Now() now gets real nanosecond resolution
on supported systems.

Benchmark done on Core i7-2600 @ 3.40GHz with kernel 3.5.2-gentoo.
original vDSO gettimeofday:
BenchmarkNow    100000000               27.4 ns/op
new vDSO gettimeofday fallback:
BenchmarkNow    100000000               27.6 ns/op
new vDSO clock_gettime:
BenchmarkNow    100000000               24.4 ns/op

R=golang-dev, bradfitz, iant, iant
CC=golang-dev
http://codereview.appspot.com/6814103
runtime/pprof: fix typo in comment

R=golang-dev, bradfitz
CC=golang-dev
http://codereview.appspot.com/6810102
cmd/go: fix selection of packages for testing
Currently it works incorrectly if user specifies own build tags
and with race detection (e.g. runtime/race is not selected,
because it contains only test files with +build race).

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