Alex Brainman
9c8ae6ca34
os: move epipecheck from file_posix.go and into file_unix.go to fix windows build
...
R=golang-dev
CC=golang-dev
https://golang.org/cl/6450058
2012-07-27 22:21:33 +10:00
Dmitriy Vyukov
ab9ccedefe
os: fix data race in epipecheck()
...
Fixes #3860 .
R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/6443051
2012-07-27 15:05:13 +04:00
Benny Siegert
e726197858
os: add missing full stop in comment
...
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/6399047
2012-07-15 09:48:31 -07:00
David G. Andersen
e66d29cdcf
pkg: Removing duplicated words ("of of", etc.), mostly from comments.
...
Ran 'double.pl' on the pkg tree to identify doubled words.
One change to an error string return in x509; the rest are in comments.
Thanks to Matt Jibson for the idea.
R=golang-dev, bsiegert
CC=golang-dev
https://golang.org/cl/6344089
2012-07-09 09:16:10 +10:00
Han-Wen Nienhuys
d36c095da9
os: make POSIX StartProcess work with chroot again.
...
Skip directory check in startProcess in the presence of
SysProcAttr.
Fixes #3649 .
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/6297083
2012-06-24 19:34:06 -04:00
Russ Cox
7ad37673e1
syscall: revert API changes in Windows Win32finddata fix.
...
Preserve old API by using correct struct in system call
and then copying the results, as we did for SetsockoptLinger.
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/6307065
2012-06-08 13:54:48 -04:00
Joel Sing
5131deeeb2
cgo: enable cgo on netbsd/386 and netbsd/amd64
...
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/6261056
2012-06-05 01:43:04 +10:00
Alex Brainman
8801402940
syscall: correct Win32finddata definition
...
Fixes #3685 .
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/6261053
2012-06-03 19:27:17 +10:00
Joel Sing
b554fb912f
os/syscall: correct netbsd types/names
...
Fix types/names so that these functions work with the generated
syscall/z* files.
R=golang-dev, m4dh4tt3r
CC=golang-dev
https://golang.org/cl/6201078
2012-05-15 12:00:13 +10:00
Anthony Martin
fe5005f721
syscall: remove the Signal type on Plan 9
...
Instead use a new type, "Note", whose underlying
type is just a string. This change allows us to
remove the exported os.Plan9Note type.
R=bradfitz, seed, rsc
CC=golang-dev
https://golang.org/cl/6015046
2012-05-04 03:44:41 -07:00
Alex Brainman
0d55d9832f
os/signal: run windows TestCtrlBreak during build
...
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/6136054
2012-05-02 17:05:52 +10:00
Anthony Martin
90626864dc
os: conform to Go 1 API on Plan 9
...
R=golang-dev, r, bradfitz, r
CC=golang-dev
https://golang.org/cl/6117062
2012-05-01 22:44:38 -07:00
Brian Dellisanti
a0f7c6c658
os/exec: close all internal descriptors when Cmd.Start() fails.
...
This closes any internal descriptors (pipes, etc) that Cmd.Start() had
opened before it failed.
Fixes #3468 .
R=golang-dev, iant, bradfitz
CC=golang-dev
https://golang.org/cl/5986044
2012-04-27 15:46:49 -07:00
Brad Fitzpatrick
90aa56f271
os/user: simplify test
...
Don't require the home directory to exist. Just check
that it returns something.
Fixes #3531
R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/6056045
2012-04-17 18:46:35 -07:00
Anthony Martin
74607d18c5
os: avoid panic when testing errors on Plan 9
...
R=golang-dev, bradfitz, akumar
CC=golang-dev
https://golang.org/cl/6017043
2012-04-16 17:36:02 -07:00
Alex Brainman
8e109af83b
os: fix IsPermission on windows
...
Fixes #3482 .
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5987070
2012-04-10 10:07:29 +10:00
Stefan Nilsson
2dfcbd0a3b
os: add missing byte to FileMode buffer
...
32 bytes is enough for all FileMode bits.
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5853044
2012-03-24 08:16:57 +11:00
Russ Cox
b7b3652414
os: do not assume syscall.Write will write everything
...
Fixes #3323 .
R=golang-dev, remyoudompheng, gri
CC=golang-dev
https://golang.org/cl/5837047
2012-03-15 15:10:19 -04:00
Alex Brainman
4b872d61fe
os: return some invented data from Stat(DevNull) on windows
...
Fixes #3321 .
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/5831043
2012-03-15 16:33:45 +11:00
Shenghou Ma
24ed667b33
os: IsNotExist() should also consider ERROR_PATH_NOT_FOUND on Windows
...
Also update documentation about IsExist() and IsNotExist(), they are not
about files only.
R=rsc
CC=golang-dev
https://golang.org/cl/5794073
2012-03-14 23:54:40 +08:00
Shenghou Ma
4ca59a010e
os: remove document duplication in error predicate functions
...
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5783092
2012-03-13 13:48:07 +08:00
Shenghou Ma
0238cec021
os, syscall: windows really isn't posix compliant, fix os.IsExist()
...
R=golang-dev, rsc, bradfitz, alex.brainman
CC=golang-dev
https://golang.org/cl/5754083
2012-03-13 12:50:04 +11:00
Fazlul Shahriar
c7cca2756e
os/exec: fix typo in documentation
...
R=golang-dev, gri
CC=golang-dev
https://golang.org/cl/5797073
2012-03-12 14:08:00 -07:00
Brad Fitzpatrick
4edd53e47b
os: document FileInfo.Size as system-dependent for irregular files
...
R=rsc, r
CC=golang-dev
https://golang.org/cl/5795059
2012-03-12 13:17:48 -07:00
Alex Brainman
7a3c6c950b
os: fix SameFile to work for directories on windows
...
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5756064
2012-03-07 11:01:23 +11:00
Alex Brainman
d1bd332a67
os: sleep 5ms after process has exited on windows
...
Fixes #2866 .
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5719047
2012-03-02 16:35:42 +11:00
Alex Brainman
c3fbc9a5e8
os: implement UserTime/SystemTime on windows
...
Fixes #3145 .
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5721044
2012-03-02 14:47:40 +11:00
Rob Pike
36d9ee4aec
os: fix grammar in ProcessState comment
...
Asymptotic convergence.
R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/5719045
2012-03-02 14:07:26 +11:00
Russ Cox
30db6d41cd
os: centralize documentation of Process and ProcessState
...
Also change Wait to say "exit" instead of "exit or stop".
I notice that Pid is not implemented on all systems.
Should we fix that?
Fixes #3138 .
R=golang-dev, alex.brainman, r
CC=golang-dev
https://golang.org/cl/5710056
2012-03-01 21:56:54 -05:00
Robert Griesemer
7c6654aa70
all: fixed various typos
...
(Semi-automatically detected.)
R=golang-dev, remyoudompheng, r
CC=golang-dev
https://golang.org/cl/5715052
2012-03-01 14:56:05 -08:00
Alex Brainman
ed238ca4e5
os: release process handle at the end of windows (*Process).Wait
...
Fixes #3154 .
R=golang-dev, bradfitz, rsc
CC=golang-dev
https://golang.org/cl/5707052
2012-03-01 17:36:35 +11:00
Russ Cox
7aba72baaa
os: diagnose chdir error during StartProcess
...
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/5711044
2012-02-29 15:53:57 -05:00
Benny Siegert
8c7b832ad5
os: fix NetBSD build
...
os.fileStat.Sys is no longer exported.
R=golang-dev, m4dh4tt3r, r
CC=golang-dev
https://golang.org/cl/5696074
2012-02-28 11:26:01 +11:00
Alex Brainman
c7482b9196
os: implement sameFile on windows
...
Fixes #2511 .
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5687072
2012-02-27 12:29:33 +11:00
Sanjay Menakuru
27e07a2666
os: fix minor typo
...
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5697051
2012-02-24 22:42:16 +11:00
Rob Pike
880cda557a
os: make the system info a value not a pointer on unix
...
fix a couple of other minor related details.
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5690071
2012-02-23 07:51:49 +11:00
Rob Pike
ccacab641a
os: replace non-portable Waitmsg with portable ProcessState
...
Use methods for key questions.
Provide access to non-portable pieces through portable methods.
Windows and Plan 9 updated.
R=golang-dev, bradfitz, bradfitz, r, dsymonds, rsc, iant, iant
CC=golang-dev
https://golang.org/cl/5673077
2012-02-21 14:10:34 +11:00
Rob Pike
b5a3bd5ff6
os: drop the Wait function and the options to Process.Wait
...
They are portability problems and the options are almost always zero in practice anyway.
R=golang-dev, dsymonds, r, bradfitz
CC=golang-dev
https://golang.org/cl/5688046
2012-02-20 15:36:08 +11:00
Fazlul Shahriar
441538eb57
os,time: fix Plan 9 build
...
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/5689043
2012-02-20 12:31:24 +11:00
Brad Fitzpatrick
efacb2a1b4
os: remove Getenverror
...
Fixes #3065
R=golang-dev, dsymonds, rsc
CC=golang-dev
https://golang.org/cl/5675094
2012-02-18 21:18:13 -08:00
Brad Fitzpatrick
a5f21c95dc
os: document the type of link errors
...
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5673090
2012-02-18 04:45:43 -08:00
Anthony Martin
566e0fe785
os: fix existential typo
...
R=golang-dev, r, gri
CC=golang-dev
https://golang.org/cl/5675081
2012-02-18 07:44:38 +11:00
Rob Pike
efb28b2ac1
os: add a simple example to the package doc.
...
Shows error handling and slices for Read and Write.
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5676075
2012-02-17 14:30:25 +11:00
Mikio Hara
03d4c7c7d7
net, os, syscall: delete os.EPLAN9
...
Also fixes plan9 cross-build.
R=rsc, r
CC=golang-dev
https://golang.org/cl/5675073
2012-02-17 10:59:30 +09:00
Rob Pike
56069f0333
os: delete os.EINVAL and so on
...
The set of errors forwarded by the os package varied with system and
was therefore non-portable.
Three helpers added for portable error checking: IsExist, IsNotExist, and IsPermission.
One or two more may need to come, but let's keep the set very small to discourage
thinking about errors that way.
R=mikioh.mikioh, gustavo, r, rsc
CC=golang-dev
https://golang.org/cl/5672047
2012-02-17 10:04:29 +11:00
David du Colombier
11f4a6c9df
os,syscall: fix plan 9 build
...
NewFile take uintptr
make syscall.ProcAttr.Files be []uintptr
R=rsc
CC=golang-dev
https://golang.org/cl/5656073
2012-02-16 14:04:51 -05:00
Rob Pike
fa8bc8a648
os: fix build
...
TBR=golang-dev
CC=golang-dev
https://golang.org/cl/5674070
2012-02-16 17:39:04 +11:00
Rob Pike
edf1c038e3
os: remove use of _test
...
Part of issue 2573.
R=dsymonds, golang-dev
CC=golang-dev
https://golang.org/cl/5674064
2012-02-16 17:05:43 +11:00
Brad Fitzpatrick
dabf3db715
os/exec: add some examples
...
R=golang-dev, adg, r, bradfitz
CC=golang-dev
https://golang.org/cl/5675054
2012-02-15 14:24:24 +11:00
Anthony Martin
9f8c2c8bbf
os: rename SyscallError.Errno to SyscallError.Err
...
This lets us get rid of the OS-dependent implementations
of SyscallError. The name "Err" was chosen to match the
PathError type.
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5651084
2012-02-14 14:22:34 -05:00