From nobody  Fri Jan  8 07:24:34 1999
Received: (from nobody@localhost)
          by hub.freebsd.org (8.8.8/8.8.8) id HAA06448;
          Fri, 8 Jan 1999 07:24:34 -0800 (PST)
          (envelope-from nobody)
Message-Id: <199901081524.HAA06448@hub.freebsd.org>
Date: Fri, 8 Jan 1999 07:24:34 -0800 (PST)
From: fanf@demon.net
To: freebsd-gnats-submit@freebsd.org
Subject: sendfile(2) is gratuitously incompatible
X-Send-Pr-Version: www-1.0

>Number:         9390
>Category:       kern
>Synopsis:       sendfile(2) is gratuitously incompatible
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jan  8 07:30:00 PST 1999
>Closed-Date:    Sat Jan 9 13:04:21 PST 1999
>Last-Modified:  Sat Jan  9 13:04:48 PST 1999
>Originator:     Tony Finch
>Release:        3.0-CURRENT
>Organization:
Demon Internet Ltd
>Environment:
FreeBSD finch-02.www-cache.demon.co.uk 3.0-CURRENT FreeBSD 3.0-CURRENT #4: Thu Jan  7 14:46:39 GMT 1999     root@finch-02.www-cache.demon.co.uk:/usr/src/sys/compile/THREAD-NOSMP  i386

>Description:
FreeBSD's sendfile syntax is
      int sendfile(int fd, int s, off_t offset, size_t nbytes,
             struct sf_hdtr *hdtr, off_t *sbytes, int flags)
HP-UX's is
      ssize_t sendfile(int s, int fd, off_t offset, size_t nbytes,
             const struct iovec *hdtrl, int flags);
Linux's is
      int sendfile(int out_fd, int in_fd, off_t *offset, size_t count)


It's a shame that they are different. The Linux people obviously need
to improve their version...

>How-To-Repeat:

>Fix:
re-arrange the arguments for sendfile() to be in the same order as HP-UX

>Release-Note:
>Audit-Trail:

From: Marc Slemko <marcs@znep.com>
To: fanf@demon.net
Cc: freebsd-gnats-submit@FreeBSD.ORG
Subject: Re: kern/9390: sendfile(2) is gratuitously incompatible
Date: Fri, 8 Jan 1999 08:35:46 -0800 (PST)

 On Fri, 8 Jan 1999 fanf@demon.net wrote:
 
 > >Description:
 > FreeBSD's sendfile syntax is
 >       int sendfile(int fd, int s, off_t offset, size_t nbytes,
 >              struct sf_hdtr *hdtr, off_t *sbytes, int flags)
 > HP-UX's is
 >       ssize_t sendfile(int s, int fd, off_t offset, size_t nbytes,
 >              const struct iovec *hdtrl, int flags);
 > Linux's is
 >       int sendfile(int out_fd, int in_fd, off_t *offset, size_t count)
 > 
 > 
 > It's a shame that they are different. The Linux people obviously need
 > to improve their version...
 > 
 > >How-To-Repeat:
 > 
 > >Fix:
 > re-arrange the arguments for sendfile() to be in the same order as HP-UX
 
 There is nothing "gratuitous" about it and you can't make them compatible
 just by rearranging the order of arguments.  No matter what order you put
 them in, they will still be incompatible.
 
State-Changed-From-To: open->closed 
State-Changed-By: dg 
State-Changed-When: Sat Jan 9 13:04:21 PST 1999 
State-Changed-Why:  
See Marc Slemko's comments. 
>Unformatted:
