Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(379)

Issue 5491050: code review 5491050: syscall: Changes to the syscall package to support NetBSD.

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 4 months ago by m4dh4tt3r
Modified:
13 years, 4 months ago
Reviewers:
jsing
CC:
golang-dev, jsing, mikio
Visibility:
Public.

Description

syscall: Changes to the syscall package to support NetBSD. Not all syscalls are implemented, but many are. On the suggestion of Joel Sing <jsing@google.com>, the generated files were added with hg add instead of hg cp, since they are generated on an OS dependant basis.

Patch Set 1 #

Total comments: 6

Patch Set 2 : diff -r 56842d9b23d2 https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r 56842d9b23d2 https://go.googlecode.com/hg/ #

Total comments: 3

Patch Set 4 : diff -r e03f5fc4f701 https://go.googlecode.com/hg/ #

Total comments: 4

Patch Set 5 : diff -r e03f5fc4f701 https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6537 lines, -98 lines) Patch
M src/pkg/syscall/Makefile View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M src/pkg/syscall/asm_netbsd_386.s View 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/syscall/asm_netbsd_amd64.s View 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/syscall/bpf_bsd.go View 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/syscall/env_unix.go View 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/syscall/exec_unix.go View 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/syscall/mkall.sh View 1 2 3 4 2 chunks +13 lines, -1 line 0 comments Download
M src/pkg/syscall/mkerrors.sh View 1 2 3 4 1 chunk +21 lines, -0 lines 0 comments Download
M src/pkg/syscall/mksyscall.pl View 1 2 3 3 chunks +6 lines, -1 line 0 comments Download
M src/pkg/syscall/mksysnum_netbsd.pl View 1 2 3 2 chunks +20 lines, -12 lines 0 comments Download
M src/pkg/syscall/route_bsd.go View 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/syscall/route_netbsd.go View 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/syscall/sockcmsg_unix.go View 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/syscall/syscall_bsd.go View 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/syscall/syscall_netbsd.go View 1 2 3 8 chunks +230 lines, -76 lines 0 comments Download
M src/pkg/syscall/syscall_netbsd_386.go View 0 chunks +-1 lines, --1 lines 0 comments Download
M src/pkg/syscall/syscall_netbsd_amd64.go View 0 chunks +-1 lines, --1 lines 0 comments Download
M src/pkg/syscall/syscall_unix.go View 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/syscall/types_netbsd.go View 0 chunks +-1 lines, --1 lines 0 comments Download
A src/pkg/syscall/zerrors_netbsd_386.go View 1 chunk +1368 lines, -0 lines 0 comments Download
A src/pkg/syscall/zerrors_netbsd_amd64.go View 1 chunk +1368 lines, -0 lines 0 comments Download
A src/pkg/syscall/zsyscall_netbsd_386.go View 1 2 3 1 chunk +1069 lines, -0 lines 0 comments Download
A src/pkg/syscall/zsyscall_netbsd_amd64.go View 1 2 3 1 chunk +1069 lines, -0 lines 0 comments Download
A src/pkg/syscall/zsysnum_netbsd_386.go View 1 2 3 4 1 chunk +274 lines, -0 lines 0 comments Download
A src/pkg/syscall/zsysnum_netbsd_amd64.go View 1 2 3 4 1 chunk +274 lines, -0 lines 0 comments Download
A src/pkg/syscall/ztypes_netbsd_386.go View 1 2 3 4 1 chunk +406 lines, -0 lines 0 comments Download
A src/pkg/syscall/ztypes_netbsd_amd64.go View 1 2 3 4 1 chunk +412 lines, -0 lines 0 comments Download

Messages

Total messages: 14
m4dh4tt3r
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://go.googlecode.com/hg/
13 years, 4 months ago (2011-12-15 06:42:05 UTC) #1
jsing
http://codereview.appspot.com/5491050/diff/1/src/pkg/syscall/mkall.sh File src/pkg/syscall/mkall.sh (right): http://codereview.appspot.com/5491050/diff/1/src/pkg/syscall/mkall.sh#newcode176 src/pkg/syscall/mkall.sh:176: mksysnum="curl -s 'http://cvsweb.netbsd.org/bsdweb.cgi/~checkout~/src/sys/kern/syscalls.master?rev=1.211&content-type=text/plain&only_with_tag=netbsd-5-1' | ./mksysnum_netbsd.pl" With FreeBSD and OpenBSD, ...
13 years, 4 months ago (2011-12-15 15:22:03 UTC) #2
m4dh4tt3r
PTAL On 2011/12/15 15:22:03, jsing wrote: > http://codereview.appspot.com/5491050/diff/1/src/pkg/syscall/mkall.sh > File src/pkg/syscall/mkall.sh (right): > > http://codereview.appspot.com/5491050/diff/1/src/pkg/syscall/mkall.sh#newcode176 ...
13 years, 4 months ago (2011-12-15 21:14:45 UTC) #3
jsing
http://codereview.appspot.com/5491050/diff/5003/src/pkg/syscall/mkall.sh File src/pkg/syscall/mkall.sh (right): http://codereview.appspot.com/5491050/diff/5003/src/pkg/syscall/mkall.sh#newcode183 src/pkg/syscall/mkall.sh:183: *) This case has been duplicated from below - ...
13 years, 4 months ago (2011-12-16 03:51:07 UTC) #4
jsing
Re the change to the syscalls.master format, I notice you've changed the mkall.sh script, but ...
13 years, 4 months ago (2011-12-16 03:55:59 UTC) #5
m4dh4tt3r
PTAL On 2011/12/16 03:55:59, jsing wrote: > Re the change to the syscalls.master format, I ...
13 years, 4 months ago (2011-12-16 22:07:45 UTC) #6
mikio
can you pls update both zsysnum_netbsd_{386,amd64}.go. looks like SYS_SOCKET, others are missing. http://codereview.appspot.com/5491050/diff/2053/src/pkg/syscall/syscall_netbsd_amd64.go File src/pkg/syscall/syscall_netbsd_amd64.go ...
13 years, 4 months ago (2011-12-17 04:41:35 UTC) #7
jsing
http://codereview.appspot.com/5491050/diff/2053/src/pkg/syscall/mkall.sh File src/pkg/syscall/mkall.sh (right): http://codereview.appspot.com/5491050/diff/2053/src/pkg/syscall/mkall.sh#newcode209 src/pkg/syscall/mkall.sh:209: darwin | freebsd | openbsd) You need to add ...
13 years, 4 months ago (2011-12-17 12:53:52 UTC) #8
jsing
Please also remove the zsysctl_netbsd.go entry from the GOFILES_netbsd list in src/pkg/syscall/Makefile.
13 years, 4 months ago (2011-12-17 14:31:31 UTC) #9
m4dh4tt3r
On 2011/12/17 12:53:52, jsing wrote: > http://codereview.appspot.com/5491050/diff/2053/src/pkg/syscall/mkall.sh > File src/pkg/syscall/mkall.sh (right): > > http://codereview.appspot.com/5491050/diff/2053/src/pkg/syscall/mkall.sh#newcode209 > ...
13 years, 4 months ago (2011-12-17 18:45:02 UTC) #10
m4dh4tt3r
On 2011/12/17 14:31:31, jsing wrote: > Please also remove the zsysctl_netbsd.go entry from the GOFILES_netbsd ...
13 years, 4 months ago (2011-12-17 18:45:15 UTC) #11
m4dh4tt3r
On 2011/12/17 04:41:35, mikioh wrote: > can you pls update both zsysnum_netbsd_{386,amd64}.go. > looks like ...
13 years, 4 months ago (2011-12-17 18:45:33 UTC) #12
jsing
LGTM There are still a few issues lurking in here, however we can fix these ...
13 years, 4 months ago (2011-12-19 16:51:44 UTC) #13
jsing
13 years, 4 months ago (2011-12-19 16:58:13 UTC) #14
*** Submitted as http://code.google.com/p/go/source/detail?r=c4cfbb826311 ***

syscall: Changes to the syscall package to support NetBSD.

Not all syscalls are implemented, but many are. On the suggestion
of Joel Sing <jsing@google.com>, the generated files were added
with hg add instead of hg cp, since they are generated on an OS
dependant basis.

R=golang-dev, jsing, mikioh.mikioh
CC=golang-dev
http://codereview.appspot.com/5491050

Committer: Joel Sing <jsing@google.com>
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b