Alex Brainman
e71fc0c1fe
syscall: rearrange windows code so 386 and amd64 can share files
...
R=golang-dev, r
CC=golang-dev, vcc.163
https://golang.org/cl/4641093
2011-07-07 10:40:45 +10:00
Wei Guangjing
63b8b948d9
windows: define and use syscall.Handle
...
Fixes #1487 .
R=rsc, alex.brainman, go.peter.90, mikioh.mikioh, mattn.jp
CC=golang-dev
https://golang.org/cl/4600042
2011-07-01 10:18:07 -04:00
Yasuhiro Matsumoto
88442358a9
net, syscall: interface for windows
...
R=mikioh.mikioh, alex.brainman, rsc, vincent.vanackere
CC=golang-dev
https://golang.org/cl/4590050
2011-06-23 09:54:57 +10:00
Yasuhiro Matsumoto
1374097381
net: Sendfile for win32.
...
implement using TransmitFile().
R=bsiegert, bradfitz, alex.brainman, rsc, go.peter.90
CC=golang-dev
https://golang.org/cl/4536076
2011-06-11 13:24:48 +10:00
Evan Shaw
94b974a22d
os: add Process.Kill and Process.Signal
...
R=alex.brainman, r, rsc, krasin, iant, rsc, r
CC=golang-dev
https://golang.org/cl/4437091
2011-06-06 19:53:30 +10:00
Mikio Hara
d1bdff5448
net, syscall: update IP multicast socket options for darwin, freebsd, linux
...
Add IPv6Mreq and Inet6Pktinfo for specifying the network interface.
Rename IpMreq to IPMreq, SetsockoptIpMreq to SetsockoptIPMreq.
R=rsc, dave, robert.hencke
CC=golang-dev
https://golang.org/cl/4532098
2011-06-02 10:10:17 -04:00
Alex Brainman
cb96d98b06
os: another attempt to handle OpenFile flag parameter properly on Windows
...
Fixes #1791 .
R=rsc, r, r, iant
CC=golang-dev
https://golang.org/cl/4551046
2011-05-27 17:02:24 +10:00
Mikio Hara
12104807de
syscall: add IPv6 scope zone ID support
...
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/4515124
2011-05-22 10:09:07 -07:00
Brad Fitzpatrick
bf73ca88a6
syscall: sendfile
...
R=iant
CC=golang-dev
https://golang.org/cl/4553051
2011-05-20 11:51:31 -07:00
Evan Shaw
366986a3fe
syscall: add Windows file mapping functions and constants
...
R=brainman, rsc1, rsc
CC=golang-dev
https://golang.org/cl/4375046
2011-05-02 09:35:55 +10:00
Alex Brainman
b1deb3be7f
os: fix race in ReadAt/WriteAt on Windows
...
R=bradfitzgo, rsc, peterGo
CC=golang-dev
https://golang.org/cl/4441051
2011-04-26 18:09:46 +10:00
Alex Brainman
59c18b0b36
os: Open with O_APPEND|O_CREATE to append to the end of file on Windows
...
Credit for the fix goes to Hector, test by PeterGo.
Fixes #1655 .
R=golang-dev, rsc1, peterGo
CC=golang-dev, hector
https://golang.org/cl/4436051
2011-04-22 15:31:25 +10:00
Alex Brainman
d3cd0c0752
syscall: fix Windows Signalled
...
Thanks to fhs.
R=golang-dev, r2
CC=ality, fhs, golang-dev
https://golang.org/cl/4375044
2011-04-08 10:27:47 +10:00
Yuval Pavel Zholkover
1cc4a5cd94
R=rsc, brainman, ality, r2, r
...
CC=golang-dev
https://golang.org/cl/3816043
2011-04-02 14:24:03 -07:00
Alex Brainman
913c8d7397
syscall: StartProcess fixes for windows
...
- StartProcess will work with relative (to attr.Dir, not
current directory) executable filenames
- StartProcess will only work if executable filename points
to the real file, it will not search for executable in the
$PATH list and others (see CreateProcess manual for details)
- StartProcess argv strings can contain any characters
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/4306041
2011-03-24 11:20:28 +11:00
Alex Brainman
0e7995c02f
net: refactor windows code
...
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/4185054
2011-02-23 14:40:24 +11:00
Alex Brainman
946cdf82bc
syscall: fix windows SetFileAttributes
...
R=golang-dev, rsc, hector
CC=golang-dev, mattn
https://golang.org/cl/4180052
2011-02-17 12:09:12 +11:00
Alex Brainman
6cf98a4553
net: fix windows build
...
R=golang-dev, r2
CC=golang-dev
https://golang.org/cl/4184051
2011-02-17 12:00:02 +11:00
Yasuhiro Matsumoto
a54cbcec88
syscall: implement chmod() for win32.
...
R=golang-dev, rsc, brainman
CC=golang-dev
https://golang.org/cl/4175049
2011-02-16 16:24:59 +11:00
Alex Brainman
cf75c86cdf
syscall: change windows apis with bool return value to return errno instead
...
This change is to make these apis similar to their unix counterparts.
R=rsc
CC=golang-dev
https://golang.org/cl/4185042
2011-02-11 10:15:51 +11:00
Alex Brainman
5e83d40904
syscall: implement windows version of Fsync
...
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/4158043
2011-02-09 14:54:54 +11:00
Alex Brainman
4ecebfea53
os: implement new Process api
...
Fixes #1004 .
Fixes #1460 .
R=mattn, r, niemeyer, rog, rsc
CC=golang-dev
https://golang.org/cl/4029053
2011-02-04 14:41:26 +11:00
Hector Chu
fb9fc886ff
windows: syscall: Make ForkExec acquire the ForkLock
...
so that spawned processes avoid inheriting pipes.
Implement CloseOnExec.
Make file and pipe handles inheritable.
R=rsc, brainman, vincent.vanackere
CC=golang-dev
https://golang.org/cl/4126047
2011-02-03 12:50:41 +11:00
Hector Chu
62afa225af
windows: multiple improvements and cleanups
...
The callback mechanism has been made more flexible.
Eliminated one round of argument copying in Syscall.
Faster Get/SetLastError implemented.
Added gettime for gc perf profiling.
R=rsc, brainman, mattn, rog
CC=golang-dev
https://golang.org/cl/4058046
2011-02-01 11:49:24 -05:00
Hector Chu
90294a08c8
runtime: make Walk webbrowser example work
...
R=rsc, brainman, lxn
CC=golang-dev
https://golang.org/cl/4005045
2011-01-25 17:56:33 +11:00
Alex Brainman
f0b8f84d37
runtime: implementation of callback functions for windows
...
R=rsc, lxn, alex.brainman, dho
CC=golang-dev
https://golang.org/cl/1696051
2011-01-22 13:55:53 +11:00
Wei Guangjing
ff25900bb6
net: implement windows timeout
...
R=brainman, rsc
CC=golang-dev
https://golang.org/cl/1731047
2011-01-19 14:49:25 -05:00
Yasuhiro Matsumoto
4a7cdc7944
syscall: fix build. WUNTRACED isn't defined for win32.
...
For Windows, the options for syscall.Wait4() aren't used.
Then this will be dummy value like WNOHANG, WSTOPPED.
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/4075041
2011-01-18 23:00:19 -08:00
Alex Brainman
3a052b5f54
net: use closesocket api instead of CloseHandle on Windows
...
thanks to piotrnar for the original CL.
Fixes #1371 .
R=rsc
CC=golang-dev
https://golang.org/cl/3834042
2011-01-12 15:55:17 +11:00
Andrew Gerrand
217693e93c
os: add Sync to *File, wraps syscall.Fsync
...
R=rsc, brainman, r, r2
CC=golang-dev
https://golang.org/cl/3887042
2011-01-12 11:08:39 +11:00
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
Alex Brainman
84713d46f6
syscall: remove terminating \r and \n from windows error messages
...
R=rsc, peterGo
CC=golang-dev
https://golang.org/cl/3095042
2010-12-13 17:02:01 +11:00
Alex Brainman
1e2876469b
syscall: restrict access rights param of OpenProcess() to the minimum needed
...
Fixes #1270 .
R=vcc, rsc
CC=golang-dev
https://golang.org/cl/3299041
2010-12-08 16:20:30 +11:00
Wei Guangjing
95c341fc78
net: add ReadFrom and WriteTo windows version.
...
Fixes #1275 .
R=rsc, brainman
CC=golang-dev
https://golang.org/cl/3136042
2010-11-22 11:01:30 -05:00
Alex Brainman
a8c4da996e
syscall: fix windows build
...
R=golang-dev
CC=golang-dev
https://golang.org/cl/2713043
2010-10-30 23:55:22 +11: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
Wei Guangjing
d3a2118b8a
syscall: implement WaitStatus and Wait4() for windows
...
R=brainman, rsc, kardia, Joe Poirier
CC=golang-dev
https://golang.org/cl/1910041
2010-10-12 15:42:07 +11: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
e3a0c2f6cf
net: disable tests for functions not available on windows
...
R=r, Joe Poirier, rsc
CC=golang-dev
https://golang.org/cl/2123044
2010-09-12 12:02:29 +10:00
Alex Brainman
f5089ffff4
syscall: fix windows Gettimeofday
...
Fixes #1092 .
R=golang-dev, r2
CC=golang-dev
https://golang.org/cl/2121048
2010-09-10 15:39:45 +10:00
Russ Cox
218afb8fbd
syscall: change BUG(brainman) to NOTE(brainman)
...
Avoids the comment appearing in godoc syscall BUGS section.
R=brainman
CC=golang-dev
https://golang.org/cl/1966048
2010-08-25 01:26:35 -04: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
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
Alex Brainman
a79a9098da
syscall: make sure go error numbers do not clash with windows system errors
...
R=rsc
CC=golang-dev
https://golang.org/cl/1857049
2010-08-03 12:04:41 +10:00
Wei Guangjing
adc13b1e48
net: implement windows version of LookupHost/Port/SRV
...
R=brainman, rsc
CC=golang-dev
https://golang.org/cl/1748042
2010-07-29 14:58:28 +10:00
Wei Guangjing
ad4f95d365
syscall: add windows version of Pipe()
...
R=brainman, rsc
CC=golang-dev
https://golang.org/cl/1715046
2010-07-26 15:55:01 +10:00
Daniel Theophanes
7f9e247489
syscall: add ForkExec, Syscall12 on Windows
...
R=brainman, rsc
CC=golang-dev
https://golang.org/cl/1578041
2010-07-26 09:43:35 +10:00
Peter Mundy
6a6d8fdcd3
syscall: On Windows, Errstr FormatMessage has no values to insert.
...
For the Windows version of syscall Errstr, set the
FORMAT_MESSAGE_IGNORE_INSERTS value of the FormatMessage
Flags argument when there are no values to insert.
R=rsc, brainman
CC=golang-dev
https://golang.org/cl/1868043
2010-07-21 09:40:08 -07:00
Peter Mundy
ccd28e8eb6
crypto/rand for Windows
...
R=rsc, brainman
CC=golang-dev
https://golang.org/cl/1773041
2010-07-12 16:37:53 -07:00