]> Cypherpunks.ru repositories - gostls13.git/log
gostls13.git
13 years agorelease.2010-07-14 weekly.2010-07-14
Andrew Gerrand [Thu, 15 Jul 2010 03:04:04 +0000 (13:04 +1000)]
release.2010-07-14

R=rsc
CC=golang-dev
https://golang.org/cl/1844041

13 years agomime/multipart and HTTP multipart/form-data support
Brad Fitzpatrick [Thu, 15 Jul 2010 00:26:14 +0000 (17:26 -0700)]
mime/multipart and HTTP multipart/form-data support

Somewhat of a work-in-progress (in that MIME is a large spec), but this is
functional and enough for discussion and/or code review.

In addition to the unit tests, I've tested with curl and Chrome with
a variety of test files, making sure the digests of files are unaltered
when read via a multipart Part.

R=rsc, adg, dsymonds1, agl1
CC=golang-dev
https://golang.org/cl/1681049

13 years agoos: use /tmp again
Russ Cox [Thu, 15 Jul 2010 00:25:46 +0000 (17:25 -0700)]
os: use /tmp again

R=adg
CC=golang-dev
https://golang.org/cl/1823041

13 years agowindows: append executable extension (done as per Russ' suggestion)
Joe Poirier [Thu, 15 Jul 2010 00:21:13 +0000 (17:21 -0700)]
windows: append executable extension (done as per Russ' suggestion)

R=rsc
CC=brainman, golang-dev
https://golang.org/cl/1690053

13 years agocgo: various bug fixes
Russ Cox [Thu, 15 Jul 2010 00:17:53 +0000 (17:17 -0700)]
cgo: various bug fixes

* remember #defined names, so that C.stdout can refer
  to the real name (on OS X) __stdoutp.
* better handling of #defined constant expressions
* allow n, err = C.strtol("asdf", 0, 123) to get errno as os.Error
* write all output files to current directory
* don't require gcc output if there was no input

Fixes #533.
Fixes #709.
Fixes #756.

R=r
CC=dho, golang-dev, iant
https://golang.org/cl/1734047

13 years agocodereview: Fix for Mercurial >= 1.6
Evan Shaw [Thu, 15 Jul 2010 00:17:04 +0000 (17:17 -0700)]
codereview: Fix for Mercurial >= 1.6

R=rsc, adg, rsc1
CC=golang-dev
https://golang.org/cl/1804041

13 years agogo spec: clarification of channel close()
Robert Griesemer [Wed, 14 Jul 2010 23:09:22 +0000 (16:09 -0700)]
go spec: clarification of channel close()

R=r, rsc
CC=golang-dev
https://golang.org/cl/1766042

13 years agotutorial: show how to compile helloworld3, which depends on ./file
Rob Pike [Wed, 14 Jul 2010 20:29:12 +0000 (13:29 -0700)]
tutorial: show how to compile helloworld3, which depends on ./file
make shell prompts consistent

R=rsc
CC=golang-dev
https://golang.org/cl/1824042

13 years agochannel tests: added a couple of tests with closed channels
Robert Griesemer [Wed, 14 Jul 2010 20:18:57 +0000 (13:18 -0700)]
channel tests: added a couple of tests with closed channels

R=rsc
CC=golang-dev
https://golang.org/cl/1774047

13 years agofix build: reverting exp/eval Makefile to old form
Robert Griesemer [Wed, 14 Jul 2010 17:11:12 +0000 (10:11 -0700)]
fix build: reverting exp/eval Makefile to old form
(gofmt doesn't exist when this is built)

R=rsc
CC=golang-dev
https://golang.org/cl/1838041

13 years agoselect statement: initial set of test cases for corner cases
Robert Griesemer [Wed, 14 Jul 2010 16:55:08 +0000 (09:55 -0700)]
select statement: initial set of test cases for corner cases

R=r, rsc
CC=golang-dev
https://golang.org/cl/1772043

13 years agoexp/eval: Converted from bignum to big
Evan Shaw [Wed, 14 Jul 2010 16:39:59 +0000 (09:39 -0700)]
exp/eval: Converted from bignum to big

Also in this CL:
* Removed util.go, as its functionality is in big
* Removed some semicolons from the code generated by gen.go
* Added a generate target to Makefile
* Removed an outdated TODO from value.go

R=gri
CC=golang-dev
https://golang.org/cl/1780042

13 years agocrypto/tls: add client OCSP stapling support.
Adam Langley [Wed, 14 Jul 2010 14:40:15 +0000 (10:40 -0400)]
crypto/tls: add client OCSP stapling support.

R=r, rsc
CC=golang-dev
https://golang.org/cl/1750042

13 years agoruntime: better error for send/recv on nil channel
Russ Cox [Wed, 14 Jul 2010 00:27:26 +0000 (17:27 -0700)]
runtime: better error for send/recv on nil channel

R=ken2
CC=golang-dev
https://golang.org/cl/1835041

13 years agoGo specification: Lock down some details about channels and select:
Rob Pike [Tue, 13 Jul 2010 23:23:54 +0000 (16:23 -0700)]
Go specification: Lock down some details about channels and select:
- nil channel in regular send or receive panics
- empty select blocks forever

R=rsc, gri, iant, ken2
CC=golang-dev
https://golang.org/cl/1825043

13 years agocrypto/rand: add missing Unlock
Russ Cox [Tue, 13 Jul 2010 19:37:47 +0000 (12:37 -0700)]
crypto/rand: add missing Unlock

R=r
CC=golang-dev
https://golang.org/cl/1812043

13 years agogo spec: specify len/cap for nil slices, maps, and channels
Robert Griesemer [Tue, 13 Jul 2010 18:54:57 +0000 (11:54 -0700)]
go spec: specify len/cap for nil slices, maps, and channels

Fixes #891.

R=r, rsc
CC=golang-dev
https://golang.org/cl/1760043

13 years agoruntime/tiny: style and doc tweaks
Andrew Gerrand [Tue, 13 Jul 2010 00:47:52 +0000 (10:47 +1000)]
runtime/tiny: style and doc tweaks

R=r, rsc
CC=golang-dev
https://golang.org/cl/1821041

13 years agofix build
Russ Cox [Tue, 13 Jul 2010 00:46:03 +0000 (17:46 -0700)]
fix build

R=gri
CC=golang-dev
https://golang.org/cl/1813042

13 years agoos: Use TempFile with default TempDir for temp test files
Peter Mundy [Tue, 13 Jul 2010 00:31:51 +0000 (10:31 +1000)]
os: Use TempFile with default TempDir for temp test files

Use io/ioutil.TempFile with default os.TempDir for temporary test files.
For os_test.go temporary test files, use a local file system and OS
independent directory names. Avoid problems with NFS.

Fixes #848.

R=adg
CC=golang-dev
https://golang.org/cl/1806043

13 years agowebsocket: fix comment indentation
Andrew Gerrand [Tue, 13 Jul 2010 00:29:41 +0000 (10:29 +1000)]
websocket: fix comment indentation
To make code samples formatted correctly by godoc.

R=r, ukai, rsc
CC=golang-dev, gri
https://golang.org/cl/1738048

13 years agocontainer/vector: rename Data() -> Copy()
Robert Griesemer [Tue, 13 Jul 2010 00:22:21 +0000 (17:22 -0700)]
container/vector: rename Data() -> Copy()

R=rsc
CC=golang-dev
https://golang.org/cl/1814043

13 years agodashboard: use jQuery Autocomplete plugin from Google AJAX Libs API
Andrew Gerrand [Tue, 13 Jul 2010 00:21:08 +0000 (10:21 +1000)]
dashboard: use jQuery Autocomplete plugin from Google AJAX Libs API

R=rsc
CC=golang-dev
https://golang.org/cl/1677053

13 years agotweak comment for %#X
Rob Pike [Mon, 12 Jul 2010 23:57:11 +0000 (16:57 -0700)]
tweak comment for %#X
Fixes #904.

R=rsc
CC=golang-dev
https://golang.org/cl/1803043

13 years agopem: print \n after 1 header line too
Russ Cox [Mon, 12 Jul 2010 23:48:49 +0000 (16:48 -0700)]
pem: print \n after 1 header line too
rearrange to make reason for if clear.

Fixes #911.

R=agl1
CC=golang-dev
https://golang.org/cl/1774044

13 years agocrypto/rand for Windows
Peter Mundy [Mon, 12 Jul 2010 23:37:53 +0000 (16:37 -0700)]
crypto/rand for Windows

R=rsc, brainman
CC=golang-dev
https://golang.org/cl/1773041

13 years agoadd missing argument to usage message.
Rob Pike [Mon, 12 Jul 2010 23:31:51 +0000 (16:31 -0700)]
add missing argument to usage message.
Fixes #912.

R=rsc
CC=golang-dev
https://golang.org/cl/1819041

13 years agohttp: fix ParseURL to handle //relative_path properly
Andrew Gerrand [Mon, 12 Jul 2010 23:21:42 +0000 (09:21 +1000)]
http: fix ParseURL to handle //relative_path properly

Fixes #900.

R=rsc
CC=golang-dev
https://golang.org/cl/1756042

13 years agobig: added a few missing functions:
Robert Griesemer [Mon, 12 Jul 2010 23:09:27 +0000 (16:09 -0700)]
big: added a few missing functions:
- sign to determine if a value is < 0, == 0, > 0
- abs to compute absolute value
- Rat.IsInt to test if a rational number is representable as an integer

R=rsc
CC=golang-dev
https://golang.org/cl/1761042

13 years agofix build
Robert Griesemer [Mon, 12 Jul 2010 21:53:28 +0000 (14:53 -0700)]
fix build

R=rsc
CC=golang-dev
https://golang.org/cl/1815042

13 years agocontainer/vector: remove Iter() from interface
Robert Griesemer [Mon, 12 Jul 2010 20:51:42 +0000 (13:51 -0700)]
container/vector: remove Iter() from interface
(Iter() is almost never the right mechanism to call.
Per discussion with rsc.)

R=rsc
CC=golang-dev
https://golang.org/cl/1771043

13 years agotest/fixedbugs/bug243.go: instead of closing stdout,
Vinu Rajashekhar [Mon, 12 Jul 2010 20:17:32 +0000 (13:17 -0700)]
test/fixedbugs/bug243.go: instead of closing stdout,
remove the print statements.

This change is because of the port of gccgo to RTEMS.
These tests use the GCC DejaGNU framework. In some cases,
the tests need to be run on qemu where the status code
cannot be sent back to DejaGNU, so it prints the exit status
by putting a wrapper around the exit and abort calls.

This testcase closes the stdout, and hence prohibits DejaGNU
from knowing the status in such cases, and causes this test
to be wrongly declared as a failure.

R=rsc, iant
CC=golang-dev
https://golang.org/cl/1792042

13 years agomath: amd64 version of log
Charles L. Dorian [Mon, 12 Jul 2010 18:30:11 +0000 (11:30 -0700)]
math: amd64 version of log

Benchmarks 25ns/op (was 58ns/op) on 2.53GHz Intel Core 2 Duo.

R=rsc
CC=golang-dev
https://golang.org/cl/1740043

13 years agojson: Add HTMLEscape
Micah Stetson [Mon, 12 Jul 2010 18:26:41 +0000 (11:26 -0700)]
json: Add HTMLEscape

R=rsc
CC=golang-dev
https://golang.org/cl/1496042

13 years agoTest case that gccgo fails (crashes rather than printing error).
Ian Lance Taylor [Mon, 12 Jul 2010 13:34:36 +0000 (06:34 -0700)]
Test case that gccgo fails (crashes rather than printing error).

R=rsc
CC=Raj_, golang-dev
https://golang.org/cl/1740044

13 years agoCorrected a print statement from printing netfd to fd.
Vinu Rajashekhar [Sat, 10 Jul 2010 21:40:48 +0000 (14:40 -0700)]
Corrected a print statement from printing netfd to fd.

R=iant
CC=golang-dev
https://golang.org/cl/1805041

13 years agofix build: adjustest a few tests that I missed before
Robert Griesemer [Fri, 9 Jul 2010 20:11:20 +0000 (13:11 -0700)]
fix build: adjustest a few tests that I missed before

R=r
CC=golang-dev
https://golang.org/cl/1762044

13 years agogofmt: update test script
Robert Griesemer [Fri, 9 Jul 2010 20:03:25 +0000 (13:03 -0700)]
gofmt: update test script

R=r
CC=golang-dev
https://golang.org/cl/1791041

13 years agogo/spec: fix typo
Robert Griesemer [Fri, 9 Jul 2010 20:02:54 +0000 (13:02 -0700)]
go/spec: fix typo

R=r
CC=golang-dev
https://golang.org/cl/1790041

13 years agogo/parser: require that '...' parameters are followed by a type
Robert Griesemer [Fri, 9 Jul 2010 20:02:32 +0000 (13:02 -0700)]
go/parser: require that '...' parameters are followed by a type
(matching latest syntax changes)

R=r
CC=golang-dev
https://golang.org/cl/1762042

13 years agobig: Improvements to Rat.SetString
Evan Shaw [Fri, 9 Jul 2010 18:24:31 +0000 (11:24 -0700)]
big: Improvements to Rat.SetString

* Allow an exponent part. This is necessary for exp/eval.
* Fix a bug for input that had no numbers after the decimal.
* In Int.SetString, allow a leading + sign.
* In Int.SetString, error if the input is "-" with no number.
* In nat.scan, normalize the resulting nat.

R=gri
CC=golang-dev
https://golang.org/cl/1733045

13 years agoio: fix SectionReader Seek to seek backwards
Peter Mundy [Thu, 8 Jul 2010 06:57:07 +0000 (16:57 +1000)]
io: fix SectionReader Seek to seek backwards

Fixes #899.

R=golang-dev, rminnich, adg
CC=golang-dev
https://golang.org/cl/1749041

13 years agoA+C: Markus Duft
Andrew Gerrand [Thu, 8 Jul 2010 02:47:16 +0000 (12:47 +1000)]
A+C: Markus Duft

R=nigeltao
CC=golang-dev
https://golang.org/cl/1682052

13 years ago runtime/tiny: add destroyLock stub, and docs for additional VMs
Markus Duft [Wed, 7 Jul 2010 14:15:47 +0000 (00:15 +1000)]
runtime/tiny: add destroyLock stub, and docs for additional VMs

    updated thread.c to provide destroylock, which seems to be
      required to link.
        updated README with different virtualization programs.

R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/1746047

13 years agodoc/go_tutorial: mention order of compilation
Andrew Gerrand [Mon, 5 Jul 2010 06:25:29 +0000 (16:25 +1000)]
doc/go_tutorial: mention order of compilation

In response to this recurring issue:
http://groups.google.com/group/golang-nuts/t/710d1e8347cd51fa

R=r
CC=golang-dev
https://golang.org/cl/1682050

13 years ago http, crypto/tls: followup fixes from 1684051.
Adam Langley [Fri, 2 Jul 2010 20:43:48 +0000 (16:43 -0400)]
http, crypto/tls: followup fixes from 1684051.

        (TBR because this is just addressing previous review comments.)

R=r
CC=golang-dev
https://golang.org/cl/1697048

13 years agocrypto/tls, http: Make HTTPS servers easier.
Adam Langley [Fri, 2 Jul 2010 17:00:18 +0000 (13:00 -0400)]
crypto/tls, http: Make HTTPS servers easier.

R=r, adg, rsc
CC=golang-dev
https://golang.org/cl/1684051

13 years agold: fix handling of "". names in #pragma dynimport/dynexport
Russ Cox [Fri, 2 Jul 2010 04:48:13 +0000 (21:48 -0700)]
ld: fix handling of "". names in #pragma dynimport/dynexport

Fixes #728.

R=r
CC=golang-dev
https://golang.org/cl/1706053

13 years agoAdd various items to the Go Resources page.
Andrew Gerrand [Fri, 2 Jul 2010 03:32:02 +0000 (13:32 +1000)]
Add various items to the Go Resources page.

R=r
CC=golang-dev
https://golang.org/cl/1674045

13 years agogc: implement new len spec, range bug fix, optimization
Russ Cox [Fri, 2 Jul 2010 01:04:25 +0000 (18:04 -0700)]
gc: implement new len spec, range bug fix, optimization

Fixes #885.

R=ken2
CC=golang-dev
https://golang.org/cl/1680048

13 years agospec: restrict when len(x) is constant
Russ Cox [Fri, 2 Jul 2010 00:49:47 +0000 (17:49 -0700)]
spec: restrict when len(x) is constant

R=gri, iant, ken2, r
CC=golang-dev
https://golang.org/cl/1687047

13 years agoimplications of len spec change
Russ Cox [Fri, 2 Jul 2010 00:49:28 +0000 (17:49 -0700)]
implications of len spec change

R=r
CC=golang-dev
https://golang.org/cl/1712048

13 years agorelease.2010-07-01 tag
Andrew Gerrand [Fri, 2 Jul 2010 00:44:19 +0000 (10:44 +1000)]
release.2010-07-01 tag

R=rsc
CC=golang-dev
https://golang.org/cl/1734046

13 years agorelease.2010-07-01 weekly.2010-07-01
Andrew Gerrand [Fri, 2 Jul 2010 00:36:43 +0000 (10:36 +1000)]
release.2010-07-01

R=rsc
CC=golang-dev
https://golang.org/cl/1741047

13 years agostrconv.Uitob64: allow conversion of 64-bit binaries (buffer was too small).
Rob Pike [Thu, 1 Jul 2010 21:44:21 +0000 (14:44 -0700)]
strconv.Uitob64: allow conversion of 64-bit binaries (buffer was too small).
panic if base is invalid.

R=rsc
CC=golang-dev
https://golang.org/cl/1702050

13 years agostrings and bytes.Split: make count of 0 mean 0, not infinite.
Rob Pike [Thu, 1 Jul 2010 21:08:14 +0000 (14:08 -0700)]
strings and bytes.Split: make count of 0 mean 0, not infinite.
Use a count of -1 for infinity.  Ditto for Replace.

R=rsc
CC=golang-dev
https://golang.org/cl/1704044

13 years ago6l: drop confusing comment
Russ Cox [Thu, 1 Jul 2010 19:51:00 +0000 (12:51 -0700)]
6l: drop confusing comment

R=ken2
CC=golang-dev
https://golang.org/cl/1693047

13 years ago6a: assemble CMPPD as 6l expects
Russ Cox [Thu, 1 Jul 2010 19:36:29 +0000 (12:36 -0700)]
6a: assemble CMPPD as 6l expects
libmach: disassemble CMPPD as 6a expects

R=ken2
CC=Charlie Dorian, golang-dev
https://golang.org/cl/1704046

13 years ago6l: implement MOVLQZX as "mov", not "movsxd"
Russ Cox [Thu, 1 Jul 2010 19:18:35 +0000 (12:18 -0700)]
6l: implement MOVLQZX as "mov", not "movsxd"

(Here, quoted strings are the official AMD names.)

The amd64 "movsxd" instruction, when invoked
with a 64-bit REX prefix, moves and sign extends
a 32-bit value from register or memory into a
64-bit register.  6.out.h spells this MOVLQSX.

6.out.h also includes MOVLQZX, the zero extending
version, which it implements as "movsxd" without
the REX prefix.  Without the REX prefix it's only sign
extending 32 bits to 32 bits (i.e., not doing anything
to the bits) and then storing in a 32-bit register.
Any write to a 32-bit register zeros the top half of the
corresponding 64-bit register, giving the advertised effect.
This particular implementation of the functionality is
non-standard, because an ordinary 32-bit "mov" would
do the same thing.

Because it is non-standard, it is often mishandled or
not handled by binary translation tools like valgrind.
Switching to the standard "mov" makes the binaries
work better with those tools.

It's probably useful in 6c and 6g to have an explicit
instruction, though, so that the intent of the size
change is clear.  Thus we leave the concept of MOVLQZX
and just implement it by the standard "mov" instead of
the non-standard 32-bit "movsxd".

Fixes #896.

R=ken2
CC=golang-dev
https://golang.org/cl/1733046

13 years agocmath: correct IsNaN for argument cmplx(Inf, NaN)
Charles L. Dorian [Thu, 1 Jul 2010 06:34:33 +0000 (23:34 -0700)]
cmath: correct IsNaN for argument cmplx(Inf, NaN)

R=rsc
CC=golang-dev
https://golang.org/cl/1705041

13 years agotest: override gcc bug when preparing complex divide tables
Russ Cox [Thu, 1 Jul 2010 06:34:27 +0000 (23:34 -0700)]
test: override gcc bug when preparing complex divide tables

R=iant
CC=golang-dev
https://golang.org/cl/1666048

13 years agocodereview: allow multiple email addresses in CONTRIBUTORS
Russ Cox [Thu, 1 Jul 2010 06:34:11 +0000 (23:34 -0700)]
codereview: allow multiple email addresses in CONTRIBUTORS

R=r
CC=golang-dev
https://golang.org/cl/1650041

13 years agogoinstall: support for Bazaar+Launchpad
Gustavo Niemeyer [Thu, 1 Jul 2010 06:33:49 +0000 (23:33 -0700)]
goinstall: support for Bazaar+Launchpad

With these changes, goinstall is now able to use branches
maintained with Bazaar located in Launchpad.

Project aliases such as /project and /project/series are
supported in addition to specific user or team branches
such as /~user/project/branch.  Temporary branches under
the +junk special project are also supported.

As a curious side effect, since Launchpad is able to import
code from other locations, they can be indirectly
accessible too if desired.

R=rsc
CC=golang-dev
https://golang.org/cl/1699050

13 years agoA+C: add Gustavo Niemeyer (individual CLA)
Russ Cox [Thu, 1 Jul 2010 06:31:41 +0000 (23:31 -0700)]
A+C: add Gustavo Niemeyer (individual CLA)

R=adg
CC=golang-dev
https://golang.org/cl/1693046

13 years agocgo: use slash-free relative paths for .so references
Russ Cox [Thu, 1 Jul 2010 06:31:27 +0000 (23:31 -0700)]
cgo: use slash-free relative paths for .so references

The Makefile and cgo now rewrite / to _ when creating the path.
The .so for gosqlite.googlecode.com/hg/sqlite is named
cgo_gosqlite.googlecode.com_hg_sqlite.so, and then 6l and 8l
both include a default rpath of $GOROOT/pkg/$GOOS_$GOARCH.
This should make it easier to move binaries from one system
to another.

Fixes #857.

R=iant, r
CC=golang-dev
https://golang.org/cl/1700048

13 years ago8g: out of register bug fix
Russ Cox [Thu, 1 Jul 2010 03:45:50 +0000 (20:45 -0700)]
8g: out of register bug fix

Fixes #868.

R=ken2
CC=golang-dev
https://golang.org/cl/1695049

13 years agogc: do not crash on bad [...]T
Russ Cox [Thu, 1 Jul 2010 03:34:31 +0000 (20:34 -0700)]
gc: do not crash on bad [...]T

Fixes #879.

R=ken2
CC=golang-dev
https://golang.org/cl/1678048

13 years agotemplate: fix typo in doc comment
Daniel Fleischman [Thu, 1 Jul 2010 02:57:26 +0000 (19:57 -0700)]
template: fix typo in doc comment

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/1665047

13 years agobytes, strings: add Replace
Russ Cox [Thu, 1 Jul 2010 01:03:09 +0000 (18:03 -0700)]
bytes, strings: add Replace

This is the Replace I suggested in the review of CL 1114041.
It's true that we already have

regexp.MustCompile(regexp.QuoteMeta(old)).ReplaceAll(s, new)

but because this Replace is doing a simpler job it is
simpler to call and inherently more efficient.

I will add the bytes implementation and tests to the
CL after the strings one has been reviewed.

R=r, cw
CC=golang-dev
https://golang.org/cl/1731048

13 years ago x509: fix English.
Adam Langley [Wed, 30 Jun 2010 22:05:38 +0000 (18:05 -0400)]
x509: fix English.

        (addressing comments from 1741045)

R=r
CC=golang-dev
https://golang.org/cl/1678047

13 years agox509: support non-self-signed certs.
Adam Langley [Wed, 30 Jun 2010 22:02:31 +0000 (18:02 -0400)]
x509: support non-self-signed certs.

For generating non-self-signed certs we need to be able to specify a
public key (for the signee) which is different from the private key (of
the signer).

R=rsc
CC=golang-dev
https://golang.org/cl/1741045

13 years agosyscall: add socketpair
Ivan Krasin [Wed, 30 Jun 2010 21:58:21 +0000 (14:58 -0700)]
syscall: add socketpair

R=rsc
CC=golang-dev
https://golang.org/cl/1319042

13 years agomath: amd64 versions of exp and fabs
Charles L. Dorian [Wed, 30 Jun 2010 21:44:27 +0000 (14:44 -0700)]
math: amd64 versions of exp and fabs

Benchmark of exp to 28 ns/op from 64 ns/op,
on 2.53GHz Intel Core 2 Duo.

R=rsc
CC=golang-dev
https://golang.org/cl/1594041

13 years agoio/ioutil.TempFile for Windows
Peter Mundy [Wed, 30 Jun 2010 20:52:34 +0000 (13:52 -0700)]
io/ioutil.TempFile for Windows
Fixes #834.

R=rsc, brainman
CC=golang-dev
https://golang.org/cl/1686047

13 years agoio: Avoid race condition in pipe.
Ian Lance Taylor [Wed, 30 Jun 2010 20:14:46 +0000 (13:14 -0700)]
io: Avoid race condition in pipe.

One goroutine started up and was waiting in rw.  Then another
goroutine decided to close the pipe.  The closing goroutine
stalled calling p.io.Lock() in pipeHalf.close.  (This happened
in gccgo).  If the closing goroutine had been able to set the
ioclosed flag, it would have gone on to tell the runner that
the pipe was closed, which would then send an EINVAL to the
goroutine sleeping in rw.  Unlocking p.io before sleeping in
rw avoids the race.

R=rsc, rsc1
CC=golang-dev
https://golang.org/cl/1682048

13 years agohttp: client_test nil pointer fix
Andrew Gerrand [Wed, 30 Jun 2010 08:57:27 +0000 (18:57 +1000)]
http: client_test nil pointer fix

Fixes #893.

R=rsc
CC=golang-dev
https://golang.org/cl/1687045

13 years agogodoc: canonicalize codewalk paths
Andrew Gerrand [Wed, 30 Jun 2010 07:56:51 +0000 (17:56 +1000)]
godoc: canonicalize codewalk paths

R=rsc
CC=golang-dev
https://golang.org/cl/1729046

13 years agodoc/codewalk: Share Memory By Communicating
Andrew Gerrand [Wed, 30 Jun 2010 06:56:30 +0000 (16:56 +1000)]
doc/codewalk: Share Memory By Communicating

R=r, rsc
CC=golang-dev
https://golang.org/cl/1727043

13 years agotime: implement timezones for windows
Alex Brainman [Wed, 30 Jun 2010 05:29:09 +0000 (22:29 -0700)]
time: implement timezones for windows

Fixes #761.

R=PeterGo, adg, rsc
CC=golang-dev
https://golang.org/cl/1121042

13 years agoContributors: add Kirklin McDonald (a Google employee)
Andrew Gerrand [Wed, 30 Jun 2010 04:42:58 +0000 (14:42 +1000)]
Contributors: add Kirklin McDonald (a Google employee)

R=gri
CC=golang-dev
https://golang.org/cl/1679045

13 years agonet: initial attempt to implement windows version
Alex Brainman [Wed, 30 Jun 2010 03:23:39 +0000 (20:23 -0700)]
net: initial attempt to implement windows version

R=rsc, Mateusz Czaplinski
CC=golang-dev
https://golang.org/cl/1600041

13 years agold: fix implementation of -u
Russ Cox [Wed, 30 Jun 2010 01:59:48 +0000 (18:59 -0700)]
ld: fix implementation of -u

R=r
CC=golang-dev
https://golang.org/cl/1678046

13 years ago net: add support for DNS SRV requests.
Kirklin McDonald [Wed, 30 Jun 2010 00:54:24 +0000 (10:54 +1000)]
net: add support for DNS SRV requests.

        Fixes #758.

R=rsc, adg
CC=golang-dev
https://golang.org/cl/1078041

13 years agoruntime: fix scheduling bug - world wasn't stopping
Russ Cox [Wed, 30 Jun 2010 00:47:27 +0000 (17:47 -0700)]
runtime: fix scheduling bug - world wasn't stopping

Fixes #886.

R=r
CC=golang-dev
https://golang.org/cl/1667051

13 years agostrconv: fix %.1f, 0.09
Rob Pike [Tue, 29 Jun 2010 23:51:56 +0000 (16:51 -0700)]
strconv: fix %.1f, 0.09
Fixes #822.
Credit to https://golang.org/cl/1442041 by danielfleischman

R=rsc
CC=golang-dev
https://golang.org/cl/1738047

13 years agostrconv: fix %.2g, 40
Rob Pike [Tue, 29 Jun 2010 23:39:17 +0000 (16:39 -0700)]
strconv: fix %.2g, 40
Fixes #845.

R=rsc
CC=golang-dev
https://golang.org/cl/1673049

13 years agocode gen bug in len(nil) and cap(nil)
Ken Thompson [Tue, 29 Jun 2010 19:48:24 +0000 (12:48 -0700)]
code gen bug in len(nil) and cap(nil)
fixes #892

R=rsc
CC=golang-dev
https://golang.org/cl/1745042

13 years agoMove the function Run() back into fd.go.
Vinu Rajashekhar [Tue, 29 Jun 2010 19:04:04 +0000 (12:04 -0700)]
Move the function Run() back into fd.go.

R=iant
CC=golang-dev, rsc
https://golang.org/cl/1748041

13 years agogob: a couple of tiny simplifications using Kind()
Rob Pike [Tue, 29 Jun 2010 17:14:32 +0000 (10:14 -0700)]
gob: a couple of tiny simplifications using Kind()

R=rsc
CC=golang-dev
https://golang.org/cl/1695046

13 years agoruntime: fix windows build
Alex Brainman [Tue, 29 Jun 2010 14:12:14 +0000 (07:12 -0700)]
runtime: fix windows build

R=golang-dev, iant
CC=golang-dev
https://golang.org/cl/1747041

13 years agoexp/draw/x11: implement the mapping from keycodes to keysyms.
Nigel Tao [Tue, 29 Jun 2010 00:54:41 +0000 (10:54 +1000)]
exp/draw/x11: implement the mapping from keycodes to keysyms.

R=rsc
CC=golang-dev, rog
https://golang.org/cl/1739042

13 years agoOnly catch all signals if os/signal package imported.
Ian Lance Taylor [Tue, 29 Jun 2010 00:14:17 +0000 (17:14 -0700)]
Only catch all signals if os/signal package imported.

Fixes #776.

R=rsc
CC=golang-dev
https://golang.org/cl/1745041

13 years agonetchan: use gob DecodeValue to eliminate the need for a pointer value
Rob Pike [Tue, 29 Jun 2010 00:12:09 +0000 (17:12 -0700)]
netchan: use gob DecodeValue to eliminate the need for a pointer value
in Import and Export.

R=rsc
CC=golang-dev
https://golang.org/cl/1707047

13 years agogob: add DecodeValue and EncodeValue
Rob Pike [Tue, 29 Jun 2010 00:11:54 +0000 (17:11 -0700)]
gob: add DecodeValue and EncodeValue

R=rsc
CC=golang-dev
https://golang.org/cl/1698045

13 years agoA+C for Peter Mundy (peterGo)
Andrew Gerrand [Mon, 28 Jun 2010 23:48:35 +0000 (09:48 +1000)]
A+C for Peter Mundy (peterGo)

R=rsc
CC=golang-dev
https://golang.org/cl/1737044

13 years agocompiler fatal error in switch.
Ken Thompson [Mon, 28 Jun 2010 23:30:55 +0000 (16:30 -0700)]
compiler fatal error in switch.
fixes #867.

R=rsc
CC=golang-dev
https://golang.org/cl/1691045

13 years agosyscall: Add syscall_bsd.go to zsycall_freebsd_386.go
Peter Mundy [Mon, 28 Jun 2010 23:11:02 +0000 (09:11 +1000)]
syscall: Add syscall_bsd.go to zsycall_freebsd_386.go

Revision: 5885c9d10f created syscall_bsd.go for code used
by Darwin and other *BSDs, which should have included
FreeBSD. mksyscall.sh to generate new zsyscall_freebsd_386.go.

Fixes #862.

R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/1701048

13 years agorpc: allow non-struct args and reply (they must still be pointers)
Rob Pike [Mon, 28 Jun 2010 23:05:54 +0000 (16:05 -0700)]
rpc: allow non-struct args and reply (they must still be pointers)

R=rsc
CC=golang-dev
https://golang.org/cl/1722046

13 years agonetchan: allow chan of basic types now that gob can handle such
Rob Pike [Mon, 28 Jun 2010 22:59:54 +0000 (15:59 -0700)]
netchan: allow chan of basic types now that gob can handle such

R=rsc
CC=golang-dev
https://golang.org/cl/1741041

13 years agofmt.Printf: fix bug in handling of %#v.
Rob Pike [Mon, 28 Jun 2010 21:11:38 +0000 (14:11 -0700)]
fmt.Printf: fix bug in handling of %#v.
nice side effect: slices now obey their format verb. example:
fmt.Printf("%q\n", []string{"a"})

R=rsc
CC=golang-dev
https://golang.org/cl/1729045