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

Issue 751041: code review 751041: Create syscall_bsd.go for code used by Darwin and other... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
16 years, 2 months ago by giles
Modified:
16 years, 2 months ago
Reviewers:
CC:
rsc, golang-dev
Visibility:
Public.

Description

Create syscall_bsd.go for code used by Darwin and other *BSDs 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.

Patch Set 1 : code review 751041: Create syscall_bsd.go for code used by Darwin and other... #

Unified diffs Side-by-side diffs Delta from patch set Stats (+489 lines, -934 lines) Patch
M src/pkg/syscall/Makefile View 1 chunk +2 lines, -0 lines 0 comments Download
A src/pkg/syscall/syscall_bsd.go View 1 chunk +467 lines, -0 lines 0 comments Download
M src/pkg/syscall/syscall_darwin.go View 2 chunks +4 lines, -459 lines 0 comments Download
M src/pkg/syscall/syscall_freebsd.go View 2 chunks +4 lines, -463 lines 0 comments Download
M src/pkg/syscall/zsyscall_darwin_386.go View 2 chunks +6 lines, -6 lines 0 comments Download
M src/pkg/syscall/zsyscall_darwin_amd64.go View 2 chunks +6 lines, -6 lines 0 comments Download

Messages

Total messages: 4
giles
Hello rsc (cc: golang-dev@googlegroups.com), I'd like you to review this change.
16 years, 2 months ago (2010-03-25 15:05:46 UTC) #1
giles
In my initial submission I wrote: > (*) All my virtualisation software has stopped playing ...
16 years, 2 months ago (2010-03-26 16:47:01 UTC) #2
rsc
*** Submitted as http://code.google.com/p/go/source/detail?r=5885c9d10f8e *** syscall: Create syscall_bsd.go for code used by Darwin and other ...
16 years, 2 months ago (2010-03-26 20:23:57 UTC) #3
giles
16 years, 2 months ago (2010-03-27 03:39:05 UTC) #4
Hi Russ,

rsc@golang.org wrote:

> *** Submitted as
> http://code.google.com/p/go/source/detail?r=5885c9d10f8e ***
> 
> syscall: Create syscall_bsd.go for code used by Darwin and other *BSDs

Thanks for picking this up and committing it, and especially
for doing so so promptly.  Indeed, thanks for picking up all
the issues I've opened and responding speedily either by
committing them or by implementing something better.

I've cc'd everyone 'cos I believe you deserve public thanks,
and I hope your boss is reading. :-)

Best regards,

Giles
Sign in to reply to this message.

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