summaryrefslogtreecommitdiff
path: root/src/pkg/os
AgeCommit message (Collapse)AuthorFilesLines
2011-04-28Imported Upstream version 2011.04.27upstream/2011.04.27Ondřej Surý12-14/+430
2011-04-26Imported Upstream version 2011.04.13upstream/2011.04.13Ondřej Surý31-694/+1584
2011-04-20Imported Upstream version 2011.03.07.1upstream/2011.03.07.1Ondřej Surý1-0/+1
2011-02-18Imported Upstream version 2011.02.15upstream/2011.02.15Ondřej Surý8-47/+162
2011-02-14Imported Upstream version 2011-02-01.1upstream/2011-02-01.1Ondřej Surý3-6/+11
2011-01-17Imported Upstream version 2011.01.12upstream/2011.01.12Ondřej Surý24-447/+1121
2010-06-30io/ioutil.TempFile for WindowsPeter Mundy3-0/+53
Fixes issue 834. R=rsc, brainman CC=golang-dev http://codereview.appspot.com/1686047 Committer: Russ Cox <rsc@golang.org>
2010-06-01 Correct the regexp for finding unix signal names.Vinu Rajashekhar1-1/+1
For example, earlier, the regexp would accept SIGQUEUE_MAX as a unix signal with name SIGQUEUE. Now it is ignored. R=iant CC=golang-dev, golang-nuts, joel.sherrill http://codereview.appspot.com/1452041 Committer: Ian Lance Taylor <iant@golang.org>
2010-05-31implement os.FileInfo.*time_ns for windowsAlex Brainman1-4/+3
R=golang-dev, adg CC=golang-dev http://codereview.appspot.com/1145044 Committer: Andrew Gerrand <adg@golang.org>
2010-05-27changes &x -> x[0:] for array to slice conversionRuss Cox4-5/+5
R=gri CC=golang-dev http://codereview.appspot.com/1326042
2010-05-19os: add Chtimes functionBrad Fitzpatrick2-0/+58
R=rsc, r CC=golang-dev http://codereview.appspot.com/1103041 Committer: Russ Cox <rsc@golang.org>
2010-04-29rename GOOS=mingw to GOOS=windowsAlex Brainman5-3/+3
R=rsc, Joe Poirier CC=golang-dev http://codereview.appspot.com/1015043 Committer: Russ Cox <rsc@golang.org>
2010-04-28Remove destination of symlink test in case it got left behindIan Lance Taylor1-0/+1
earlier. R=rsc CC=golang-dev http://codereview.appspot.com/972045
2010-04-26os, syscall: more mingwAlex Brainman5-27/+92
R=rsc, rsc1 CC=golang-dev http://codereview.appspot.com/878046 Committer: Russ Cox <rsc@golang.org>
2010-04-26os: create sys_bsd.goGiles Lean3-18/+7
R=rsc CC=golang-dev http://codereview.appspot.com/897042 Committer: Russ Cox <rsc@golang.org>
2010-04-26os: Fix build for MinGWEvan Shaw1-1/+1
R=rsc CC=golang-dev http://codereview.appspot.com/1014041 Committer: Russ Cox <rsc@golang.org>
2010-04-26net: introduce net.Error interfaceRuss Cox1-1/+11
Adds two more methods, Timeout and Temporary. Implemented by os.Errno too. The intent is to make the checks for os.EAGAIN a little less clunky. It should also let us clean up a bug that Mike Solomon pointed out: if a network server gets an "out of file descriptors" error from Accept, the listener should not stop. It will be able to check this because that error would have Temporary() == true. Also clean up some underscore names. Fixes issue 442. R=r CC=golang-dev, msolo http://codereview.appspot.com/957045
2010-04-22runtime: closures, defer bug fix for Native ClientRuss Cox1-8/+8
Enable package tests for Native Client build. R=r CC=golang-dev http://codereview.appspot.com/957042
2010-04-22os/stat_freebsd.go: maybe fix build for freebsdRob Pike1-1/+1
R=rsc CC=golang-dev http://codereview.appspot.com/970042
2010-04-22FileInfo: regularize the types of some fields.Rob Pike6-41/+41
Uid, Gid become int. File size info becomes int64. Times become int64. R=rsc, cw CC=golang-dev http://codereview.appspot.com/968042
2010-04-13os, syscall: mingw bug fixesAlex Brainman2-3/+2
R=rsc CC=golang-dev http://codereview.appspot.com/815044 Committer: Russ Cox <rsc@golang.org>
2010-04-13os: mingw version of Readdir() and Stat() implementedAlex Brainman6-76/+259
R=rsc CC=golang-dev http://codereview.appspot.com/851045 Committer: Russ Cox <rsc@golang.org>
2010-04-09freebsd: fix build, maybeRuss Cox1-17/+17
R=r CC=golang-dev http://codereview.appspot.com/909041
2010-04-09rename os.Dir to os.FileInfoRob Pike6-94/+95
R=rsc CC=golang-dev http://codereview.appspot.com/902042
2010-04-08fix bug in os_test.go checkModeAlex Brainman1-1/+1
R=golang-dev, r CC=golang-dev http://codereview.appspot.com/872043 Committer: Rob Pike <r@golang.org>
2010-04-02syscall: implementing some mingw syscalls required by os packageAlex Brainman4-3/+34
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-25strings: delete Runes, BytesRuss Cox1-3/+3
gofmt -w -r 'strings.Bytes(a) -> []byte(a)' src/cmd src/pkg test/bench gofmt -w -r 'strings.Runes(a) -> []int(a)' src/cmd src/pkg test/bench delete unused imports R=r CC=golang-dev http://codereview.appspot.com/224062
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
2010-01-26os: in test, allow Hostname to return FQDN even if /bin/hostname does notIcarus Sparry1-1/+6
Hostname reads the file /proc/sys/kernel/hostname to determine the value it returns. Some people set this to a Fully Qualified Doamin Name. At least one implementation of /bin/hostname truncates the name it gets (often from the "uname" system call) at the first dot unless it is given a "-f" flag. This change makes the unit test also truncate at the first dot and checks if the strings then match. This seems more portable than adding an extra flag to the called /bin/hostname program. R=rsc CC=golang-dev http://codereview.appspot.com/181097 Committer: Russ Cox <rsc@golang.org>
2010-01-11Replicate signal names from syscall in os/signal.David Symonds3-2/+32
R=rsc CC=golang-dev http://codereview.appspot.com/183142 Committer: Russ Cox <rsc@golang.org>
2009-12-23Use t.Errorf for formatted error output.Ian Lance Taylor1-1/+1
R=dsymonds1 CC=golang-dev http://codereview.appspot.com/183049
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-16runtime: if os/signal is not in use, crash onRuss Cox1-0/+1
most signals, so that ordinary programs can be killed, for example. Fixes issue 434. R=dsymonds1 CC=golang-dev, hoisie http://codereview.appspot.com/180064
2009-12-15os/signal: new packageDavid Symonds3-0/+77
Fixes issue 71. R=rsc, r http://codereview.appspot.com/162056 Committer: Russ Cox <rsc@golang.org>
2009-12-151) Change default gofmt default settings forRobert Griesemer23-692/+692
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 Taylor2-1/+31
R=rsc http://codereview.appspot.com/166058
2009-12-02move ReadFile, WriteFile, and ReadDir into a separate io/ioutil package.Rob Pike1-1/+2
this breaks the dependency of package io on package bytes. R=rsc CC=golang-dev http://codereview.appspot.com/163085
2009-11-23go: makes it build for the case $GOROOT has whitespacesSergio Luis O. B. Correia1-2/+2
the bash scripts and makefiles for building go didn't take into account the fact $GOROOT / $GOBIN could both be directories containing whitespaces, and was not possible to build it in such a situation. this commit adjusts the various makefiles/scripts to make it aware of that possibility, and now it builds successfully when using a path with whitespaces as well. Fixes issue 115. R=rsc, dsymonds1 http://codereview.appspot.com/157067 Committer: Russ Cox <rsc@golang.org>
2009-11-20gofmt -r 'α[β:len(α)] -> α[β:]' -w src/cmd src/pkgRuss Cox7-8/+8
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-17FreeBSD-specific porting work.Devon H. O'Dell3-0/+128
cgo/libmach remain unimplemented. However, compilers, runtime, and packages are 100%. I still need to go through and implement missing syscalls (at least make sure they're all listed), but for all shipped functionality, this is done. Ship! ;) R=rsc, VenkateshSrinivas http://codereview.appspot.com/152142 Committer: Russ Cox <rsc@golang.org>
2009-11-12os.TestSeek: use a smaller but still 64-bit seek offset.Russ Cox1-3/+8
Might fix issue 91. R=r http://codereview.appspot.com/152108
2009-11-11fix TestRemoveAll again (tested as root this time).Russ Cox1-8/+7
Fixes issue 22. R=r http://codereview.appspot.com/154069
2009-11-11os test: do not use symlink > 255 bytes.Russ Cox1-1/+2
Fixes issue 62. R=r http://codereview.appspot.com/152080
2009-11-11os: do not test error case of TestRemoveAll when rootRuss Cox1-25/+28
Fixes issue 22. R=r1, r http://codereview.appspot.com/152073
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 Griesemer12-32/+32
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 Griesemer17-231/+231
R=rsc, r http://go/go-review/1025029