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
Russ Cox
62c24811e7
syscall: fix freebsd/386 again
...
TBR=r
CC=golang-dev
https://golang.org/cl/4380042
2011-04-07 15:44:10 -04:00
Russ Cox
62049366e7
syscall: freebsd/386 Syscall9 (fix build)
...
R=r
CC=golang-dev
https://golang.org/cl/4386042
2011-04-07 15:35:04 -04:00
Mikio Hara
c54ed66c75
syscall: fix build
...
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/4368050
2011-04-07 12:03:45 -07:00
Dave Cheney
b3a4d58ba8
syscall: fix typo in mmap comment
...
R=rsc
CC=golang-dev
https://golang.org/cl/4377043
2011-04-06 23:07:32 -04:00
Russ Cox
48ae1f2d9b
syscall: add Mmap, Munmap on Linux, FreeBSD, OS X
...
* tweak mksyscall*.pl to be more gofmt-compatible.
* add mkall.sh -syscalls option.
* add sys/mman.h constants on OS X
R=r, eds, niemeyer
CC=golang-dev
https://golang.org/cl/4369044
2011-04-06 17:52:02 -04:00
Albert Strasheim
c45a08e5ba
syscall: Add DT_* and MADV_* constants on Linux.
...
R=rsc, agl1
CC=golang-dev
https://golang.org/cl/4370041
2011-04-06 16:19:22 -04:00
Russ Cox
cf56f06ab6
os, syscall: refactor Unix directory parsing
...
Moved the details of how to read a directory
and how to parse the results behind the new
syscall functions ReadDirent and ParseDirent.
Now os needs just one copy of Readdirnames
for the three Unix variants, and it no longer
imports "unsafe".
R=r, r2
CC=golang-dev
https://golang.org/cl/4368048
2011-04-06 15:44:40 -04:00
Mikio Hara
5a59b9eba3
syscall: add BPF support for freebsd/386, freebsd/amd64
...
R=rsc
CC=golang-dev
https://golang.org/cl/4331050
2011-04-04 15:40:40 -04: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
Evan Shaw
7b40095e8c
syscall: make Rawsyscall6 pass 6th arg on linux/386
...
Forgot this one in the previous CL
R=rsc, r
CC=golang-dev
https://golang.org/cl/4345043
2011-04-01 22:26:57 -04:00
Evan Shaw
46137557c4
syscall: make Syscall6 pass 6th arg on linux/386
...
R=rsc
CC=golang-dev
https://golang.org/cl/4350043
2011-04-01 20:46:01 -04:00
Alexey Borzenkov
10694c81b0
net, syscall: fix windows build
...
Fix resolv_windows.go to support recent DNS-lookup changes
R=brainman, rsc1, rsc
CC=golang-dev
https://golang.org/cl/4300045
2011-03-31 15:16:18 +11:00
Albert Strasheim
d41d6fec10
syscall: StartProcess Chroot and Credential.
...
R=rsc, iant, agl1
CC=golang-dev
https://golang.org/cl/4280065
2011-03-29 14:29:22 -04:00
Albert Strasheim
e83d69647f
syscall: GetsockoptInt for darwin, freebsd.
...
R=rsc
CC=golang-dev
https://golang.org/cl/4298060
2011-03-25 14:43:59 -04: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
Albert Strasheim
c6810e76ed
syscall: GetsockoptInt.
...
R=rsc, iant
CC=golang-dev
https://golang.org/cl/4271060
2011-03-23 14:33:48 -04:00
Rob Pike
319a8c45ac
syscall: rename from .sh to .pl, because these files are in Perl.
...
Also delete references to nacl.
R=rsc, r2
CC=golang-dev
https://golang.org/cl/4275060
2011-03-21 13:02:10 -07:00
Ian Lance Taylor
4fd41e494a
syscall: Permit non-blocking syscalls.
...
Permit system calls to be designated as non-blocking, meaning
that we simply call them without involving the scheduler.
This change by itself is mostly performance neutral. In
combination with a following change to the net package there
is a performance advantage.
R=rsc, dfc, r2, iant2, rsc1
CC=golang-dev
https://golang.org/cl/4278055
2011-03-16 19:03:01 -07:00
Roger Peppe
aa55c05213
os, syscall: add ProcAttr type. Change StartProcess etc. to use it.
...
The Windows code is untested.
R=rsc, gri, brainman, rsc1
CC=golang-dev
https://golang.org/cl/4253052
2011-03-15 14:41:19 -04:00
David Anderson
ad102e143c
syscall: implement Mount and Unmount for linux.
...
Note that, while the final argument of mount(2) is a void*, in
practice all filesystem implementations treat it as a string
of comma-separated mount options.
R=bradfitzgo, bradfitzwork
CC=golang-dev
https://golang.org/cl/4247070
2011-03-09 05:58:47 -08:00
David Anderson
05660b79ea
syscall: implement Reboot for linux.
...
The published interface is the simple version of the syscall,
allowing all reboot functions except for the esoteric
LINUX_REBOOT_CMD_RESTART2.
R=golang-dev, bradfitzgo, bradfitzwork
CC=golang-dev
https://golang.org/cl/4256060
2011-03-09 05:45:08 -08:00
Devon H. O'Dell
eeb8d00c86
syscall: work around FreeBSD execve kernel bug
...
FreeBSD's execve implementation has an integer underflow in a bounds test which
causes it to erroneously think the argument list is too long when argv[0] is
longer than interpreter + path.
R=rsc, bradfitz, rsc1
CC=golang-dev
https://golang.org/cl/4259056
2011-03-06 14:57:05 -05:00
Mikio Hara
dd51f3537f
syscall: regenerate zerrors_freebsd_amd64.go
...
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/4248043
2011-02-28 10:21:19 -05: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
Albert Strasheim
e881d42f87
os: add ENODATA and ENOTCONN
...
syscall: add MCL_* flags for mlockall
R=rsc
CC=golang-dev
https://golang.org/cl/4177044
2011-02-16 13:19:31 -05: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
Yasuhiro Matsumoto
186b07afff
syscall: fix inverse checking of result code on windows.
...
R=golang-dev, brainman, rsc
CC=golang-dev
https://golang.org/cl/4179049
2011-02-16 16:07:04 +11:00
Mikio Hara
9b85d499af
syscall: remove obsolete socket IO control
...
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/4183046
2011-02-11 16:20:31 -05:00
Mikio Hara
9c97af99bc
syscall: add sockaddr_dl, sysctl with routing message support for darwin, freebsd
...
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/4171043
2011-02-11 14:34:00 -05: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
Russ Cox
56faae21d2
syscall: do not use NULL for zero-length read, write
...
Avoids problems running Linux binaries under QEMU.
R=r, gri
CC=golang-dev
https://golang.org/cl/4151043
2011-02-09 14:28:47 -05: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
Russ Cox
223459891e
syscall: fix arm build
...
R=r
CC=golang-dev
https://golang.org/cl/4105057
2011-02-07 17:49:45 -05: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
Dave Cheney
eff1952873
syscall: add SetsockoptIpMreq
...
notes:
* due to Issue 1466 the Msghdr struct for
src/pkg/syscall/ztypes_darwin_386.go
src/pkg/syscall/ztypes_darwin_amd64.go
had to be edited after the godefs generation.
* ztypes_*.go files for linux, freebsd and darwin
have been prepared on the correct host OS and ARCH.
While the total increase is a dozen lines per file
the diff is larger due to a change to godefs,
http://code.google.com/p/go/source/detail?r=c79e30afe9c8
while has altered the names of Pad members which
causes gofmt to realign the affected structs
R=rsc, mikioh
CC=golang-dev
https://golang.org/cl/4119053
2011-02-03 14:15:35 -05: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
Mikio Hara
400ea843c6
syscall: add network interface constants for freebsd/386, freebsd/amd64
...
R=rsc
CC=golang-dev
https://golang.org/cl/4105046
2011-02-01 08:46:21 -05:00
Mikio Hara
5c0aab9cae
syscall: add network interface constants for darwin/386, darwin/amd64
...
R=rsc
CC=golang-dev
https://golang.org/cl/4079049
2011-01-31 12:50:50 -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
Alex Brainman
6d94b14e19
syscall: include all, even duplictate, invented error messages
...
Otherwise syscall.Errstr() returns "" for some (EWOULDBLOCK) errors.
R=rsc
CC=golang-dev
https://golang.org/cl/3941041
2011-01-20 21:24:15 +11:00
Andrew Gerrand
0b08119adc
syscall: attempt to fix windows build, supply missing constant
...
R=r, brainman, rsc1
CC=golang-dev
https://golang.org/cl/4023043
2011-01-20 12:41:59 +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
Albert Strasheim
3a97119517
net, syscall: return source address in Recvmsg
...
R=rsc
CC=golang-dev
https://golang.org/cl/3766042
2011-01-19 14:34:53 -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
Russ Cox
acd858eee0
syscall: correct WSTOPPED on OS X
...
Have to set #defines correctly to get correct value.
Otherwise get a mask for use in implementing WIFSTOPPED(status).
Changed WSTOPPED definition in os because on
OS X WSTOPPED and WUNTRACED have different values
even though they seem to mean the same thing.
Fixes #1374 .
R=r, r2
CC=golang-dev
https://golang.org/cl/4063042
2011-01-18 14:02:41 -05:00
Ian Lance Taylor
2862d003cb
syscall: Correct length of GNU/Linux abstract Unix domain sockaddr.
...
R=rsc, iant2
CC=golang-dev
https://golang.org/cl/3974044
2011-01-18 08:10:22 -08:00
Ian Lance Taylor
18941a75b7
syscall: Correct length of SockaddrUnix.
...
R=rsc
CC=golang-dev
https://golang.org/cl/4025041
2011-01-14 10:50:51 -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
Anthony Martin
fee3aca2e0
syscall: fix mksysnum_linux.sh
...
A few system call numbers on x86 Linux are
defined in terms of a previous definition,
e.g.,
#define __NR_timer_create 259
#define __NR_timer_settime (__NR_timer_create+1)
...
#define __NR_mq_open 277
#define __NR_mq_unlink (__NR_mq_open+1)
This change assumes the numbers are sorted
sequentially in the input file.
R=rsc, bradfitzwork
CC=golang-dev
https://golang.org/cl/3946041
2011-01-11 14:38:14 -05:00
Rob Pike
80055c658b
arm: fix build
...
previous version was built with -l32; should be -b32
R=ken
CC=golang-dev
https://golang.org/cl/3867044
2011-01-07 17:17:42 -08:00
Russ Cox
189d4ff776
syscall: correct Linux Splice definition
...
Fixes #1376 .
R=r
CC=golang-dev
https://golang.org/cl/3869042
2011-01-05 14:35:07 -05:00
Ian Lance Taylor
e9c4f09985
syscall: Make Access second argument consistently uint32.
...
Fixes #1377 .
R=rsc, adg, r
CC=golang-dev
https://golang.org/cl/3868041
2011-01-04 22:28:31 -08: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
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
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
Mikio Hara
6555cfc6c6
syscall: add network interface constants for linux/386, linux/amd64
...
R=rsc
CC=golang-dev
https://golang.org/cl/3266042
2010-12-09 13:55:59 -05:00
Russ Cox
85d9ab61d2
arm: more fixes
...
R=ken2
CC=golang-dev
https://golang.org/cl/3523041
2010-12-08 16:49:49 -05:00
Russ Cox
66f7463e80
syscall: fix linux/arm build
...
bug introduced at
https://golang.org/cl/2331044
R=ken2
CC=golang-dev
https://golang.org/cl/3440046
2010-12-08 14:31:46 -05: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
Albert Strasheim
cf6c212197
syscall, net: Add Recvmsg and Sendmsg on Linux.
...
Working on issue 1101.
R=rsc
CC=golang-dev
https://golang.org/cl/2331044
2010-12-07 13:40:14 -05: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
Ken Thompson
48cc88d063
arm is not little-endian
...
R=rob
CC=golang-dev
https://golang.org/cl/3075041
2010-11-12 14:27:55 -08:00
Peter Mundy
fa7341aafd
syscall: use 64-bit file size for truncation on Linux
...
Truncate and Ftruncate for 32-bit Linux should use 64-bit
offset system calls.
R=rsc
CC=golang-dev, royger
https://golang.org/cl/2943041
2010-11-05 16:41:23 -04:00
Albert Strasheim
6442f38a91
syscall: SIO constants for Linux
...
R=rsc
CC=golang-dev
https://golang.org/cl/2303043
2010-11-01 16:42:33 -04: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
Russ Cox
d86ab015f7
use copy
...
R=gri
CC=golang-dev
https://golang.org/cl/2763041
2010-10-26 21:52:54 -07:00
Russ Cox
1142b60dad
syscall/arm: correct 64-bit system call arguments
...
Thanks to kaib for the tip.
R=ken2
CC=golang-dev
https://golang.org/cl/2596043
2010-10-20 10:39:46 -04:00
Russ Cox
14d2242fb9
syscall: fix arm networking
...
Suggested by fango (fan.howard@gmail.com )
R=r, r2
CC=golang-dev
https://golang.org/cl/2514041
2010-10-14 16:13:44 -04:00
Russ Cox
d687ea5588
arm: fix syscall build again
...
R=ken2
CC=golang-dev
https://golang.org/cl/2465041
2010-10-12 15:16:47 -04:00
Russ Cox
2a19865012
arm: regenerate ztypes_linux_arm.go (fix build)
...
R=adg
CC=golang-dev
https://golang.org/cl/2404043
2010-10-12 10:24:55 -04:00
Mikio Hara
b390c4b9d6
syscall: add sockaddr_ll support for linux/386, linux/amd64
...
R=rsc, albert.strasheim
CC=golang-dev
https://golang.org/cl/2356042
2010-10-12 09:48:56 -04: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
Albert Strasheim
8b905489ab
syscall: add ucred structure for SCM_CREDENTIALS over UNIX sockets.
...
Working on issue 1101.
R=golang-dev, rsc, adg
CC=golang-dev
https://golang.org/cl/2338042
2010-10-06 21:32:31 +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
Balazs Lecz
4bfcfcf89f
syscall: add inotify on Linux
...
R=rsc
CC=golang-dev
https://golang.org/cl/2241045
2010-09-27 11:44:26 -04:00
Alex Brainman
f2db47d427
syscall: fix windows value of IPV6_V6ONLY
...
R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/2213048
2010-09-27 11:42:58 +10:00
Alex Brainman
e4245f2502
syscall: add IPPROTO_IPV6 and IPV6_V6ONLY const to fix nacl and windows build
...
R=golang-dev
CC=golang-dev
https://golang.org/cl/2204050
2010-09-25 21:24:12 +10:00
Russ Cox
5c4917ce33
syscall: rebuild z files
...
darwin/386
darwin/amd64
freebsd/386
freebsd/amd64
linux/386
linux/amd64
nacl/386
TBR=adg
CC=golang-dev
https://golang.org/cl/2198047
2010-09-24 15:17:20 -04:00
Russ Cox
f33ef07f38
syscall: fix socketpair in syscall_bsd
...
THIS WILL BREAK THE BUILD.
The z files have socketpair code in them that was
written by hand; breaking the build with this is the first
step in getting rid of that hand-written code.
R=adg
TBR=adg
CC=golang-dev
https://golang.org/cl/2197050
2010-09-24 14:59:34 -04:00
Russ Cox
dabd9fe920
syscall: work harder to avoid doing this ever again
...
TBR=adg
CC=golang-dev
https://golang.org/cl/2218044
2010-09-24 14:52:10 -04:00
Russ Cox
5bd0bea7d2
syscall: fix mkall.sh for nacl
...
TBR=adg
CC=golang-dev
https://golang.org/cl/2208050
2010-09-24 14:38:17 -04:00
Russ Cox
908b0683e1
syscall: fix permissions on mksysnum_nacl.sh
...
TBR=adg
CC=golang-dev
https://golang.org/cl/2208049
2010-09-24 11:03:54 -07:00
Russ Cox
9a96fb3a29
mkall.sh, mkerrors.sh: work more broadly
...
work on FreeBSD even without /usr/src/sys.
work on systems where gcc -static is broken.
TBR so I can test my semi-automated z builder.
TBR=adg
CC=golang-dev
https://golang.org/cl/2215046
2010-09-24 13:37:02 -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
Ian Lance Taylor
7d03d0ec6b
syscall: Use vsyscall for syscall.Gettimeofday and .Time on linux amd64.
...
Regenerate zsyscall_linux_*.go files with recent changes to
mksyscall.sh.
Add socketpair to syscall_linux_amd64.go; for some reason it
was in the generated file but not in the source file.
R=rsc, r2
CC=golang-dev
https://golang.org/cl/2190044
2010-09-21 06:49:56 -07:00
Russ Cox
950ee18366
syscall: fix NaCl
...
missing from last CL, sorry
R=r
CC=golang-dev
https://golang.org/cl/2214043
2010-09-19 23:28:45 -04:00
Russ Cox
e769342614
nacl: fix zero-length writes
...
NaCl rejects zero-length write using nil pointer.
R=r
CC=golang-dev
https://golang.org/cl/2237042
2010-09-19 22:52:30 -04: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
Brad Fitzpatrick
34c312e11e
arm: use the correct stat syscalls
...
We were using the 64-bit struct with the old 32-bit
system calls.
http://code.google.com/p/go/issues/detail?id=1083
This also fixes up mksyscall.sh to generate
gofmt-compliant code.
R=rsc
CC=golang-dev, kaib
https://golang.org/cl/2148042
2010-09-07 09:23:49 -04: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
Kai Backman
534dbc738f
arm: fix build, regenerate syscall files
...
R=r
CC=golang-dev
https://golang.org/cl/1952046
2010-08-23 13:25:14 +03:00
Robert Griesemer
dbbe32ee53
fix build
...
Also: Copyright notices only need the year the file was created.
R=rsc
CC=golang-dev, krasin
https://golang.org/cl/2021041
2010-08-20 11:20:12 -07:00
Ivan Krasin
5a0274399a
syscall: regenerate syscall/z* files for linux/386, linux/amd64
...
DISTRIB_DESCRIPTION="Ubuntu 10.04 LTS"
Use <sys/user.h> instead of <linux/user.h>
See http://gcc.gnu.org/ml/gcc-patches/2009-11/msg00834.html for more details.
R=imkrasin, rsc
CC=golang-dev
https://golang.org/cl/1957041
2010-08-20 09:12:21 -04: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
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
Kai Backman
df88fc6109
arm: bugfixes and syscall
...
- integer divide by zero raises panic
- float comparisons involving NaNs work
- syscall interface actually handles return
values and errno correctly.
R=rsc, bradfitzpatrick
CC=golang-dev
https://golang.org/cl/1847047
2010-08-06 16:57:49 -07: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
Alex Brainman
eee095399f
syscall: improve windows errno handling
...
R=rsc, Joe Poirier, PeterGo
CC=golang-dev
https://golang.org/cl/1872045
2010-07-26 10:24:48 +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
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
Ivan Krasin
400f7a6ba5
syscall: add socketpair
...
R=rsc
CC=golang-dev
https://golang.org/cl/1319042
2010-06-30 14:58:21 -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
Alex Brainman
9d5f80b0c6
time: implement timezones for windows
...
Fixes #761 .
R=PeterGo, adg, rsc
CC=golang-dev
https://golang.org/cl/1121042
2010-06-29 22:29:09 -07:00
Alex Brainman
bb9261bf3b
net: initial attempt to implement windows version
...
R=rsc, Mateusz Czaplinski
CC=golang-dev
https://golang.org/cl/1600041
2010-06-29 20:23:39 -07:00
Peter Mundy
ea88de805e
syscall: Add syscall_bsd.go to zsycall_freebsd_386.go
...
Revision: 5885c9d10f created syscall_bsd.go for code used
by Darwin and other *BSDs, which should have included
FreeBSD. mksyscall.sh to generate new zsyscall_freebsd_386.go.
Fixes #862 .
R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/1701048
2010-06-29 09:11:02 +10: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
Alex Brainman
12923e43f2
syscall: windows syscall trace to assist debugging
...
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/1383041
2010-05-28 11:46:10 -07: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
Russ Cox
566f598046
fix build - nacl stubs
...
TBR=nigeltao
CC=golang-dev
https://golang.org/cl/1259042
2010-05-24 17:00:21 -07:00
Alex Brainman
2a1ee42e2b
fix windows build
...
R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/1209048
2010-05-24 11:48:14 -07:00
Andrew Gerrand
977475fd49
syscall: update freebsd_amd64
...
R=rsc, r
CC=golang-dev
https://golang.org/cl/1268041
2010-05-24 09:58:59 -07:00
Russ Cox
48673d2745
syscall: add Utimes, Futimes stubs for NaCl - fix build
...
TBR=nigeltao
CC=golang-dev
https://golang.org/cl/1262042
2010-05-21 14:39:10 -07:00
Russ Cox
1d076a6e61
syscall: regenerate zsyscall_linux_arm.go - fix build
...
R=kaib
CC=golang-dev
https://golang.org/cl/1209047
2010-05-21 14:33:17 -07:00
Christopher Wedgwood
37a6adf1d3
syscall: linux, implement BindToDevice
...
R=rsc
CC=adg, golang-dev, r
https://golang.org/cl/1253043
2010-05-20 09:43:13 -07:00
Christopher Wedgwood
5265857ac4
syscall: bsd, stub BindToDevice
...
R=rsc
CC=adg, golang-dev, r
https://golang.org/cl/1257041
2010-05-20 09:39:35 -07:00
Russ Cox
cbc01a3e76
syscall: add Utimes on Darwin/FreeBSD, add Futimes everywhere
...
Needed for CL 1103041 and beyond.
R=adg, bradfitzpatrick
CC=bradfitz, golang-dev
https://golang.org/cl/1172042
2010-05-19 17:47:57 -07:00
Russ Cox
23bf408d41
syscall: fix arm build (fix bugs in generator, to add O_LARGEFILE)
...
R=r
CC=golang-dev
https://golang.org/cl/1021043
2010-05-03 11:11:01 -07:00
Alex Brainman
b94ae26073
syscall: handle EOF on pipe - special case on Windows
...
R=rsc
CC=golang-dev
https://golang.org/cl/962046
2010-04-30 12:46:46 -07:00
Nigel Tao
05cf357dd9
Add EWOULDBLOCK to sycall_nacl.go.
...
R=rsc
CC=go-dev, golang-dev
https://golang.org/cl/1006045
2010-04-30 18:45:04 +10: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
Russ Cox
7906e31167
syscall: force O_LARGEFILE in Linux open system call
...
Fixes #717 .
R=adg, PeterGo
CC=golang-dev
https://golang.org/cl/1032041
2010-04-29 23:34:06 -07:00
Joe Poirier
4aaddf8a35
syscall: mingw Sleep
...
R=rsc, brainman
CC=golang-dev
https://golang.org/cl/961047
2010-04-29 23:08:22 -07:00
Alex Brainman
a83c5f5cad
syscall: fix mingw build
...
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/988042
2010-04-26 23:47:53 -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
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
Andrew Gerrand
3ffbd57b94
syscall: match linux Setsid function signature to darwin
...
SETSID does return an errno - any reason why it has been done this
way in zsyscall_linux_* ? Otherwise it should be the same as darwin.
From SETSID(2) on my Linux box:
ERRORS
On error, -1 is returned, and errno is set.
Fixes #730
R=rsc
CC=golang-dev
https://golang.org/cl/878047
2010-04-19 13:12:11 +10:00
Alex Brainman
035265975f
os, syscall: mingw bug fixes
...
R=rsc
CC=golang-dev
https://golang.org/cl/815044
2010-04-13 22:30:41 -07:00
Alex Brainman
b07e4d9511
os: mingw version of Readdir() and Stat() implemented
...
R=rsc
CC=golang-dev
https://golang.org/cl/851045
2010-04-13 16:30:11 -07:00