]>
Cypherpunks repositories - gostls13.git/log
Rob Pike [Wed, 19 Jan 2011 20:36:52 +0000 (12:36 -0800)]
runtime/debug: fix build (missing Makefile)
Why does this happen so often?
R=rsc
CC=golang-dev
https://golang.org/cl/
4067042
Jeff R. Allen [Wed, 19 Jan 2011 20:30:26 +0000 (15:30 -0500)]
5a, 5l, 6a, 6l, 8a, 8l: handle out of memory, large allocations
Fixes #392.
R=rsc, r2
CC=golang-dev
https://golang.org/cl/
2732042
Russ Cox [Wed, 19 Jan 2011 20:30:18 +0000 (15:30 -0500)]
A+C: Jeff R. Allen (individual CLA)
R=r, r2
CC=golang-dev
https://golang.org/cl/
4018043
Roger Peppe [Wed, 19 Jan 2011 20:28:49 +0000 (12:28 -0800)]
netchan: do not block sends; implement flow control.
When data is received for a channel, but that channel
is not ready to receive it, the central run() loop
is currently blocked, but this can lead to deadlock
and interference between independent channels.
This CL adds an explicit buffer size to netchan
channels (an API change) - the sender will not
send values until the buffer is non empty.
The protocol changes to send ids rather than channel names
because acks can still be sent after a channel is hung up,
we we need an identifier that can be ignored.
R=r, rsc
CC=golang-dev
https://golang.org/cl/
2447042
Rob Pike [Wed, 19 Jan 2011 20:28:38 +0000 (12:28 -0800)]
runtime/debug: new package
Facilities for printing stack traces from within a running goroutine.
R=rsc
CC=golang-dev
https://golang.org/cl/
4031041
Russ Cox [Wed, 19 Jan 2011 20:24:25 +0000 (15:24 -0500)]
net: fix build on freebsd
TBR=adg
CC=golang-dev
https://golang.org/cl/
3992044
Brad Fitzpatrick [Wed, 19 Jan 2011 20:13:42 +0000 (15:13 -0500)]
http: support for relative URLs
R=rsc, adg
CC=golang-dev
https://golang.org/cl/
4002041
Kyle Lemons [Wed, 19 Jan 2011 20:11:03 +0000 (15:11 -0500)]
net: add LookupAddr
R=adg, rsc
CC=golang-dev
https://golang.org/cl/
3851041
Russ Cox [Wed, 19 Jan 2011 20:10:58 +0000 (15:10 -0500)]
CONTRIBUTORS: secondary email for Kyle Lemons
R=r, gri
CC=golang-dev
https://golang.org/cl/
4072042
Hector Chu [Wed, 19 Jan 2011 20:10:15 +0000 (15:10 -0500)]
windows: implement exception handling
R=rsc, brainman
CC=golang-dev
https://golang.org/cl/
4079041
Alex Brainman [Wed, 19 Jan 2011 20:10:01 +0000 (15:10 -0500)]
8l: pe changes
Dll names and function names padded to even size.
Refactoring of imports writing code.
R=rsc
CC=golang-dev
https://golang.org/cl/
3804042
Wei Guangjing [Wed, 19 Jan 2011 19:49:25 +0000 (14:49 -0500)]
net: implement windows timeout
R=brainman, rsc
CC=golang-dev
https://golang.org/cl/
1731047
Ryan Hitchman [Wed, 19 Jan 2011 19:46:06 +0000 (14:46 -0500)]
codereview: don't mail change lists with no files
R=rsc
CC=golang-dev
https://golang.org/cl/
3561041
Albert Strasheim [Wed, 19 Jan 2011 19:34:53 +0000 (14:34 -0500)]
net, syscall: return source address in Recvmsg
R=rsc
CC=golang-dev
https://golang.org/cl/
3766042
Sebastien Binet [Wed, 19 Jan 2011 19:30:57 +0000 (14:30 -0500)]
cgo: add complex float, complex double
R=rsc
CC=binet, golang-dev
https://golang.org/cl/
3906041
Eoghan Sherry [Wed, 19 Jan 2011 19:23:59 +0000 (14:23 -0500)]
math: handle denormals in Frexp, Ilogb, Ldexp, and Logb
Also:
* document special cases for Frexp and Ldexp
* handle ±Inf in Ldexp
* correctly return -0 on underflow in Ldexp
* test special cases for Ldexp
* test boundary cases for Frexp, Ilogb, Ldexp, and Logb
R=rsc
CC=golang-dev
https://golang.org/cl/
3676041
Albert Strasheim [Wed, 19 Jan 2011 19:21:58 +0000 (14:21 -0500)]
net: add unixpacket
R=golang-dev, rsc, rsc1
CC=golang-dev
https://golang.org/cl/
2309043
Ben Lynn [Wed, 19 Jan 2011 18:47:04 +0000 (13:47 -0500)]
regexp: reject bare ?
Minor cleanup:
- removed a duplicate test case
- added a function to remove repeated code
- for consistency, replaced "return nil" with a panic at an
unreachable point
Fixes #1428.
R=golang-dev, r, rsc
CC=golang-dev
https://golang.org/cl/
4057042
Rob Pike [Wed, 19 Jan 2011 18:46:58 +0000 (13:46 -0500)]
CONTRIBUTORS: add Ben Lynn (Google employee)
R=benlynn, rsc
CC=golang-dev
https://golang.org/cl/
4062042
Russ Cox [Wed, 19 Jan 2011 18:41:42 +0000 (13:41 -0500)]
runtime: add per-pause gc stats
R=r, r2
CC=golang-dev
https://golang.org/cl/
3980042
Russ Cox [Wed, 19 Jan 2011 18:35:45 +0000 (13:35 -0500)]
fmt: document %X of string, []byte
suggested by Mark Summerfield
R=r
CC=golang-dev
https://golang.org/cl/
4018042
Robert Griesemer [Wed, 19 Jan 2011 18:33:41 +0000 (10:33 -0800)]
go spec: adjust language for constant typing
Fixes #1421.
R=r, rsc, iant, ken2
CC=golang-dev
https://golang.org/cl/
4039042
Russ Cox [Wed, 19 Jan 2011 15:07:44 +0000 (10:07 -0500)]
A+C: Clement Skau (individual CLA)
R=r, r2
CC=golang-dev
https://golang.org/cl/
3982045
Clement Skau [Wed, 19 Jan 2011 15:05:48 +0000 (10:05 -0500)]
http: fix Content-Range and Content-Length in response
RFC2616 sections 4.4 and 14.16:
* Cannot use Content-Length with non-identity Transfer-Encoding
* Content-Range response is "bytes x-y/z" not "x-y/z"
R=rsc
CC=golang-dev
https://golang.org/cl/
4018041
Corey Thomasson [Wed, 19 Jan 2011 14:55:46 +0000 (09:55 -0500)]
net: avoid nil dereference if /etc/services can't be opened
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/
4081041
Yasuhiro Matsumoto [Wed, 19 Jan 2011 07:00:19 +0000 (23:00 -0800)]
syscall: fix build. WUNTRACED isn't defined for win32.
For Windows, the options for syscall.Wait4() aren't used.
Then this will be dummy value like WNOHANG, WSTOPPED.
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/
4075041
Rob Pike [Wed, 19 Jan 2011 04:56:55 +0000 (20:56 -0800)]
crypto/cipher: fix build (missing file in Makefile)
R=agl, adg
CC=golang-dev
https://golang.org/cl/
4073041
Ken Thompson [Wed, 19 Jan 2011 04:45:17 +0000 (20:45 -0800)]
arm register allocation/tempname allocation bug
R=r
CC=golang-dev
https://golang.org/cl/
4008044
Adam Langley [Tue, 18 Jan 2011 23:16:06 +0000 (18:16 -0500)]
crypto/cipher: add OFB mode
R=rsc, r
CC=golang-dev
https://golang.org/cl/
3994042
Russ Cox [Tue, 18 Jan 2011 21:28:21 +0000 (16:28 -0500)]
cc: fix vlong condition
Fixes #1032.
R=ken2
CC=golang-dev
https://golang.org/cl/
4025043
Russ Cox [Tue, 18 Jan 2011 20:59:19 +0000 (15:59 -0500)]
gc, runtime: make range on channel safe for multiple goroutines
Fixes #397.
R=ken2
CC=golang-dev
https://golang.org/cl/
3994043
Gustavo Niemeyer [Tue, 18 Jan 2011 20:39:38 +0000 (15:39 -0500)]
xml: support for > in tags
This introduces support for selecting which subelement
to unmarshal into a given struct field by providing a
nesting path separated by the > character.
R=rsc
CC=golang-dev
https://golang.org/cl/
4066041
Russ Cox [Tue, 18 Jan 2011 19:15:11 +0000 (14:15 -0500)]
runtime: print signal information during panic
$ 6.out
panic: runtime error: invalid memory address or nil pointer dereference
[signal 11 code=0x1 addr=0x0 pc=0x1c16]
runtime.panic+0xa7 /Users/rsc/g/go/src/pkg/runtime/proc.c:1089
runtime.panic(0xf6c8, 0x25c010)
runtime.panicstring+0x69 /Users/rsc/g/go/src/pkg/runtime/runtime.c:88
runtime.panicstring(0x24814, 0x0)
runtime.sigpanic+0x144 /Users/rsc/g/go/src/pkg/runtime/darwin/thread.c:465
runtime.sigpanic()
main.f+0x16 /Users/rsc/x.go:5
main.f()
main.main+0x1c /Users/rsc/x.go:9
main.main()
runtime.mainstart+0xf /Users/rsc/g/go/src/pkg/runtime/amd64/asm.s:77
runtime.mainstart()
runtime.goexit /Users/rsc/g/go/src/pkg/runtime/proc.c:149
runtime.goexit()
R=r
CC=golang-dev
https://golang.org/cl/
4036042
Rob Pike [Tue, 18 Jan 2011 19:07:02 +0000 (11:07 -0800)]
tutorial: update go_tutorial.txt
should have been included in last CL; no idea why it was not
R=brainman
CC=golang-dev
https://golang.org/cl/
4005043
Russ Cox [Tue, 18 Jan 2011 19:02:41 +0000 (14:02 -0500)]
syscall: correct WSTOPPED on OS X
Have to set #defines correctly to get correct value.
Otherwise get a mask for use in implementing WIFSTOPPED(status).
Changed WSTOPPED definition in os because on
OS X WSTOPPED and WUNTRACED have different values
even though they seem to mean the same thing.
Fixes #1374.
R=r, r2
CC=golang-dev
https://golang.org/cl/
4063042
Rob Pike [Tue, 18 Jan 2011 19:01:47 +0000 (11:01 -0800)]
tutorial: make stdin, stdout, stderr work on Windows.
R=brainman
CC=golang-dev
https://golang.org/cl/
4042042
Robert Griesemer [Tue, 18 Jan 2011 18:59:54 +0000 (10:59 -0800)]
godoc: bring back "indexing in progress" message
A wrongly nested if prevented the message from appearing.
Fixes #1420.
R=r, r2
CC=golang-dev
https://golang.org/cl/
3987043
Anthony Martin [Tue, 18 Jan 2011 16:24:49 +0000 (11:24 -0500)]
gc: fix typed constant declarations
Fixes #1411.
R=rsc, gri, ejsherry
CC=golang-dev
https://golang.org/cl/
4035042
Jos Visser [Tue, 18 Jan 2011 16:24:43 +0000 (11:24 -0500)]
expvar: add Float
R=r, rsc, dsymonds
CC=golang-dev
https://golang.org/cl/
4044041
Russ Cox [Tue, 18 Jan 2011 16:24:13 +0000 (11:24 -0500)]
C: add Jos Visser (Google CLA)
R=josv, r
CC=golang-dev
https://golang.org/cl/
4065041
Ian Lance Taylor [Tue, 18 Jan 2011 16:10:22 +0000 (08:10 -0800)]
syscall: Correct length of GNU/Linux abstract Unix domain sockaddr.
R=rsc, iant2
CC=golang-dev
https://golang.org/cl/
3974044
Ken Thompson [Tue, 18 Jan 2011 04:39:26 +0000 (20:39 -0800)]
arm reg bug with SP adjust
after call to deferproc
R=r
CC=golang-dev
https://golang.org/cl/
4059041
Ken Thompson [Mon, 17 Jan 2011 21:27:05 +0000 (13:27 -0800)]
arm bug address of a string
R=r
CC=golang-dev
https://golang.org/cl/
4004042
Ken Thompson [Sun, 16 Jan 2011 23:25:13 +0000 (15:25 -0800)]
arm reg bug with address(variable)
R=r
CC=golang-dev
https://golang.org/cl/
4047041
Ken Thompson [Sun, 16 Jan 2011 01:11:24 +0000 (17:11 -0800)]
disable reg - tar test failed
R=r
CC=golang-dev
https://golang.org/cl/
3969042
Ken Thompson [Sun, 16 Jan 2011 00:55:47 +0000 (16:55 -0800)]
arm reg bug MOVW into bool variable
R=r
CC=golang-dev
https://golang.org/cl/
4034042
Rob Pike [Sat, 15 Jan 2011 07:00:02 +0000 (23:00 -0800)]
bytes.Buffer: fix typo in comment (doubled 'to')
R=ken2
CC=golang-dev
https://golang.org/cl/
4035041
Russ Cox [Fri, 14 Jan 2011 19:05:20 +0000 (14:05 -0500)]
runtime: fix arm reflect.call boundary case
The fault was lucky: when it wasn't faulting it was silently
copying a word from some other block and later putting
that same word back. If some other goroutine had changed
that word of memory in the interim, too bad.
The ARM code was inconsistent about whether the
"argument frame" included the saved LR. Including it made
some things more regular but mostly just caused confusion
in the places where the regularity broke. Now the rule
reflects reality: argp is always a pointer to arguments,
never a saved link register.
Renamed struct fields to make meaning clearer.
Running ARM in QEMU, package time's gotest:
* before: 27/58 failed
* after: 0/50
R=r, r2
CC=golang-dev
https://golang.org/cl/
3993041
Ian Lance Taylor [Fri, 14 Jan 2011 18:52:08 +0000 (10:52 -0800)]
cgo: In _cgo_main.c define all provided symbols as functions.
This defines crosscall2 in a way that matches that real
definition, and also defines _cgo_allocate and _cgo_panic to
indicate that they are available to be called by code compiled
with gcc.
R=rsc
CC=golang-dev
https://golang.org/cl/
4026041
Ian Lance Taylor [Fri, 14 Jan 2011 18:51:47 +0000 (10:51 -0800)]
runtime/cgo: Don't define crosscall2 in dummy _cgo_main.c.
In this specific package crosscall2 is already defined in a .S
file anyhow. This avoids a warning about mismatched
alignment.
R=rsc
CC=golang-dev
https://golang.org/cl/
4000043
Ian Lance Taylor [Fri, 14 Jan 2011 18:50:51 +0000 (10:50 -0800)]
syscall: Correct length of SockaddrUnix.
R=rsc
CC=golang-dev
https://golang.org/cl/
4025041
Robert Griesemer [Fri, 14 Jan 2011 17:42:37 +0000 (09:42 -0800)]
gofmt, go/printer: do not insert extra linebreaks where they may break the code
Introduced a printer mode (pmode) type and corresponding
pmode values which permit easy toggling of the current
printer mode for fine-tuning of layout.
Use the printer mode to disable potential introduction of
line breaks before a closing '}' in composite literals.
Added extra test case. Applied gofmt to src and misc.
Fixes #1365.
R=r2
CC=golang-dev
https://golang.org/cl/
4008041
Ken Thompson [Fri, 14 Jan 2011 04:05:08 +0000 (20:05 -0800)]
fix tst instruction on arm to set overflow bit
R=r
CC=golang-dev
https://golang.org/cl/
4009041
Robert Griesemer [Fri, 14 Jan 2011 02:34:22 +0000 (18:34 -0800)]
godoc: remove tab before <pre>-formatted section
Fixes #1321.
R=r, r2
CC=golang-dev
https://golang.org/cl/
4003042
Robert Griesemer [Fri, 14 Jan 2011 01:41:45 +0000 (17:41 -0800)]
fix build (this time for real): adjust typechecker test, ogle
R=r, r2
CC=golang-dev
https://golang.org/cl/
4006041
Robert Griesemer [Fri, 14 Jan 2011 01:26:38 +0000 (17:26 -0800)]
fix build (submitted a modified parser.go file by mistake)
R=r
CC=golang-dev
https://golang.org/cl/
4005041
Robert Griesemer [Fri, 14 Jan 2011 01:20:26 +0000 (17:20 -0800)]
go/scanner: Make Init take a *token.File instead of a *token.FileSet.
Until now, each scan of a file added a new file to the file set.
With this change, a file can be re-scanned using the same *token.File
w/o changing the file set. Eventually this will enable the re-use of
cached source code in godoc (for the fulltext index). At the moment,
source files are read over and over again from disk.
This is the first step in that direction.
R=r, rsc, r2
CC=golang-dev
https://golang.org/cl/
4001041
Rob Pike [Fri, 14 Jan 2011 00:30:56 +0000 (16:30 -0800)]
cmath test: fix format (%g does not print booleans)
R=ken
CC=golang-dev
https://golang.org/cl/
4003041
Ken Thompson [Thu, 13 Jan 2011 23:34:52 +0000 (15:34 -0800)]
add TST op code
R=r
CC=golang-dev
https://golang.org/cl/
4000041
Andrew Gerrand [Thu, 13 Jan 2011 23:12:24 +0000 (10:12 +1100)]
CONTRIBUTORS: fix bradfitz entry
R=rsc
CC=golang-dev
https://golang.org/cl/
3999041
Andrew Gerrand [Thu, 13 Jan 2011 22:27:51 +0000 (09:27 +1100)]
CONTRIBUTORS: add bradfitz@golang.org
R=bradfitz, dangabrad
CC=golang-dev
https://golang.org/cl/
3998041
Brad Fitzpatrick [Thu, 13 Jan 2011 22:10:02 +0000 (09:10 +1100)]
http: fix scheme-relative URL parsing; add ParseRequestURL
Also adds some tests for Issue 900 which was the reason
the current URL parsing is broken. (the previous fix
was wrong)
R=rsc, adg, dangabrad, bradfitzwork
CC=golang-dev
https://golang.org/cl/
3910042
Robert Griesemer [Thu, 13 Jan 2011 20:44:04 +0000 (12:44 -0800)]
godoc: don't double HTML-escape search result snippets
Fixes #1412.
R=rsc, r
CC=golang-dev
https://golang.org/cl/
3994041
Russ Cox [Thu, 13 Jan 2011 19:34:31 +0000 (14:34 -0500)]
http: handle HEAD requests correctly
R=r, r2
CC=golang-dev
https://golang.org/cl/
3939042
Robert Griesemer [Thu, 13 Jan 2011 18:24:04 +0000 (10:24 -0800)]
go_spec: specify that int and uint have the same size
R=r, rsc, iant, ken2
CC=golang-dev
https://golang.org/cl/
3992041
Robert Griesemer [Thu, 13 Jan 2011 18:23:42 +0000 (10:23 -0800)]
godoc: peephole optimization for generated HTML
When searching for regular expressions such as
".", there are many consecutive matches.
In the generated HTML, combine them instead of
generating a new <span> for each adjacent text
segment highlighting a match.
Massively reduces the size of the generated
HTML in those cases.
R=r, rsc
CC=golang-dev
https://golang.org/cl/
3971041
Andrew Gerrand [Thu, 13 Jan 2011 01:06:35 +0000 (12:06 +1100)]
tag release.2011-01-12
R=r
CC=golang-dev
https://golang.org/cl/
3973041
Andrew Gerrand [Thu, 13 Jan 2011 01:04:43 +0000 (12:04 +1100)]
release.2011-01-12
R=r
CC=golang-dev
https://golang.org/cl/
3972041
Rob Pike [Thu, 13 Jan 2011 00:17:14 +0000 (16:17 -0800)]
disable arm registifier for the moment
R=ken2, ken3
CC=golang-dev
https://golang.org/cl/
3970041
Rob Pike [Wed, 12 Jan 2011 23:23:21 +0000 (15:23 -0800)]
rpc: export names in debug service so it works with template changes
R=dsymonds
CC=golang-dev
https://golang.org/cl/
3760049
Gustavo Niemeyer [Wed, 12 Jan 2011 18:45:24 +0000 (10:45 -0800)]
goinstall: Fix template to use exported fields
It's currently broken due to
f6d5bac536c5 .
R=r, r2
CC=golang-dev
https://golang.org/cl/
3967041
Rob Pike [Wed, 12 Jan 2011 08:25:29 +0000 (00:25 -0800)]
encoding/line: fix error call (missing argument)
R=agl1, rsc
CC=golang-dev
https://golang.org/cl/
3861044
Rob Pike [Wed, 12 Jan 2011 08:25:17 +0000 (00:25 -0800)]
template: give "unexported" error when accessing an unexported field.
R=adg, rsc
CC=golang-dev
https://golang.org/cl/
3903043
Eric Eisner [Wed, 12 Jan 2011 05:46:50 +0000 (21:46 -0800)]
suffixarray: faster creation algorithm
This implements the algorithm qsufsort using the sort package
as a sorting primitive. Its worst-case performance is O(N*log(N)), and it
uses only an additional slice of N ints of memory during creation.
Benchmarks (seconds):
old new
10k nulls 149 0.044
1M English corpus 32.0 3.6
R=gri, gri1
CC=golang-dev
https://golang.org/cl/
3752044
Rob Pike [Wed, 12 Jan 2011 05:42:24 +0000 (21:42 -0800)]
C&A for Eric Eisner
there is something funny in the database; trying to recreate the change.
R=gri
CC=golang-dev
https://golang.org/cl/
3900044
Robert Griesemer [Wed, 12 Jan 2011 05:24:44 +0000 (21:24 -0800)]
godoc: remove TODO (bug257.go can now be indexed)
Pending CL
3752044 .
R=r, r2
CC=golang-dev
https://golang.org/cl/
3949042
Nigel Tao [Wed, 12 Jan 2011 05:17:54 +0000 (16:17 +1100)]
hg: add cgo/_cgo_* to .hgignore.
R=rsc, nigeltao_gnome
CC=golang-dev
https://golang.org/cl/
3956042
Alex Brainman [Wed, 12 Jan 2011 04:55:17 +0000 (15:55 +1100)]
net: use closesocket api instead of CloseHandle on Windows
thanks to piotrnar for the original CL.
Fixes #1371.
R=rsc
CC=golang-dev
https://golang.org/cl/
3834042
Rob Pike [Wed, 12 Jan 2011 01:56:45 +0000 (17:56 -0800)]
gob: make (en|dec)code(Ui|I)nt methods rather than functions.
No functional (ha!) change.
R=rsc
CC=golang-dev
https://golang.org/cl/
3959041
Adam Langley [Wed, 12 Jan 2011 01:54:30 +0000 (20:54 -0500)]
crypto/openpgp: add error and armor
error is needed by all the OpenPGP packages as they return a shared
family of error types.
armor implements OpenPGP armoring. It's very like PEM except:
a) it includes a CRC24 checksum
b) PEM values are small (a few KB) and so encoding/pem assumes that
they fit in memory. Armored data can be very large and so this
package presents a streaming interface.
R=r, nsz, rsc
CC=golang-dev
https://golang.org/cl/
3786043
Berengar Lehr [Wed, 12 Jan 2011 01:51:35 +0000 (20:51 -0500)]
crypto: add twofish package
The code was (as annotated in the source code) adopted from Tom's
LibCrypt (public domain code, [1]). It was neither optimised for speed
nor were any security features added.
[1] http://libtom.org/?page=features&newsitems=5&whatfile=crypt
R=rsc, berengarlehr, albert.strasheim, agl1
CC=golang-dev, schulze
https://golang.org/cl/
2687042
Ken Thompson [Wed, 12 Jan 2011 01:30:25 +0000 (17:30 -0800)]
turn off peep half of optimizer for release
R=r
CC=golang-dev
https://golang.org/cl/
3919043
Andrew Gerrand [Wed, 12 Jan 2011 00:59:33 +0000 (11:59 +1100)]
json: do not Marshal unexported struct fields
R=r, cw, niemeyer, rsc
CC=golang-dev
https://golang.org/cl/
3952041
Alex Brainman [Wed, 12 Jan 2011 00:48:15 +0000 (11:48 +1100)]
runtime: revert 6974:
1f3c3696babb
I missed that environment is used during runtime setup,
well before go init() functions run. Implemented os-dependent
runtime.goenvs functions to allow for different unix, plan9 and
windows versions of environment discovery.
R=rsc, paulzhol
CC=golang-dev
https://golang.org/cl/
3787046
Andrew Gerrand [Wed, 12 Jan 2011 00:08:39 +0000 (11:08 +1100)]
os: add Sync to *File, wraps syscall.Fsync
R=rsc, brainman, r, r2
CC=golang-dev
https://golang.org/cl/
3887042
Rob Pike [Tue, 11 Jan 2011 23:47:45 +0000 (15:47 -0800)]
template: allow accesses only to exported fields and methods
R=rsc, gri
CC=golang-dev
https://golang.org/cl/
3890042
Ian Lance Taylor [Tue, 11 Jan 2011 22:43:28 +0000 (14:43 -0800)]
ld: Fix exported dynamic symbols on 386 Mach-O.
R=rsc
CC=golang-dev
https://golang.org/cl/
3948043
Russ Cox [Tue, 11 Jan 2011 22:15:28 +0000 (17:15 -0500)]
http: fix text displayed in Redirect
In the case where r.Method == "POST", was
calling Printf with an argument but "" format string,
causing a spurious %!EXTRA(...) message.
Also escape string properly in HTML generation.
R=r
CC=golang-dev
https://golang.org/cl/
3923043
Ian Lance Taylor [Tue, 11 Jan 2011 21:56:47 +0000 (13:56 -0800)]
ld: Fix exported dynamic symbols on Mach-O.
* Avoid confusion between imported and exported symbols.
* Record number of imported and exported symbols correctly.
* Explictly relocate SMACHOSYM section, since it is not in datap.
R=rsc
CC=golang-dev
https://golang.org/cl/
3920042
Rob Pike [Tue, 11 Jan 2011 21:44:00 +0000 (13:44 -0800)]
gob: do not encode or decode unexported fields
Such fields are simply ignored.
R=rsc, r2
CC=golang-dev
https://golang.org/cl/
3889043
Rob Pike [Tue, 11 Jan 2011 21:43:43 +0000 (13:43 -0800)]
netchan: make fields public for pending gob change
R=rsc
CC=golang-dev
https://golang.org/cl/
3882042
Anthony Martin [Tue, 11 Jan 2011 19:38:14 +0000 (14:38 -0500)]
syscall: fix mksysnum_linux.sh
A few system call numbers on x86 Linux are
defined in terms of a previous definition,
e.g.,
#define __NR_timer_create 259
#define __NR_timer_settime (__NR_timer_create+1)
...
#define __NR_mq_open 277
#define __NR_mq_unlink (__NR_mq_open+1)
This change assumes the numbers are sorted
sequentially in the input file.
R=rsc, bradfitzwork
CC=golang-dev
https://golang.org/cl/
3946041
Ian Lance Taylor [Tue, 11 Jan 2011 19:22:47 +0000 (11:22 -0800)]
ld: Permit an Mach-O symbol to be exported in the dynamic symbol table.
Submitting TBR to fix Darwin build.
R=rsc
TBR=rsc
CC=golang-dev
https://golang.org/cl/
3912043
Gustavo Niemeyer [Tue, 11 Jan 2011 18:14:48 +0000 (13:14 -0500)]
goinstall: preliminary support for cgo packages
Can handle cgo packages now but only if they
do not need to set CGO_LDFLAGS and CGO_CFLAGS.
R=adg, rsc
CC=golang-dev
https://golang.org/cl/
3891042
Rob Pike [Tue, 11 Jan 2011 17:57:47 +0000 (09:57 -0800)]
log: add methods for exit and panic
There were already functions for the standard logger;
this just completes the set.
R=rsc, adg
CC=golang-dev
https://golang.org/cl/
3901043
Ian Lance Taylor [Tue, 11 Jan 2011 17:36:44 +0000 (09:36 -0800)]
runtime/cgo: Add callbacks to support SWIG.
R=rsc, iant2, r
CC=golang-dev
https://golang.org/cl/
3886041
Russ Cox [Tue, 11 Jan 2011 16:12:15 +0000 (11:12 -0500)]
godefs: better handling of enums
Fixes #432.
R=r, r2
CC=golang-dev
https://golang.org/cl/
3869043
Gustavo Niemeyer [Tue, 11 Jan 2011 16:12:06 +0000 (11:12 -0500)]
cgo: export unsafe.Pointer as void*
This will enable functions which use unsafe.Pointer as an argument
to be correctly exported by cgo.
R=rsc
CC=golang-dev
https://golang.org/cl/
3849043
Gustavo Niemeyer [Tue, 11 Jan 2011 15:17:54 +0000 (10:17 -0500)]
cgo: output alignment fix
R=rsc
CC=golang-dev
https://golang.org/cl/
3902044
Gustavo Niemeyer [Tue, 11 Jan 2011 15:15:49 +0000 (10:15 -0500)]
cgo: fix enum const conflict
This change prevents enum consts from conflicting with themselves
when loaded twice in different go files.
Fixes #1400.
R=rsc
CC=golang-dev
https://golang.org/cl/
3849044