Alex Brainman
c83451971e
runtime: move windows goargs implementation from runtime and into os package
...
R=rsc
CC=golang-dev
https://golang.org/cl/3702041
2010-12-16 12:18:18 +11:00
Russ Cox
0c54225b51
remove nacl
...
The recent linker changes broke NaCl support
a month ago, and there are no known users of it.
The NaCl code can always be recovered from the
repository history.
R=adg, r
CC=golang-dev
https://golang.org/cl/3671042
2010-12-15 11:49:23 -05:00
Mikio Hara
7ec69c179d
gofmt -s -w src
...
R=golang-dev, gri
CC=golang-dev
https://golang.org/cl/3592041
2010-12-11 13:49:45 -08:00
Ryan Hitchman
8959851a96
os: make MkdirAll work with symlinks
...
Fixes #1149 .
R=adg
CC=golang-dev
https://golang.org/cl/3564041
2010-12-10 10:43:45 +11:00
Russ Cox
92b4506f73
os: fix test of RemoveAll
...
Fixes #22 . (again)
R=r
CC=golang-dev
https://golang.org/cl/3547041
2010-12-09 14:49:13 -05:00
Balazs Lecz
2bdb2e78fe
os/inotify: new package
...
This patch adds a new package: os/inotify, which
provides a Go wrapper to the Linux inotify system.
R=rsc, albert.strasheim, rog, jacek.masiulaniec
CC=golang-dev
https://golang.org/cl/2049043
2010-12-09 13:11:39 -05:00
Rob Pike
1ce6245d6c
throughout: fix broken calls to Printf etc.
...
I have written a tool to verify Printf calls, and although it's not
ready to be reviewed yet it's already uncovered a spate of problems
in the repository. I'm sending this CL to break the changes into
pieces; as the tool improves it will find more, I'm sure.
R=rsc
CC=golang-dev
https://golang.org/cl/3427043
2010-12-07 16:42:54 -05:00
Robert Griesemer
9f19392f1a
os.Expand: don't call append for each non-variable char
...
R=r
CC=golang-dev
https://golang.org/cl/2993041
2010-11-08 15:13:35 -08:00
Rob Pike
26cda27b0f
os: add Expand function to evaluate environment variables.
...
Fixes #1258 .
R=gri, msolo, bradfitzpatrick, r2
CC=golang-dev
https://golang.org/cl/2988041
2010-11-08 13:25:01 -08:00
Alex Brainman
7812b79627
syscall: fix Stat(path) where path is directory with trailing '/' on windows
...
Fixes #1220 .
R=rsc, r
CC=golang-dev
https://golang.org/cl/2728043
2010-10-30 23:06:49 +11:00
Russ Cox
69c4e9380b
use append
...
R=gri, r, r2
CC=golang-dev
https://golang.org/cl/2743042
2010-10-27 19:47:23 -07:00
Russ Cox
d86ab015f7
use copy
...
R=gri
CC=golang-dev
https://golang.org/cl/2763041
2010-10-26 21:52:54 -07:00
Robert Griesemer
3478891d12
gofmt -s -w src misc
...
R=r, rsc
CC=golang-dev
https://golang.org/cl/2662041
2010-10-22 10:06:33 -07:00
Yasuhiro Matsumoto
1c9dfb7647
os: correct Stat S_ISDIR on Windows
...
R=rsc, brainman
CC=golang-dev
https://golang.org/cl/2598041
2010-10-21 10:29:45 +11:00
Yasuhiro Matsumoto
a9725396c0
os: change TestForkExec so it can run on windows
...
R=brainman, vcc, Joe Poirier, rsc
CC=golang-dev
https://golang.org/cl/2530041
2010-10-20 09:46:24 +11:00
Alex Brainman
17fe2479bf
os: make tests work on windows
...
Fixes #1105 .
R=golang-dev, r
CC=Joe Poirier, golang-dev
https://golang.org/cl/2343043
2010-10-04 17:31:49 +11:00
Peter Mundy
bfb127612a
os: check for valid arguments in windows Readdir
...
Fixes #1129 .
R=rsc, brainman
CC=Joe Poirier, golang-dev
https://golang.org/cl/2211045
2010-09-23 22:06:59 -04:00
Alex Brainman
c10865ce53
syscall: implement windows version of Utimes()
...
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/2215044
2010-09-23 12:36:52 +10:00
Alex Brainman
a071853015
os: make Open() O_APPEND flag work on windows
...
Fixes #1124 .
Implementation is suggested by Skip.
Test is suggested by PeterGo.
R=r, PeterGo, rsc
CC=golang-dev, skip.tavakkolian
https://golang.org/cl/2256041
2010-09-22 13:12:25 +10:00
Alex Brainman
9997dae7a3
os: make RemoveAll() work on windows
...
R=golang-dev, rsc1
CC=golang-dev
https://golang.org/cl/2212041
2010-09-17 12:35:34 +10:00
Robert Griesemer
7534d40f64
fix various comments
...
(os package comments were duplicates)
R=rsc
CC=golang-dev
https://golang.org/cl/2205042
2010-09-16 18:21:01 -07:00
Robert Griesemer
304d72be8c
os: error in documentation
...
R=r
CC=golang-dev
https://golang.org/cl/2225041
2010-09-15 15:38:16 -07:00
Nigel Tao
86b821f92b
libcgo: fix NaCl build.
...
R=r, rsc, nigeltao
CC=golang-dev
https://golang.org/cl/2110046
2010-09-13 13:12:46 +10:00
Russ Cox
e50611d235
os, exec: rename argv0 to name
...
R=r, gri1
CC=golang-dev
https://golang.org/cl/2119044
2010-09-07 16:29:07 -04:00
Scott Lawrence
668f05aaf1
os: make return type of FileInfo.Permission() consistent with related functions
...
(uint32 rather than int)
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/1958048
2010-08-24 10:38:52 +10:00
Russ Cox
da392d9136
build: no required environment variables
...
R=adg, r, PeterGo
CC=golang-dev
https://golang.org/cl/1942044
2010-08-18 10:08:49 -04:00
Alex Brainman
b243d57eb4
os: preserve "=C:" like env variables in env block on windows and bug fix in Clearenv()
...
R=rsc
CC=golang-dev
https://golang.org/cl/1995043
2010-08-17 11:38:26 +10:00
Alex Brainman
79c62aaa99
os: implement env using native windows api.
...
Fixes #864 .
R=rsc
CC=golang-dev
https://golang.org/cl/1975043
2010-08-13 14:29:23 +10:00
Alex Brainman
dbef0711d4
os: fix ForkExec() handling of envv == nil
...
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/1913047
2010-08-09 11:21:20 +10:00
Rob Pike
c78be462a0
once: replace all uses of package once with sync.Once.
...
package once remains for now; will be deleted after next release.
R=golang-dev, brainman
CC=golang-dev
https://golang.org/cl/1914046
2010-08-06 06:14:41 +10:00
Rob Pike
e45b58fe96
os: change the type of permissions argument for Open etc. to uint32.
...
Besides being more correct, it protects against people accidentally
exchanging the permission and open mode arguments to Open.
R=rsc
CC=golang-dev
https://golang.org/cl/1904045
2010-08-04 08:34:52 +10:00
Peter Mundy
12befd063b
os: Null device
...
R=rsc, cw
CC=golang-dev
https://golang.org/cl/1854042
2010-08-03 13:03:50 -07:00
Andrew Gerrand
61fb9ccc8d
os: change comment on O_APPEND to be more accurate
...
R=rsc
CC=golang-dev
https://golang.org/cl/1870042
2010-07-21 17:11:28 +10:00
Russ Cox
e9bcbc5398
os: use /tmp again
...
R=adg
CC=golang-dev
https://golang.org/cl/1823041
2010-07-14 17:25:46 -07:00
Peter Mundy
b6850fe739
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
2010-07-13 10:31:51 +10:00
Russ Cox
971a04f1dc
implications of len spec change
...
R=r
CC=golang-dev
https://golang.org/cl/1712048
2010-07-01 17:49:28 -07:00
Peter Mundy
0e25775518
io/ioutil.TempFile for Windows
...
Fixes #834 .
R=rsc, brainman
CC=golang-dev
https://golang.org/cl/1686047
2010-06-30 13:52:34 -07:00
Vinu Rajashekhar
0d64fa19f8
Correct the regexp for finding unix signal names.
...
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
https://golang.org/cl/1452041
2010-06-01 12:02:00 -07:00
Alex Brainman
901976cfc3
implement os.FileInfo.*time_ns for windows
...
R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/1145044
2010-05-31 13:43:40 +02:00
Russ Cox
bb84f4b5d2
changes &x -> x[0:] for array to slice conversion
...
R=gri
CC=golang-dev
https://golang.org/cl/1326042
2010-05-27 14:51:47 -07:00
Brad Fitzpatrick
1afa2a1b2d
os: add Chtimes function
...
R=rsc, r
CC=golang-dev
https://golang.org/cl/1103041
2010-05-19 17:48:53 -07:00
Alex Brainman
f81d471940
rename GOOS=mingw to GOOS=windows
...
R=rsc, Joe Poirier
CC=golang-dev
https://golang.org/cl/1015043
2010-04-29 23:45:14 -07:00
Ian Lance Taylor
96179629ef
Remove destination of symlink test in case it got left behind
...
earlier.
R=rsc
CC=golang-dev
https://golang.org/cl/972045
2010-04-28 11:08:07 -07:00
Alex Brainman
fb6b39186b
os, syscall: more mingw
...
R=rsc, rsc1
CC=golang-dev
https://golang.org/cl/878046
2010-04-26 23:17:14 -07:00
Giles Lean
461314b6e7
os: create sys_bsd.go
...
R=rsc
CC=golang-dev
https://golang.org/cl/897042
2010-04-26 23:01:31 -07:00
Evan Shaw
bf1c881afe
os: Fix build for MinGW
...
R=rsc
CC=golang-dev
https://golang.org/cl/1014041
2010-04-26 22:50:47 -07:00
Russ Cox
47a0533411
net: introduce net.Error interface
...
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 #442 .
R=r
CC=golang-dev, msolo
https://golang.org/cl/957045
2010-04-26 22:15:25 -07:00
Russ Cox
c6138efbcb
runtime: closures, defer bug fix for Native Client
...
Enable package tests for Native Client build.
R=r
CC=golang-dev
https://golang.org/cl/957042
2010-04-22 17:52:22 -07:00
Rob Pike
6e80a01ab7
os/stat_freebsd.go: maybe fix build for freebsd
...
R=rsc
CC=golang-dev
https://golang.org/cl/970042
2010-04-22 17:04:28 -07:00
Rob Pike
5cd8c83037
FileInfo: regularize the types of some fields.
...
Uid, Gid become int.
File size info becomes int64.
Times become int64.
R=rsc, cw
CC=golang-dev
https://golang.org/cl/968042
2010-04-22 14:01:33 -07:00