Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Splice has wrong signature #1376

Closed
hanwen opened this issue Dec 30, 2010 · 3 comments
Closed

Splice has wrong signature #1376

hanwen opened this issue Dec 30, 2010 · 3 comments

Comments

@hanwen
Copy link
Contributor

hanwen commented Dec 30, 2010

What steps will reproduce the problem?

transferring 3 bytes,

  n, err := syscall.Splice(...)
=>
  n has type int64, and value 0x700000003L

What is the expected output?

The manpage declares it as 

       ssize_t splice(int fd_in, loff_t *off_in, int fd_out,
                      loff_t *off_out, size_t len, unsigned int flags);

which is int32 on a 32-bit x86. 


Which compiler are you using (5g, 6g, 8g, gccgo)?

6g

Which operating system are you using?

linux/x86, fedora 14.

Which revision are you using?  (hg identify)

Head from 27 dec:

commit 9024802f87ec541bec358d4a54a5295a7fa4820e
Author: Stefan Nilsson <snilsson@nada.kth.se>
Date:   Mon Dec 27 10:12:10 2010 -0800

    atof: added 'E' as valid token for exponent
    
    R=golang-dev, gri
    CC=golang-dev
    http://golang.org/cl/3827042
    
    Committer: Robert Griesemer <gri@golang.org>
@rsc
Copy link
Contributor

rsc commented Jan 5, 2011

Comment 1:

3869042

Status changed to Started.

@rsc
Copy link
Contributor

rsc commented Jan 5, 2011

Comment 2:

This issue was closed by revision 189d4ff.

Status changed to Fixed.

@hanwen
Copy link
Contributor Author

hanwen commented Jan 5, 2011

Comment 3:

thanks, Russ!

@golang golang locked and limited conversation to collaborators Jun 24, 2016
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants