Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Jan 1999 08:40:01 -0800 (PST)
From:      Marc Slemko <marcs@znep.com>
To:        freebsd-bugs@FreeBSD.ORG
Subject:   Re: kern/9390: sendfile(2) is gratuitously incompatible
Message-ID:  <199901081640.IAA12451@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/9390; it has been noted by GNATS.

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.
 

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199901081640.IAA12451>