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

Issue 897042: code review 897042: Create pkg/os/sys_bsd for code used by Darwin and other... (Closed)

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

Description

Create pkg/os/sys_bsd for code used by Darwin and other *BSDs This CL is similar in spirit to: http://codereview.appspot.com/751041/show and is offered for the same reasons: 1. reduce existing code duplication between the Darwin (OS X) and FreeBSD ports 2. eliminate the need to duplicate the code a third time for the in-progress NetSBD port 3. As more functions are added, the need only be added once, not once for each *BSD based OS that Go is ported to The payback is not as large immediately as for 751041 as only one function is shared and the Makefile becomes more complex. (If there is a simpler way to achieve the same result in the Makefile, please let me know and I will revise the CL. I did look for simpler methods, but perhaps someone with more GNU make expertise will know a useful trick or idiom.)

Patch Set 1 #

Patch Set 2 : code review 897042: Create pkg/os/sys_bsd for code used by Darwin and other... #

Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -35 lines) Patch
M src/pkg/os/Makefile View 1 1 chunk +5 lines, -1 line 0 comments Download
A src/pkg/os/sys_bsd.go View 1 chunk +19 lines, -0 lines 0 comments Download
R src/pkg/os/sys_darwin.go View 1 1 chunk +0 lines, -18 lines 0 comments Download
R src/pkg/os/sys_freebsd.go View 1 1 chunk +0 lines, -16 lines 0 comments Download

Messages

Total messages: 5
rsc1
Thanks. Let's delete the empty files. Add sys_whatever.go to the appropriate lists in the Makefile ...
15 years ago (2010-04-13 23:29:26 UTC) #1
giles
Hello rsc (cc: golang-dev@googlegroups.com), I'd like you to review this change.
15 years ago (2010-04-23 05:26:06 UTC) #2
giles
rsc@google.com wrote: > Let's delete the empty files. Done. > Add sys_whatever.go to the appropriate ...
15 years ago (2010-04-23 05:26:31 UTC) #3
rsc1
LGTM
15 years ago (2010-04-27 06:01:20 UTC) #4
rsc
15 years ago (2010-04-27 06:01:35 UTC) #5
*** Submitted as http://code.google.com/p/go/source/detail?r=232302a32413 ***

os: create sys_bsd.go

R=rsc
CC=golang-dev
http://codereview.appspot.com/897042

Committer: Russ Cox <rsc@golang.org>
Sign in to reply to this message.

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