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
Ken Rockot
82a8afdf14
syscall: support for tty options in StartProcess
...
These are the relevant changes to exec_unix.go now that
mkerrors.sh outputs have been updated.
R=rsc
CC=golang-dev
https://golang.org/cl/4648064
2011-06-27 19:07:49 -04:00
Russ Cox
dfacfd6431
syscall: regenerate zerrors for darwin/linux/freebsd
...
did darwin on mac with older, not broken xcode.
did linux arm by copying diffs from linux 386.
did freebsd amd64 by copying diffs from freebsd 386.
R=golang-dev, r, mikioh.mikioh
CC=golang-dev
https://golang.org/cl/4629067
2011-06-27 11:02:32 -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
Ken Rockot
c8443d7242
syscall: add tty support to StartProcess
...
These changes add a Ctty int field to the Unix syscall.ProcAttr which,
if set >= 0 in conjuction with Setsid=true, will be used by
forkAndExecInChild as the file descriptor for the new child's
controlling terminal.
Necessary changes have been made to mkerrors.sh to generate defs for
TIOC*, though changes to its output files are not included here.
The changes made should support Linux, FreeBSD and Darwin, at least.
R=iant, bradfitz, r, rsc, borman
CC=golang-dev
https://golang.org/cl/4532075
2011-06-22 18:07:20 -04:00
Robert Hencke
b88e669a8f
nacl, tiny: remove vestiges
...
R=golang-dev, r, rsc
CC=golang-dev
https://golang.org/cl/4635053
2011-06-21 12:02:40 -04:00
Mikio Hara
5d6f118f23
syscall: add socket control message support for darwin, freebsd, linux
...
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/4528113
2011-06-20 18:40:20 -04:00
Mikio Hara
10f1436bad
syscall: add LSF support for linux
...
R=rsc
CC=golang-dev
https://golang.org/cl/4626041
2011-06-20 14:51:34 -04:00
Anthony Martin
20943baed3
exec: add support for Plan 9
...
R=paulzhol, mirtchovski, fshahriar, alex.brainman, r
CC=golang-dev
https://golang.org/cl/4386041
2011-06-20 13:34:10 +10:00
Russ Cox
61f4ec132b
syscall: fix build for Sizeof change
...
R=ken2
CC=golang-dev
https://golang.org/cl/4635051
2011-06-17 17:07:21 -04:00
Russ Cox
cf9f380499
gc: unsafe.Alignof, unsafe.Offsetof, unsafe.Sizeof now return uintptr
...
R=ken2
CC=golang-dev
https://golang.org/cl/4640045
2011-06-17 16:12:14 -04:00
Russ Cox
21e75da486
respect goto restrictions
...
R=gri
CC=golang-dev
https://golang.org/cl/4625044
2011-06-17 06:07:13 -04:00
Yasuhiro Matsumoto
7fd51f2fb4
syscall: use strict in perl scripts
...
R=golang-dev, bradfitz, rsc
CC=golang-dev
https://golang.org/cl/4609047
2011-06-15 17:41:07 -07:00
Yasuhiro Matsumoto
414da2e4a3
syscall: mksyscall_windows.pl should output unix newline.
...
R=golang-dev, bradfitz, alex.brainman
CC=golang-dev
https://golang.org/cl/4601058
2011-06-15 11:50:21 +10:00
Jeff Hodges
0ce57a73c5
syscall: add ptrace on darwin
...
The ptrace syscall remains gutted on darwin, but usable. This
also makes the syscall addition process reproducible on darwin
instead of relying on a file path in rsc's home directory.
I've also removed an override of $PATH in env.bash that made
tooling harder.
R=rsc, dave, r
CC=golang-dev
https://golang.org/cl/4517147
2011-06-14 12:56:46 -04:00
Yuval Pavel Zholkover
400d825ea0
syscall: fix Plan 9 build.
...
Move mmapper from syscall.go to syscall_unix.go.
Remove Sendfile from syscall_plan9.go.
R=rsc, alex.brainman
CC=golang-dev
https://golang.org/cl/4368060
2011-06-14 11:29:51 -04:00
Mikio Hara
b100a29bc4
syscall: update BPF support for BSD variants
...
R=dave, rsc
CC=golang-dev
https://golang.org/cl/4589044
2011-06-14 11:28:36 -04:00
Yuval Pavel Zholkover
18112437d9
os: Plan 9, fix OpenFile & Chmod. Update tests.
...
Add Process.Kill.
R=rsc
CC=golang-dev
https://golang.org/cl/4571049
2011-06-14 11:20:34 -04:00
Russ Cox
4d0f2e9195
syscall, os, exec: introduce *syscall.SysProcAttr field in os.ProcAttr and exec.Cmd
...
R=r, bradfitz, alex.brainman, borman, vincent.vanackere
CC=golang-dev
https://golang.org/cl/4607046
2011-06-14 10:49:34 -04: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
Rob Pike
4b1170d2b1
sort: change IntArray etc. to IntSlice for better name hygiene.
...
R=golang-dev, gri
CC=golang-dev
https://golang.org/cl/4602054
2011-06-11 09:25:18 +10:00
Robert Hencke
8cd7aac223
godefs: do not assume forward type references are enums
...
Fixes #1466 .
R=mikioh.mikioh, rsc
CC=golang-dev
https://golang.org/cl/4564043
2011-06-07 14:28:10 -04: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
Vincent Vanackere
f18a4e9609
syscall : add ProcAttr field to pass an unescaped command line on windows
...
On windows, the command line is passed as a single null-terminated string. While the automatic parameter escaping done by syscall.StartProcess works fine with most Windows programs, some applications do their own custom parsing of the command line, in which case the automatic escaping becomes harmful.
This CL adds a new extra CmdLine field to syscall.ProcAttr that will be used as the raw/unescaped command line if not empty.
Fixes #1849 .
R=golang-dev, alex.brainman, bradfitz, rsc
CC=golang-dev
https://golang.org/cl/4548050
2011-05-31 10:21:38 -04:00
Robert Hencke
3fbd478a8a
pkg: spelling tweaks, I-Z
...
also, a few miscellaneous fixes to files outside pkg
R=golang-dev, dsymonds, mikioh.mikioh, r
CC=golang-dev
https://golang.org/cl/4517116
2011-05-30 18:02:59 +10: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
12376c93ef
syscall: add routing messages support for BSD variants
...
R=rsc
CC=golang-dev
https://golang.org/cl/4539084
2011-05-26 20:02:03 -04:00
Mikio Hara
4d118835ab
syscall: add routing messages support for Linux
...
R=rsc
CC=golang-dev
https://golang.org/cl/4515135
2011-05-26 17:04:58 -04: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
Mikio Hara
1d550bdedf
syscall: add netlink support for linux/386, linux/amd64, linux/arm
...
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/4535078
2011-05-18 16:33:41 -07:00
Mikio Hara
9cd674be93
syscall: adjust freebsd syscalls.master URL properly
...
R=golang-dev, devon.odell
CC=golang-dev
https://golang.org/cl/4552051
2011-05-18 13:28:01 -04:00
Mikio Hara
cef64d8e2b
syscall: add TODO about required manual corrections
...
R=golang-dev, dave, rsc
CC=golang-dev
https://golang.org/cl/4553042
2011-05-18 10:51:45 -04:00
Alex Brainman
8bf1515825
syscall: change Overlapped.HEvent type, it is a handle
...
R=golang-dev, r, r2
CC=golang-dev
https://golang.org/cl/4471046
2011-05-08 16:33:44 +10:00
Alex Brainman
b191155ab4
syscall: fix bug in mksyscall_windows.pl
...
This change fixes generation of "shadow" variables for bool parameters.
Before the change, it was naming all bool variables with the same name of _p0.
Now it calls them _p0, _p1, ... So the code could compile.
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/4479047
2011-05-08 16:32:00 +10: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
Albert Strasheim
839e9eada0
syscall: Mlock, Munlock, Mlockall, Munlockall on Linux.
...
R=rsc, bradfitzgo
CC=golang-dev
https://golang.org/cl/4433070
2011-04-26 06:41:19 -07: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
Dave Cheney
d5864454dc
syscall: fix Ftruncate under linux/arm5
...
Fixes #1714 .
R=rsc, bradfitzgo
CC=golang-dev
https://golang.org/cl/4441056
2011-04-22 14:44:18 -04: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
Mikio Hara
380f4ab2ff
syscall: add BPF support for darwin/386, darwin/amd64
...
note: due to issue 1466 the Msghdr and BpfProgram
struct for src/pkg/syscall/ztypes_darwin_386.go,
src/pkg/syscall/ztypes_darwin_amd64.go had to be
edited after the godefs generation.
R=rsc
CC=golang-dev
https://golang.org/cl/4403042
2011-04-21 16:58:20 -04:00
Albert Strasheim
946a4ea0e3
syscall: Madvise and Mprotect for Linux.
...
R=rsc
CC=golang-dev
https://golang.org/cl/4369047
2011-04-21 10:23:11 -04:00
Vincent Vanackere
1f59004511
syscall : add a field to ProcAttr so that StartProcess can hide the executed application on windows
...
The SW_HIDE parameter looks like the only way for a windows GUI application to execute a CLI subcommand without having a shell windows appearing.
R=brainman, golang-dev, bradfitzgo, rsc1
CC=golang-dev
https://golang.org/cl/4439055
2011-04-22 00:12:06 +10:00
Alex Brainman
5aad514674
syscall: correct Windows CreateProcess input parameters
...
Fixes #1718 .
R=golang-dev, rsc, peterGo, r
CC=golang-dev
https://golang.org/cl/4435059
2011-04-21 10:36:27 +10:00
Nigel Tao
6a186d38d1
src/pkg: make package doc comments consistently start with "Package foo".
...
R=rsc
CC=golang-dev
https://golang.org/cl/4442064
2011-04-20 09:57:05 +10:00
Robert Griesemer
a2e286828b
gofmt: gofmt -s -w src misc
...
R=r, bradfitzwork
CC=golang-dev
https://golang.org/cl/4406044
2011-04-13 15:13:59 -07:00
Fazlul Shahriar
8c1a703560
syscall: fix StartProcess in Plan 9
...
This makes os_test.TestStartProcess test from os package pass.
R=paulzhol, r2, r
CC=golang-dev
https://golang.org/cl/4385052
2011-04-11 12:39:53 -07: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