Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Jan 1999 07:24:34 -0800 (PST)
From:      fanf@demon.net
To:        freebsd-gnats-submit@FreeBSD.ORG
Subject:   kern/9390: sendfile(2) is gratuitously incompatible
Message-ID:  <199901081524.HAA06448@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         9390
>Category:       kern
>Synopsis:       sendfile(2) is gratuitously incompatible
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jan  8 07:30:00 PST 1999
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:

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?199901081524.HAA06448>