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

Issue 5369076: code review 5369076: syscall: fix zerrors for openbsd 386 (Closed)

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

Description

syscall: fix zerrors for openbsd 386

Patch Set 1 : diff -r c553b0cbb873 https://go.googlecode.com/hg/ #

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

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

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+153 lines, -150 lines) Patch
M src/pkg/syscall/zerrors_openbsd_386.go View 10 chunks +153 lines, -150 lines 0 comments Download

Messages

Total messages: 7
jsing
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
13 years, 9 months ago (2011-11-11 17:29:10 UTC) #1
bradfitz
You did this by hand? Or did you fix cgo -godefs? On Fri, Nov 11, ...
13 years, 9 months ago (2011-11-11 17:32:42 UTC) #2
jsing
I ran "mkerrors.sh -m32" on an openbsd amd64 machine (which fails to generate correctly on ...
13 years, 9 months ago (2011-11-11 17:35:31 UTC) #3
rsc
LGTM Can you dig up the definition of BIOCGDLTLIST or any of the other constants ...
13 years, 9 months ago (2011-11-11 18:11:33 UTC) #4
jsing
*** Submitted as http://code.google.com/p/go/source/detail?r=f0c16390bfab *** syscall: fix zerrors for openbsd 386 R=golang-dev, bradfitz, rsc CC=golang-dev ...
13 years, 9 months ago (2011-11-11 18:19:04 UTC) #5
jsing
On 12 November 2011 05:11, Russ Cox <rsc@golang.org> wrote: > LGTM > > Can you ...
13 years, 9 months ago (2011-11-17 12:20:49 UTC) #6
mikio
13 years, 9 months ago (2011-11-17 13:06:12 UTC) #7
Thank you.
I filed the issue 2470.

On Thu, Nov 17, 2011 at 9:20 PM, Joel Sing <jsing@google.com> wrote:

> BIOCGDLTLIST is defined as _IOWR('B',123, struct bpf_dltlist) which expands
> to:
>  $ printf '
> #include <sys/ioccom.h>
> #include <net/bpf.h>
> $BIOCGDLTLIST = BIOCGDLTLIST
> ' | gcc -E - | grep BIOCGDLTLIST
> $BIOCGDLTLIST = (((unsigned long)0x80000000|(unsigned long)0x40000000) |
> ((sizeof(struct bpf_dltlist) & 0x1fff) << 16) | ((('B')) << 8) | ((123)))
> I can provide details for _IOWR and the associated macros, however my guess
> is that gcc is converting and storing the unsigned long as a signed long,
> which godefs/cgo is then printing as a signed value. Please let me know if
> you need further information.
Sign in to reply to this message.

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