Anthony Martin
24b2f48a4a
crypto/rand: add utility functions for number generation
...
This code is extracted from crypto/rsa with
a few variables renamed and a comment fixed.
R=agl, rsc, agl
CC=golang-dev
https://golang.org/cl/4446068
2011-05-18 18:55:06 -07:00
Brad Fitzpatrick
4ffff35abd
http: Client.Do should follow redirects for GET and HEAD
...
It's documented as such, but it was never wired up
after Transport went in and Head was fixed.
If people don't want redirects, that's what RoundTripper/
Transport are for. Or a custom redirect policy.
R=golang-dev, kevlar
CC=golang-dev
https://golang.org/cl/4526065
2011-05-18 17:17:26 -07:00
Mikio Hara
1d550bdedf
syscall: add netlink support for linux/386, linux/amd64, linux/arm
...
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/4535078
2011-05-18 16:33:41 -07:00
Nigel Tao
0a2650f398
image/jpeg: small memory layout optimization for encoding.
...
Before:
jpeg.BenchmarkEncodeRGBOpaque ... 23.29 MB/s
jpeg.BenchmarkEncodeRGBOpaque ... 23.27 MB/s
jpeg.BenchmarkEncodeRGBOpaque ... 23.17 MB/s
After:
jpeg.BenchmarkEncodeRGBOpaque ... 23.42 MB/s
jpeg.BenchmarkEncodeRGBOpaque ... 23.34 MB/s
jpeg.BenchmarkEncodeRGBOpaque ... 23.33 MB/s
R=rsc
CC=golang-dev
https://golang.org/cl/4538077
2011-05-18 14:39:37 -07:00
Jonathan Allie
e7db6d78a2
crypto/x509: add support for parsing and verifying DSA signatures
...
(DSA with SHA1, DSA with SHA256). Cleanup getSignatureFromOID
function.
R=agl, agl, rsc
CC=golang-dev
https://golang.org/cl/4530055
2011-05-18 12:59:04 -07:00
Robert Griesemer
bda36cf3ab
fmt: fix minor documentation nits
...
R=r, rsc
CC=golang-dev
https://golang.org/cl/4556041
2011-05-18 11:34:19 -07:00
Russ Cox
975ba88e0e
cgo: use packed struct to fix Windows behavior
...
R=golang-dev, mattn.jp, jcowgar, iant
CC=golang-dev
https://golang.org/cl/4535080
2011-05-18 14:08:12 -04:00
Robert Griesemer
82ddf97094
big: support %v and # modifier, better handling of unknown formats
...
R=r
CC=golang-dev
https://golang.org/cl/4536065
2011-05-18 11:02:08 -07:00
Nigel Tao
8e26a644ca
image/jpeg: make writeDQT do fewer array copies.
...
R=rsc, r
CC=golang-dev
https://golang.org/cl/4536069
2011-05-18 10:56:20 -07:00
Mikio Hara
9cd674be93
syscall: adjust freebsd syscalls.master URL properly
...
R=golang-dev, devon.odell
CC=golang-dev
https://golang.org/cl/4552051
2011-05-18 13:28:01 -04:00
Robert Hencke
c8727c81bb
pkg: spelling tweaks, A-H
...
R=ality, bradfitz, rsc, dsymonds, adg, qyzhai, dchest
CC=golang-dev
https://golang.org/cl/4536063
2011-05-18 13:14:56 -04:00
Wei Guangjing
b256358008
6l: fix emit windows dwarf sections
...
R=alex.brainman, rsc
CC=golang-dev, vcc.163
https://golang.org/cl/4532069
2011-05-18 13:12:38 -04:00
Brad Fitzpatrick
feca99fd6f
http: add Transport.ProxySelector
...
R=mattn.jp, rsc
CC=golang-dev
https://golang.org/cl/4528077
2011-05-18 09:23:29 -07:00
Mikio Hara
cef64d8e2b
syscall: add TODO about required manual corrections
...
R=golang-dev, dave, rsc
CC=golang-dev
https://golang.org/cl/4553042
2011-05-18 10:51:45 -04:00
Nigel Tao
5f7b0bc366
image/jpeg: fix bounds calculation for grayscale JPEG images.
...
Also add grayscale test cases for image/decode_test.
R=r
CC=golang-dev
https://golang.org/cl/4526063
2011-05-17 15:47:14 -07:00
Robert Griesemer
9fa6cb2f2b
big: better support for string conversions
...
Fixes #1842 .
R=r
CC=golang-dev
https://golang.org/cl/4517081
2011-05-17 15:32:38 -07:00
Brad Fitzpatrick
9ea0bd3986
http: add http.SetCookie(ResponseWriter, *Cookie)
...
R=golang-dev, gary.burd, rsc
CC=golang-dev
https://golang.org/cl/4526062
2011-05-17 15:07:44 -07:00
Roger Peppe
83fd82b349
big: add Int methods to act on numbered bits.
...
Speeds up setting individual bits by ~75%, useful
when using big.Int as a bit set.
R=gri, rsc
CC=golang-dev
https://golang.org/cl/4538053
2011-05-17 13:38:21 -07:00
Robert Griesemer
8f57f49398
go/ast resolver: properly maintain map of package global imports
...
- add Data field to ast.Object
- for package objects, the Data field holds the package scope
- resolve several TODOs
R=rsc
CC=golang-dev
https://golang.org/cl/4538069
2011-05-17 11:22:52 -07:00
Rob Pike
1242c76794
reflect: make allocation test less fragile.
...
When GOMAXPROCS>1, the testing framework runs in parallel with the
test itself and may do a small number of allocations, so allow the
"noAllocs" condition to admit just a few.
Fixes #1782 .
R=rsc
CC=golang-dev, rsc
https://golang.org/cl/4533041
2011-05-17 11:15:14 -04:00
Andrew Gerrand
b96fc594ba
doc: add Korean Go site
...
R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/4515092
2011-05-17 14:24:32 +10:00
Robert Hencke
3faa490f89
pkg: fix new incorrect prints found by govet
...
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/4539063
2011-05-16 21:15:06 -07:00
Andrew Gerrand
4fb5857596
doc: add I/O 2011 talks to talks/, docs.html, and front page.
...
R=rsc
CC=golang-dev
https://golang.org/cl/4516057
2011-05-17 13:46:54 +10:00
Mikio Hara
db36e03692
net, http: add and make use of IP address scope identification API
...
Add seven methods to IP struct: IsUnspecified, IsLoopback,
IsMulticast, IsInterfaceLocalMulticast, IsLinkLocalMulticast,
IsLinkLocalUnicast and IsGlobalUnicast.
R=bradfitz, rsc
CC=golang-dev
https://golang.org/cl/4515083
2011-05-16 23:21:13 -04:00
Alex Brainman
5342aedeed
filepath: make EvalSymlinks work on Windows
...
Fixes #1830 .
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/4526060
2011-05-17 12:33:36 +10:00
Anthony Martin
f570d9d765
8g: fix conversion from float to uint64
...
The code for converting negative floats was
incorrectly loading an FP control word from
the stack without ever having stored it there.
Thanks to Lars Pensjö for reporting this bug.
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/4515091
2011-05-16 22:14:56 -04:00
Rob Pike
de7c28fe76
image/gif: enable images with <8 bits per pixel.
...
R=nigeltao
CC=golang-dev
https://golang.org/cl/4552042
2011-05-16 16:00:41 -07:00
Rob Pike
ff1093852f
GIF: support decoding of interlaced images.
...
R=nigeltao
CC=golang-dev
https://golang.org/cl/4535073
2011-05-16 15:17:17 -07:00
Gary Burd
aea17570c0
net: sort records returned by LookupSRV
...
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/4518061
2011-05-16 17:48:00 -04:00
Russ Cox
8ef0d181f6
A+C: Gary Burd (individual CLA)
...
R=golang-dev, gri
CC=golang-dev
https://golang.org/cl/4519064
2011-05-16 17:47:54 -04:00
Russ Cox
9f03d4a3f7
doc/go_mem.html: close happens before receive on closed channel
...
R=golang-dev, gri
CC=golang-dev
https://golang.org/cl/4551042
2011-05-16 17:03:51 -04:00
Mikio Hara
2ddcad96d7
net: protocol family adaptive address family selection
...
This CL will help to make an adaptive address family
selection possible when an any address family, vague
network string such as "ip", "tcp" or "udp" is passed
to Dial and Listen API.
Fixes #1769 .
R=bradfitz, rsc
CC=golang-dev
https://golang.org/cl/4438066
2011-05-16 17:03:06 -04:00
Alexey Borzenkov
b701cf3332
runtime: make StackSystem part of StackGuard
...
Fixes #1779
R=rsc
CC=golang-dev
https://golang.org/cl/4543052
2011-05-16 16:57:49 -04:00
Russ Cox
e69b9ddd42
ld: do not emit reference to dynamic library named ""
...
Fixes #1778 .
R=ken2
CC=golang-dev
https://golang.org/cl/4550047
2011-05-16 16:24:17 -04:00
Russ Cox
2d310a0087
5c, 5g: another attempt at silencing gcc
...
R=ken2
CC=golang-dev
https://golang.org/cl/4535074
2011-05-16 16:15:13 -04:00
Russ Cox
40745a579c
5l: delete pre-ARMv4 instruction implementations
...
Add implementation for addr<->reg short moves.
Align large data, for ARM.
R=ken2
CC=golang-dev
https://golang.org/cl/4545050
2011-05-16 16:14:37 -04:00
Adam Langley
d84415d8f0
crypto/x509: support DSA public keys in X.509 certs.
...
R=agl
CC=golang-dev
https://golang.org/cl/4517072
2011-05-16 11:16:48 -07:00
Brad Fitzpatrick
3587085fb7
os: fix Windows build from earlier readdir change
...
It worked originally, until I renamed a variable. :/
dir_windows.go:11: undefined: e
http://godashboard.appspot.com/log/092397f2ac7a1e6e812dc6bebc65b40b02368700a119343d5cee5e2e89e0fde5
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/4535072
2011-05-16 10:27:49 -07:00
Nigel Tao
0d111a62e1
image/jpeg: decode grayscale images, not just color images.
...
Also add an image package test that DecodeConfig returns the same
ColorModel as what Decode would.
R=r, r
CC=golang-dev
https://golang.org/cl/4529065
2011-05-16 10:13:17 -07:00
Brad Fitzpatrick
4da5cd4cd6
os: make Readdir & Readdirnames return os.EOF at end
...
Fixes #678
R=rsc, r, alex.brainman, bsiegert, jdpoirier
CC=golang-dev
https://golang.org/cl/4536058
2011-05-16 09:26:16 -07:00
Nigel Tao
703b092779
spec: fix copy to return "number of elements copied", not "number
...
of arguments copied".
R=gri, r
CC=golang-dev
https://golang.org/cl/4550041
2011-05-15 16:04:37 -07:00
Nigel Tao
77d66f4131
strings: make Reader.Read use copy instead of an explicit loop.
...
R=r, bradfitz, r
CC=golang-dev
https://golang.org/cl/4529064
2011-05-15 13:14:10 -07:00
Robert Hencke
d49844bcce
gofmt: skip bug340.go in test.sh
...
bug340.go is a test case for a syntax error
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/4523069
2011-05-14 23:06:50 -07:00
Robert Hencke
cc2fc02467
pkg: fix incorrect prints found by govet
...
Also, clarify some error messages
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/4548042
2011-05-14 20:43:18 -07:00
Brad Fitzpatrick
870791a5ac
unicode: build maketables during testshort too
...
Fixes #1825
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/4535066
2011-05-14 16:54:49 -07:00
Adam Langley
4eb67563f6
crypto/openpgp: change PublicKey.Serialize to include the header.
...
Signature.Serialize already does this and they should be consistent.
R=bradfitz
CC=golang-dev
https://golang.org/cl/4521064
2011-05-14 19:13:12 -04:00
David Symonds
816f4bb1d8
misc/vim: drop indent support for jump labels.
...
It interferes with keys in composite literals,
which are much more common.
R=dchest, jnwhiteh, rlight2
CC=golang-dev
https://golang.org/cl/4521065
2011-05-14 09:45:32 -07:00
Brad Fitzpatrick
b2400c28cf
fix windows build: http.Get finalURL removal missed earlier
...
Not sure why this only broke Windows. Make test is only run
on windows for that directory?
TBR=golang-dev
R=golang-dev
CC=golang-dev
https://golang.org/cl/4545044
2011-05-13 18:56:39 -07:00
Robert Griesemer
c35c672020
go/types: fix (some) builds
...
The position (type) for which the "invalid cycle" error
message is reported depends on which type in a cycle of
types is first checked. Which one is first depends on
the iteration order of maps which is different on
different platforms. For now, disable this error message.
R=rsc
CC=golang-dev
https://golang.org/cl/4527059
2011-05-13 18:33:04 -07:00
Rob Pike
9ada841f4d
contrib*.html: make "golang-dev" the default reviewer.
...
also make a couple of links more visible and fix an id= href.
R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/4517063
2011-05-13 16:25:31 -07:00