summaryrefslogtreecommitdiff
path: root/src/pkg/syscall
AgeCommit message (Collapse)AuthorFilesLines
2011-04-28Imported Upstream version 2011.04.27upstream/2011.04.27Ondřej Surý15-72/+605
2011-04-26Imported Upstream version 2011.04.13upstream/2011.04.13Ondřej Surý64-2191/+5445
2011-04-20Imported Upstream version 2011.03.07.1upstream/2011.03.07.1Ondřej Surý10-31/+64
2011-02-18Imported Upstream version 2011.02.15upstream/2011.02.15Ondřej Surý35-593/+1623
2011-02-14Imported Upstream version 2011-02-01.1upstream/2011-02-01.1Ondřej Surý15-121/+695
2011-01-17Imported Upstream version 2011.01.12upstream/2011.01.12Ondřej Surý57-3391/+6230
2010-06-30syscall: add socketpairIvan Krasin9-0/+67
R=rsc CC=golang-dev http://codereview.appspot.com/1319042 Committer: Russ Cox <rsc@golang.org>
2010-06-30io/ioutil.TempFile for WindowsPeter Mundy2-0/+13
Fixes issue 834. R=rsc, brainman CC=golang-dev http://codereview.appspot.com/1686047 Committer: Russ Cox <rsc@golang.org>
2010-06-29time: implement timezones for windowsAlex Brainman3-10/+45
Fixes issue 761. R=PeterGo, adg, rsc CC=golang-dev http://codereview.appspot.com/1121042 Committer: Russ Cox <rsc@golang.org>
2010-06-29net: initial attempt to implement windows versionAlex Brainman5-46/+475
R=rsc, Mateusz Czaplinski CC=golang-dev http://codereview.appspot.com/1600041 Committer: Russ Cox <rsc@golang.org>
2010-06-29syscall: Add syscall_bsd.go to zsycall_freebsd_386.goPeter Mundy1-1/+13
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 issue 862. R=golang-dev, adg CC=golang-dev http://codereview.appspot.com/1701048 Committer: Andrew Gerrand <adg@golang.org>
2010-05-31implement os.FileInfo.*time_ns for windowsAlex Brainman3-9/+14
R=golang-dev, adg CC=golang-dev http://codereview.appspot.com/1145044 Committer: Andrew Gerrand <adg@golang.org>
2010-05-28syscall: windows syscall trace to assist debuggingAlex Brainman1-0/+7
R=golang-dev, rsc CC=golang-dev http://codereview.appspot.com/1383041 Committer: Russ Cox <rsc@golang.org>
2010-05-27changes &x -> x[0:] for array to slice conversionRuss Cox2-4/+4
R=gri CC=golang-dev http://codereview.appspot.com/1326042
2010-05-24fix build - nacl stubsRuss Cox1-0/+3
TBR=nigeltao CC=golang-dev http://codereview.appspot.com/1259042
2010-05-24fix windows buildAlex Brainman1-0/+11
R=golang-dev, adg CC=golang-dev http://codereview.appspot.com/1209048 Committer: Andrew Gerrand <adg@golang.org>
2010-05-24syscall: update freebsd_amd64Andrew Gerrand2-523/+604
R=rsc, r CC=golang-dev http://codereview.appspot.com/1268041 Committer: Russ Cox <rsc@golang.org>
2010-05-21syscall: add Utimes, Futimes stubs for NaCl - fix buildRuss Cox1-0/+8
TBR=nigeltao CC=golang-dev http://codereview.appspot.com/1262042
2010-05-21syscall: regenerate zsyscall_linux_arm.go - fix buildRuss Cox1-2/+2
R=kaib CC=golang-dev http://codereview.appspot.com/1209047
2010-05-20syscall: linux, implement BindToDeviceChristopher Wedgwood1-0/+5
R=rsc CC=adg, golang-dev, r http://codereview.appspot.com/1253043 Committer: Russ Cox <rsc@golang.org>
2010-05-20syscall: bsd, stub BindToDeviceChristopher Wedgwood1-0/+9
R=rsc CC=adg, golang-dev, r http://codereview.appspot.com/1257041 Committer: Russ Cox <rsc@golang.org>
2010-05-19syscall: add Utimes on Darwin/FreeBSD, add Futimes everywhereRuss Cox7-10/+62
Needed for CL 1103041 and beyond. R=adg, bradfitzpatrick CC=bradfitz, golang-dev http://codereview.appspot.com/1172042
2010-05-03syscall: fix arm build (fix bugs in generator, to add O_LARGEFILE)Russ Cox10-442/+662
R=r CC=golang-dev http://codereview.appspot.com/1021043
2010-04-30syscall: handle EOF on pipe - special case on WindowsAlex Brainman2-0/+5
R=rsc CC=golang-dev http://codereview.appspot.com/962046 Committer: Russ Cox <rsc@golang.org>
2010-04-30Add EWOULDBLOCK to sycall_nacl.go.Nigel Tao1-0/+4
R=rsc CC=go-dev, golang-dev http://codereview.appspot.com/1006045
2010-04-29rename GOOS=mingw to GOOS=windowsAlex Brainman9-26/+26
R=rsc, Joe Poirier CC=golang-dev http://codereview.appspot.com/1015043 Committer: Russ Cox <rsc@golang.org>
2010-04-29syscall: force O_LARGEFILE in Linux open system callRuss Cox7-32/+65
Fixes issue 717. R=adg, PeterGo CC=golang-dev http://codereview.appspot.com/1032041
2010-04-29syscall: mingw SleepJoe Poirier2-1/+16
R=rsc, brainman CC=golang-dev http://codereview.appspot.com/961047 Committer: Russ Cox <rsc@golang.org>
2010-04-26syscall: fix mingw buildAlex Brainman1-0/+1
R=golang-dev, rsc CC=golang-dev http://codereview.appspot.com/988042 Committer: Russ Cox <rsc@golang.org>
2010-04-26os, syscall: more mingwAlex Brainman4-50/+261
R=rsc, rsc1 CC=golang-dev http://codereview.appspot.com/878046 Committer: Russ Cox <rsc@golang.org>
2010-04-22runtime: closures, defer bug fix for Native ClientRuss Cox1-1/+1
Enable package tests for Native Client build. R=r CC=golang-dev http://codereview.appspot.com/957042
2010-04-19syscall: match linux Setsid function signature to darwinAndrew Gerrand4-7/+10
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 issue 730 R=rsc CC=golang-dev http://codereview.appspot.com/878047
2010-04-13os, syscall: mingw bug fixesAlex Brainman1-11/+9
R=rsc CC=golang-dev http://codereview.appspot.com/815044 Committer: Russ Cox <rsc@golang.org>
2010-04-13os: mingw version of Readdir() and Stat() implementedAlex Brainman5-34/+86
R=rsc CC=golang-dev http://codereview.appspot.com/851045 Committer: Russ Cox <rsc@golang.org>
2010-04-06syscall package: document that errno is zeroed on successGiles Lean1-0/+2
This is a documentation enhancement only, without any code change. The rationale for documenting this precisely is that Unix programmers who "know" that errno's value is undefined after a successful system call may be surprised otherwise and search to be sure that a zero errno may be relied upon after successful calls. R=r, rsc1, rsc CC=golang-dev http://codereview.appspot.com/812044 Committer: Russ Cox <rsc@golang.org>
2010-04-02syscall: implementing some mingw syscalls required by os packageAlex Brainman7-26/+537
R=rsc CC=golang-dev http://codereview.appspot.com/770041 Committer: Russ Cox <rsc@golang.org>
2010-03-30syscall: add IPV6 constantsRuss Cox6-1108/+1255
R=r CC=golang-dev http://codereview.appspot.com/848041
2010-03-30single argument panic on non-darwin and in commentsRuss Cox1-3/+3
R=r CC=golang-dev http://codereview.appspot.com/800042
2010-03-26syscall: Create syscall_bsd.go for code used by Darwin and other *BSDsGiles Lean6-934/+489
In this change I'd like to combine the common code that is present in syscall_darwin.go and syscall_freebsd.go. I have three reasons for wanting to do this now: 1. reducing code duplication is nearly always good :-) 2. the duplication will get worse if I duplicate this code a third time for the NetBSD port I'm working on, which I need to do almost immediately 3. by making this change all in one lump and ignoring any commonality with the syscall_linux*.go files the diff is long but, I think, readable In future it may be possible to cherry pick functions that also apply to Linux and put them in (say) syscall_unix.go, and of course some functions may diverge in future and have to move out to OS or architecture specific files, but today I want just the low hanging fruit. Tested and passed on: Darwin (Snow Leopard, 10.6): amd64 and 386 FreeBSD (8.0-RELEASE): 386 only(*) (*) All my virtualisation software has stopped playing nice with FreeBSD for the moment, so I don't have facilities to test the amd64 port. As the OS X port is OK and the diff looks all right to my eyes I shall keep my fingers crossed. If someone with a FreeBSD/amd64 system cares to test and report I would be appreciative. 2010-03-27 update: I have replaced my virtualisation software, and have working FreeBSD/i386 and FreeBSD/amd64 virtual machines again. As I hoped (and expected -- programmers are optimists :-) the code built and passed all but the two currently known to fail tests on FreeBSD/amd64. I rechecked FreeBSD/i386 too: same results. R=rsc CC=golang-dev http://codereview.appspot.com/751041 Committer: Russ Cox <rsc@golang.org>
2010-03-24syscall: Implement SetsockoptStringChristopher Wedgwood3-0/+10
R=rsc, r CC=golang-dev http://codereview.appspot.com/739042 Committer: Russ Cox <rsc@golang.org>
2010-03-24syscall: bring generated files zsyscall_darwin_*.goGiles Lean2-12/+12
up to date. No functional change, but when these files are regenerated they change, leading to noisy diffs when working in the syscall package. R=golang-dev, rsc CC=golang-dev http://codereview.appspot.com/705043 Committer: Russ Cox <rsc@golang.org>
2010-03-23Trivial: remove duplicate line #include <sys/types.h>Giles Lean1-1/+0
R=golang-dev, gri CC=golang-dev http://codereview.appspot.com/645044 Committer: Robert Griesemer <gri@golang.org>
2010-03-19syscall: mingw implemntation of Errstr()Alex Brainman5-19/+30
R=golang-dev, rsc CC=golang-dev http://codereview.appspot.com/621041 Committer: Russ Cox <rsc@golang.org>
2010-03-19syscall: mksyscall_mingw.sh emitting shorter calls (to Syscall or Syscall6) ↵Alex Brainman2-8/+18
when there are fewer arguments R=rsc CC=golang-dev http://codereview.appspot.com/622041 Committer: Russ Cox <rsc@golang.org>
2010-03-17Fix src/pkg/syscall/mkall.sh: don't assume that . is on PATH.Alex Brainman1-19/+19
R=golang-dev, r CC=golang-dev http://codereview.appspot.com/614042 Committer: Rob Pike <r@golang.org>
2010-03-16syscall: more changes to mingw versionAlex Brainman7-76/+357
- mkall now generates syscall stabs automatically - we can call unicode versions of winapi now - introduce GetErrstr function to fetch error text given errno - general cleanup R=rsc CC=golang-dev http://codereview.appspot.com/562041 Committer: Russ Cox <rsc@golang.org>
2010-03-16syscall: add const ARCH, analogous to OSRuss Cox4-0/+22
R=r CC=giles, golang-dev http://codereview.appspot.com/600041
2010-03-09syscall: minimal mingw version of syscall to call windows dllsAlex Brainman8-0/+309
lots of missing parts, but builds and can call dlls, see a sample code in syscall_mingw.go R=rsc CC=golang-dev http://codereview.appspot.com/218042 Committer: Russ Cox <rsc@golang.org>
2010-03-04gofmt: modified algorithm for alignment of multi-line composite/list entriesRobert Griesemer1-85/+85
- only manual changes are in src/pkg/go/printer/nodes.go - use a heuristic to determine "outliers" such that not entire composites are forced to align with them - improves several places that were not unligned before due too simple heuristic - unalignes some cases that contain "outliers" - gofmt -w src misc Fixes issue 644. R=rsc, r CC=golang-dev http://codereview.appspot.com/241041
2010-03-02gofmt: experiment: align values in map composites where possibleRobert Griesemer8-616/+616
- gofmt -w src misc - looking for feedback R=rsc, r CC=golang-dev http://codereview.appspot.com/223076