Commit Graph

24 Commits

Author SHA1 Message Date
Rob Pike
96cf2ceb2c go.sys/unix: arm uses B not JMP
Fix build.

LGTM=rsc
R=rsc
CC=golang-codereviews
https://golang.org/cl/123510043
2014-08-14 17:39:12 -07:00
Rob Pike
aec3c6a331 go.sys/unix: just jump to syscall.Syscall etc.
Don't re-implement these functions.

LGTM=rsc
R=rsc
CC=golang-codereviews
https://golang.org/cl/124390043
2014-08-14 12:30:17 -07:00
Rob Pike
ba5045e1e0 go.sys/plan9: just jump to syscall.Syscall etc.
Don't re-implement these functions.

LGTM=rsc
R=rsc
CC=golang-codereviews
https://golang.org/cl/124350045
2014-08-14 12:05:46 -07:00
Rob Pike
4faa336c56 go.sys/windows: use syscall.Errno for windows errors
If we use a local type, it won't compare properly with errors from
the rest of the standard library. Errors are the one type from syscall
that propagates through the system, so it's important to have only
one type for them.

mkerrors_windows.sh is gone, so:
 - rename zerrors_windows.go and delete its DO NOT EDIT mark
 - delete the contentless zerrors_windows_*.go files

LGTM=rsc
R=rsc
CC=alex.brainman, golang-codereviews
https://golang.org/cl/122600043
2014-08-14 10:28:19 -07:00
Rob Pike
b87d025ac4 go.sys/plan9: use syscall.ErrorString for errors
If we use a local type, it won't compare properly with errors from
the rest of the standard library. Errors are the one type from syscall
that propagates through the system, so it's important to have only
one type for them.
Will apply the corresponding change to the other packages once
this is approved.

Also delete some deprecated code. This is a new package; no need
to carry the past.

LGTM=rsc
R=rsc
CC=golang-codereviews
https://golang.org/cl/126250043
2014-08-14 09:29:35 -07:00
Rob Pike
0c07981137 go.sys/unix: add asm hooks for solaris to runtime-resident syscall help
also: race is supported on freebsd, so fix a couple of build tags

LGTM=minux
R=rsc, minux
CC=golang-codereviews
https://golang.org/cl/124330043
2014-08-13 20:54:29 -07:00
Rob Pike
73a4d37962 go.sys/windows: import syscall
Simple oversight.

LGTM=alex.brainman
R=alex.brainman
CC=golang-codereviews, rsc
https://golang.org/cl/121660043
2014-08-13 17:45:19 -07:00
Rob Pike
9828c4dfac go.sys/unix: fix creds_test.go
For this particular system call, which uses the net package,
the expected error is syscall.EPERM not unix.EPERM.

With this change, go test passes on my linux.

LGTM=iant, rsc
R=rsc, iant
CC=golang-codereviews
https://golang.org/cl/125270043
2014-08-13 21:07:22 +00:00
Rob Pike
7118195da3 go.sys/windows: grab Syscall interface from the standard syscall package
Also provide stubs to call loadlibrary and getprocaddress, which are implemented
for package syscall by runtime/syscall_windows.goc.
Should get the windows go.sys build closer to green.

LGTM=rsc
R=golang-codereviews, rsc
CC=golang-codereviews
https://golang.org/cl/126170043
2014-08-13 14:08:39 -07:00
Rob Pike
9e072b55ca go.sys: add solaris build tags
They were missed yesterday when adding the tags for all the other unix variants.

LGTM=aram
R=rsc, aram
CC=golang-codereviews
https://golang.org/cl/126150043
2014-08-13 10:02:35 -07:00
Rob Pike
11f12da052 go.sys/unix: implement the environment functions by wrapping syscall
The environment is global state that is owned by the standard syscall package.
With this change, go test passes on darwin in the unix directory.

LGTM=rsc
R=rsc
CC=golang-codereviews
https://golang.org/cl/129900043
2014-08-13 09:00:28 -07:00
Rob Pike
279b3782ad go.sys: fix imports to cgc/p/go.sys, add build tags
Approach but probably not achieve a green build.

LGTM=adg
R=golang-codereviews, adg
CC=golang-codereviews
https://golang.org/cl/126120043
2014-08-12 22:59:00 -07:00
Rob Pike
55e2a23348 go.sys/unix: delete nacl
It's a peculiar environment that probably doesn't belong here.
We can bring it back easily if we need it.

LGTM=dave, rsc
R=rsc, dave
CC=golang-codereviews
https://golang.org/cl/128110043
2014-08-12 17:00:33 -07:00
Rob Pike
8768103c90 go.sys/all: update #includes to new location
Darwin/amd64 now builds. No others tested yet.
mkall.sh also runs correctly. The updates, which are
substantial, are not yet applied to avoid unnecessary churn.
Restore mkerrors.sh, which is needed in the unix directory.

LGTM=rsc
R=rsc
CC=golang-codereviews
https://golang.org/cl/122410044
2014-08-12 14:05:03 -07:00
Rob Pike
8442dd2c63 go.sys: update package names
Semi-automatic migration from package syscall to package {plan9,windows,unix}.
No builds attempted yet, but this gets a lot of noise behind us so subsequent
CLs will be more concise and easier to follow.
Subsequent CLs will have semantic content.

LGTM=rsc
R=golang-codereviews, rsc
CC=golang-codereviews
https://golang.org/cl/121520043
2014-08-11 15:58:26 -07:00
Rob Pike
20acc5cf31 go.sys: copy files from syscall package to go.sys/{plan9,windows,unix}
This CL copies to each package of go.sys the files from syscall it will need.
Different directories have different files, but these:
        mkall.sh
        str.go
        syscall.go
        mksyscall.pl
        race.go
        race0.go
        syscall_test.go
are copied to all three.
No changes yet, these are just copies. They are not ready to use yet:
package names are wrong, for starters. But this clean copy will make
it easier to follow the changes as the packages are enabled.

LGTM=rsc
R=golang-codereviews, rsc
CC=golang-codereviews
https://golang.org/cl/126960043
2014-08-11 14:48:46 -07:00
Rob Pike
830b7a2031 go.sys: create new repository
See http://golang.org/s/go1.4-syscall for background.

LGTM=iant
R=golang-codereviews, iant
CC=golang-codereviews
https://golang.org/cl/123130043
2014-08-08 14:33:53 -07:00
Rob Pike
1fabe7702b .hgignore: add comment setting policy
R=golang-codereviews, iant
CC=golang-codereviews
https://golang.org/cl/44810044
2013-12-20 16:28:21 -08:00
Russ Cox
0d571bdbc1 codereview: switch defaultcc to golang-codereviews
See this thread for background:
https://groups.google.com/forum/#!topic/golang-dev/xG7vPi21r8g

R=golang-codereviews, r
CC=golang-codereviews
https://golang.org/cl/39440047
2013-12-20 10:57:06 -05:00
Rob Pike
3ead892b8d go.empty: restore the README
I edited the wrong README when cloning the empty repo to create the tools one.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/9486043
2013-05-17 12:11:15 -07:00
Rob Pike
f4917bf174 go.tools: create subrepository
This subrepo is the ultimate home for some of the experimental components
being developed in go.exp now, and also existing pieces such as go vet.

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/9481043
2013-05-17 11:52:26 -07:00
Nigel Tao
ca8b903872 go.empty: add PATENTS file to the subrepo.
R=r
CC=golang-dev
https://golang.org/cl/6026043
2012-04-16 11:24:04 +10:00
Rob Pike
b38d45f7ff LICENSE: add
R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/5845057
2012-03-17 15:20:58 +11:00
Russ Cox
f61fbb80d2 go.empty: prototype for new subrepository
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5572056
2012-01-25 14:45:13 -05:00