summaryrefslogtreecommitdiff
path: root/src/pkg/os/file.go
AgeCommit message (Collapse)AuthorFilesLines
2011-04-28Imported Upstream version 2011.04.27upstream/2011.04.27Ondřej Surý1-10/+12
2011-04-26Imported Upstream version 2011.04.13upstream/2011.04.13Ondřej Surý1-241/+36
2011-01-17Imported Upstream version 2011.01.12upstream/2011.01.12Ondřej Surý1-16/+29
2010-05-27changes &x -> x[0:] for array to slice conversionRuss Cox1-2/+2
R=gri CC=golang-dev http://codereview.appspot.com/1326042
2010-05-19os: add Chtimes functionBrad Fitzpatrick1-0/+16
R=rsc, r CC=golang-dev http://codereview.appspot.com/1103041 Committer: Russ Cox <rsc@golang.org>
2010-04-26os, syscall: more mingwAlex Brainman1-20/+3
R=rsc, rsc1 CC=golang-dev http://codereview.appspot.com/878046 Committer: Russ Cox <rsc@golang.org>
2010-04-13os: mingw version of Readdir() and Stat() implementedAlex Brainman1-70/+0
R=rsc CC=golang-dev http://codereview.appspot.com/851045 Committer: Russ Cox <rsc@golang.org>
2010-04-09rename os.Dir to os.FileInfoRob Pike1-24/+25
R=rsc CC=golang-dev http://codereview.appspot.com/902042
2010-04-02syscall: implementing some mingw syscalls required by os packageAlex Brainman1-3/+3
R=rsc CC=golang-dev http://codereview.appspot.com/770041 Committer: Russ Cox <rsc@golang.org>
2010-03-19os: drop File finalizer after normal CloseRuss Cox1-0/+3
R=r CC=golang-dev http://codereview.appspot.com/586043
2010-02-08runtime: allow arbitrary return type in SetFinalizer.Russ Cox1-2/+5
finalize chan, to free OS X semaphore inside Lock. os: finalize File, to close fd. Fixes issue 503. R=ken2 CC=golang-dev http://codereview.appspot.com/204065
2009-12-23Fix comment for Chmod.Peter Froehlich1-1/+1
R=r, rsc CC=golang-dev http://codereview.appspot.com/183042 Committer: Russ Cox <rsc@golang.org>
2009-12-151) Change default gofmt default settings forRobert Griesemer1-112/+112
parsing and printing to new syntax. Use -oldparser to parse the old syntax, use -oldprinter to print the old syntax. 2) Change default gofmt formatting settings to use tabs for indentation only and to use spaces for alignment. This will make the code alignment insensitive to an editor's tabwidth. Use -spaces=false to use tabs for alignment. 3) Manually changed src/exp/parser/parser_test.go so that it doesn't try to parse the parser's source files using the old syntax (they have new syntax now). 4) gofmt -w src misc test/bench 4th set of files. R=rsc CC=golang-dev http://codereview.appspot.com/180049
2009-12-09syscalls can return negative i/o counts. fix bugs in ReadAt and WriteAt not ↵Rob Pike1-2/+2
to include negative counts in return values. R=rsc CC=golang-dev http://codereview.appspot.com/170044
2009-12-04Add os.Rename.Ian Lance Taylor1-1/+10
R=rsc http://codereview.appspot.com/166058
2009-11-20gofmt -r 'α[β:len(α)] -> α[β:]' -w src/cmd src/pkgRuss Cox1-2/+2
R=r, gri CC=golang-dev http://codereview.appspot.com/156115
2009-11-19os.ReadAt doesn't return EOF at EOF.Rob Pike1-0/+3
thanks to lionkov for the fix. Fixes issue 262. R=rsc CC=golang-dev http://codereview.appspot.com/156097
2009-11-10spell it with an "e"Ken Thompson1-0/+1
R=rsc http://go/go-review/1025037
2009-11-09- replaced gofmt expression formatting algorithm withRobert Griesemer1-3/+3
rsc's algorithm - applied gofmt -w misc src - partial CL (last chunk) R=rsc, r http://go/go-review/1024041
2009-11-09remove semis after statements in one-statement statement listsRobert Griesemer1-45/+45
R=rsc, r http://go/go-review/1025029
2009-11-06- fine-tuning of one-line func heuristic (nodes.go)Robert Griesemer1-9/+3
- enabled for function declarations (not just function literals) - applied gofmt -w $GOROOT/src (look for instance at src/pkg/debug/elf/elf.go) R=r, rsc CC=go-dev http://go/go-review/1026006
2009-11-01syscall cleanup.Russ Cox1-1/+1
* rename PORT.sh -> mkall.sh (hopefully more obvious), change behavior: run commands by default. * pull more constants out of #defines automatically, instead of editing large lists by hand. * add Recvfrom, Sendto add os.O_EXCL. R=r http://go/go-review/1017009
2009-10-29Change Stat to Lstat in Readdir so we don't recur when someone symlinks "."Rob Pike1-1/+1
R=rsc CC=go-dev http://go/go-review/1018003
2009-10-06apply gofmt to malloc math once osRuss Cox1-47/+47
R=gri DELTA=566 (4 added, 14 deleted, 548 changed) OCL=35410 CL=35419
2009-08-27os.File.ReadAt/WriteAtRuss Cox1-3/+44
R=r DELTA=84 (81 added, 0 deleted, 3 changed) OCL=34006 CL=34006
2009-08-12convert low-level (used by testing) packages toRuss Cox1-8/+0
whole-package compilation. new Makefiles, tests now in separate package bytes flag fmt io math once os reflect strconv sync time utf8 delete import "xxx" in package xxx. inside package xxx, xxx is not declared anymore so s/xxx.//g delete file and package level forward declarations. note the new internal_test.go and sync and strconv to provide public access to internals during testing. the installed version of the package omits that file and thus does not open the internals to all clients. R=r OCL=33065 CL=33097
2009-08-10remove unnecessary pkg. referencesRuss Cox1-2/+2
R=r DELTA=95 (0 added, 0 deleted, 95 changed) OCL=33012 CL=33012
2009-06-29make use of forward method declarationRuss Cox1-7/+1
R=r DELTA=11 (0 added, 6 deleted, 5 changed) OCL=30862 CL=30870
2009-06-25Change os.Error convention:Russ Cox1-35/+92
echo back context of call in error if likely to be useful. For example, if os.Open("/etc/passwd", os.O_RDONLY) fails with syscall.EPERM, it returns as the os.Error &PathError{ Op: "open", Path: "/etc/passwd" Error: os.EPERM } which formats as open /etc/passwd: permission denied Not converted: datafmt go/... google/... regexp tabwriter template R=r DELTA=1153 (561 added, 156 deleted, 436 changed) OCL=30738 CL=30781
2009-06-22introduce os.EOF and io.ErrUnexpectedEOF.Russ Cox1-1/+16
remove io.ErrEOF. rename io.FullRead to io.ReadFull, to match ReadAtLeast and ReadAll. remove io.FullReader, because it is now unused. R=r DELTA=295 (88 added, 105 deleted, 102 changed) OCL=30544 CL=30588
2009-06-09mv src/lib to src/pkgRob Pike1-0/+383
tests: all.bash passes, gobuild still works, godoc still works. R=rsc OCL=30096 CL=30102