aboutsummaryrefslogtreecommitdiff
path: root/src/pkg
AgeCommit message (Collapse)Author
2012-03-28doc: added The Go image package articleFrancisco Souza
Orignally published on The Go Programming Language, September 21, 2011. http://blog.golang.org/2011/09/go-image-package.html Update #2547 R=adg, nigeltao CC=golang-dev https://golang.org/cl/5933049
2012-03-28path/filepath: correct comment in EvalSymlinksAlex Brainman
R=golang-dev, r CC=golang-dev, hcwfrichter https://golang.org/cl/5934046
2012-03-27runtime: work around false negative in deadlock detectionRuss Cox
Not a complete fix for issue 3342, but fixes the trivial case. There may still be a race in the instants before and after a scavenger-induced garbage collection. Intended to be "obviously safe": a call to runtime·gosched before main.main is no different than a call to runtime.Gosched at the beginning of main.main, and it is (or had better be) safe to call runtime.Gosched at any point during main. Update #3342. R=iant CC=golang-dev https://golang.org/cl/5919052
2012-03-27go/build: fix import checkRuss Cox
When we find a package in DIR/src/foo, we only let it be known as foo if there is no other foo in an earlier GOPATH directory or the GOROOT directory. The GOROOT check was looking in GOROOT/src/foo instead of GOROOT/src/pkg/foo, which meant that the import paths "lib9", "libbio", "libmach", and so on were unavailable, and the import paths "math", "errors", and so on were available. Correct this. Fixes #3390. R=golang-dev, minux.ma CC=golang-dev https://golang.org/cl/5927050
2012-03-27path/filepath: use windows GetShortPathName api to force GetLongPathName to ↵Alex Brainman
do its work R=golang-dev, rsc CC=golang-dev https://golang.org/cl/5928043
2012-03-27net: ignore ECONNABORTED from syscall.AcceptDevon H. O'Dell
Fixes #3395. R=rsc, dsymonds CC=golang-dev https://golang.org/cl/5905063
2012-03-27undo CL 5844051 / 5d0322034aa8Mikio Hara
Breaks closure test when GOMAXPROCS=2 or more. ««« original CL description runtime: restore deadlock detection in the simplest case. Fixes #3342. R=iant, r, dave, rsc CC=golang-dev, remy https://golang.org/cl/5844051 »»» R=rsc CC=golang-dev https://golang.org/cl/5924045
2012-03-26runtime: restore deadlock detection in the simplest case.Rémy Oudompheng
Fixes #3342. R=iant, r, dave, rsc CC=golang-dev, remy https://golang.org/cl/5844051
2012-03-27path/filepath: convert drive letter to upper case in windows EvalSymlinksAlex Brainman
Fixes #3347. R=golang-dev, aram, r, rsc CC=golang-dev https://golang.org/cl/5918043
2012-03-26exp/types: generalized GCImporter API.Robert Griesemer
- Renamed ExportData -> FindGcExportData and base it on an a bufio.Reader rather than a filename so it can be used in environments where object files are stored elsewhere. - Factor former GcImporter into GcImportData and GcImport. Implementations with different storage locations for object files can build a customized GcImport using GcImportData. This is pkg/exp only - no impact on Go 1. R=golang-dev, lvd, rsc CC=golang-dev https://golang.org/cl/5574069
2012-03-26go/build: cgoEnabled is not known to cmd/dist anymoreShenghou Ma
R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/5901051
2012-03-24os: add missing byte to FileMode bufferStefan Nilsson
32 bytes is enough for all FileMode bits. R=golang-dev, r CC=golang-dev https://golang.org/cl/5853044
2012-03-23text/template: fix typo in package commentRobert Griesemer
Fixes #3383. R=iant, bradfitz CC=golang-dev https://golang.org/cl/5891045
2012-03-23crypto/tls: don't select ECC ciphersuites with no mutual curve.Adam Langley
The existing code that tried to prevent ECC ciphersuites from being selected when there were no mutual curves still left |suite| set. This lead to a panic on a nil pointer when there were no acceptable ciphersuites at all. Thanks to George Kadianakis for pointing it out. R=golang-dev, r, bradfitz CC=golang-dev https://golang.org/cl/5857043
2012-03-23path/filepath: windows drive letter cannot be a digitAlex Brainman
R=golang-dev, r CC=golang-dev, mattn.jp https://golang.org/cl/5885056
2012-03-22sort: add time complexity to docStefan Nilsson
Let's tell the world that Go's sort is O(n log n). Surely this is a feature we intend to keep. R=golang-dev, gri CC=golang-dev https://golang.org/cl/5867045
2012-03-22doc: add JSON and Go articleFrancisco Souza
Originally published on The Go Programming Language Blog, January 25, 2011. http://blog.golang.org/2011/01/json-and-go.html R=adg CC=golang-dev https://golang.org/cl/5846044
2012-03-22flag: add examplesRob Pike
R=golang-dev, gri CC=golang-dev https://golang.org/cl/5867049
2012-03-21exp/norm/normalize.go: fix typoRobert Griesemer
R=golang-dev, r, dsymonds CC=golang-dev https://golang.org/cl/5874045
2012-03-22go/build: clarify why we exclude files starting with '_' or '.'Shenghou Ma
R=golang-dev, gri CC=golang-dev https://golang.org/cl/5864053
2012-03-21html/template: fix typo and make grammar consistent in comments.David Symonds
R=golang-dev, r CC=golang-dev https://golang.org/cl/5866044
2012-03-20sort: fix computation of maxDepth to avoid infinite loopStefan Nilsson
The current computation loops indefinitely if n > 1<<30 (for 32-bit ints). R=golang-dev, gri CC=golang-dev https://golang.org/cl/5848067
2012-03-20sort: document two undocumented functionsBrad Fitzpatrick
They looked out of place in godoc. Includes documenting sort stability. Fixes #3356 R=golang-dev, gri, trolleriprofessorn CC=golang-dev https://golang.org/cl/5855044
2012-03-21runtime: remove unused goc2c.cShenghou Ma
Its functionality has been moved into cmd/dist. R=golang-dev, r, iant CC=golang-dev https://golang.org/cl/5843062
2012-03-20html/template: add Templates and *Escape functionsRob Pike
to bring it in line with text/template's interface. Fixes #3296. R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/5843066
2012-03-20build: do more during windows buildAlex Brainman
- use GO_GCFLAGS and GO_LDFLAGS if supplied - build misc\dashboard\builder and misc\goplay - run tests in test\bench\go1 - check api compatibility R=golang-dev, r, kardianos, bradfitz CC=golang-dev https://golang.org/cl/5847063
2012-03-20net: drop unnecessary type assertions and fix leak in testMikio Hara
R=golang-dev, r CC=golang-dev https://golang.org/cl/5847064
2012-03-19crypto/tls: always send a Certificate message if one was requested.Adam Langley
If a CertificateRequest is received we have to reply with a Certificate message, even if we don't have a certificate to offer. Fixes #3339. R=golang-dev, r, ality CC=golang-dev https://golang.org/cl/5845067
2012-03-19path/filepath: implement Match and Glob on windowsAlex Brainman
As discussed on golang-dev, windows will use "\" as path separator. No escaping allowed. R=golang-dev, r, mattn.jp, rsc, rogpeppe, bsiegert, r CC=golang-dev https://golang.org/cl/5825044
2012-03-19sysycall: remove creds_linux_test.goRob Pike
It is unprecedented to add tests to package syscall, especially system-specific ones. Not a policy worth changing right before Go 1 is cut. The sole existing test, passfd_test.go, contains the line // +build linux darwin probablyfreebsd probablyopenbsd which argues that this is not a subject to be undertaking likely. Note that passfd_test.go also went in just now. It's the only test in syscall. Deleting for now, will reconsider after Go 1. R=golang-dev, bradfitz, r, dsymonds CC=golang-dev https://golang.org/cl/5846063
2012-03-19syscall: delete passfd_test.goRob Pike
We can revisit the issue of testing in syscall after Go 1. R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/5844057
2012-03-18syscall: Test SCM_CREDENTIALS, SO_PASSCRED on Linux.Albert Strasheim
R=bradfitz, iant CC=golang-dev https://golang.org/cl/5846059
2012-03-17syscall: add a test for passing an fd over a unix socketBrad Fitzpatrick
Updates #1101 R=golang-dev, iant CC=golang-dev https://golang.org/cl/5849057
2012-03-17spec: delete references to unsafe.Reflect,Typeof,UnreflectRob Pike
They have been deleted from package unsafe. Also delete their appearance in exp/types. Fixes #3338. R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/5847056
2012-03-16reflect: panic if MakeSlice is given bad len/cap arguments.David Symonds
Fixes #3330. R=golang-dev, r CC=golang-dev https://golang.org/cl/5847043
2012-03-15runtime: do not handle signals before configuring handlerRuss Cox
There was a small window during program initialization where a signal could come in before the handling mechanisms were set up to handle it. Delay the signal-handler installation until we're ready for the signals. Fixes #3314. R=golang-dev, dsymonds, mikioh.mikioh CC=golang-dev https://golang.org/cl/5833049
2012-03-15runtime: fix arm buildRuss Cox
TBR=golang-dev CC=golang-dev https://golang.org/cl/5832047
2012-03-16doc: add Gobs of data articleFrancisco Souza
Originally published on The Go Programming Language Blog, March 24, 2011. http://blog.golang.org/2011/03/gobs-of-data.html R=adg CC=golang-dev https://golang.org/cl/5834043
2012-03-15reflect: document PkgPath, Method, StructFieldRuss Cox
R=golang-dev, bradfitz, r CC=golang-dev https://golang.org/cl/5824053
2012-03-155l, 6l, 8l: fix stack split logic for stacks near default segment sizeRuss Cox
Fixes #3310. R=golang-dev, r CC=golang-dev https://golang.org/cl/5823051
2012-03-15os: do not assume syscall.Write will write everythingRuss Cox
Fixes #3323. R=golang-dev, remyoudompheng, gri CC=golang-dev https://golang.org/cl/5837047
2012-03-15go/build: do not report Target for local importsRuss Cox
R=golang-dev, gri CC=golang-dev https://golang.org/cl/5820064
2012-03-15net/http: couple more triv.go modernizationsBrad Fitzpatrick
R=golang-dev, rsc CC=golang-dev https://golang.org/cl/5834049
2012-03-15os: return some invented data from Stat(DevNull) on windowsAlex Brainman
Fixes #3321. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/5831043
2012-03-14net/http: ensure triv.go compiles and runsRobert Hencke
R=golang-dev, bradfitz, dsymonds, dave, r CC=golang-dev https://golang.org/cl/5795069
2012-03-14archive/zip: move r.zip off disk, into reader_test.goBrad Fitzpatrick
Makes certain virus scanners happier. R=golang-dev, rsc, adg CC=golang-dev https://golang.org/cl/5823053
2012-03-14go/build: clearer argument name for Import (src -> srcDir)Robert Griesemer
R=rsc CC=golang-dev https://golang.org/cl/5820052
2012-03-14io/ioutil: fix crash when Stat failsRuss Cox
Fixes #3320. R=golang-dev, gri CC=golang-dev https://golang.org/cl/5824051
2012-03-15runtime: manage stack by ourselves for badcallback on windows/amd64Shenghou Ma
This function uses 48-byte of precious non-split stack for every callback function, and without this CL, it can easily overflow the non-split stack. I encountered this when trying to enable misc/cgo/test on windows/amd64. R=rsc CC=golang-dev https://golang.org/cl/5784075
2012-03-14os: IsNotExist() should also consider ERROR_PATH_NOT_FOUND on WindowsShenghou Ma
Also update documentation about IsExist() and IsNotExist(), they are not about files only. R=rsc CC=golang-dev https://golang.org/cl/5794073