summaryrefslogtreecommitdiffstats
path: root/sys/sys
diff options
context:
space:
mode:
authorps <ps@FreeBSD.org>2006-02-28 19:39:18 +0000
committerps <ps@FreeBSD.org>2006-02-28 19:39:18 +0000
commit6014145f3878ae927ab23d37d89490e33addf743 (patch)
tree8d194756dd94e282324cd9c351ff45ebed818cb0 /sys/sys
parent87272c821ca130738fc0299198dfa74e4ed95086 (diff)
downloadFreeBSD-src-6014145f3878ae927ab23d37d89490e33addf743.zip
FreeBSD-src-6014145f3878ae927ab23d37d89490e33addf743.tar.gz
Fix 32bit sendfile by implementing kern_sendfile so that it takes
the header and trailers as iovec arguments instead of copying them in inside of sendfile. Reviewed by: jhb MFC after: 3 weeks
Diffstat (limited to 'sys/sys')
-rw-r--r--sys/sys/syscallsubr.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/sys/syscallsubr.h b/sys/sys/syscallsubr.h
index 5464342..e6a228f 100644
--- a/sys/sys/syscallsubr.h
+++ b/sys/sys/syscallsubr.h
@@ -45,6 +45,7 @@ struct sockaddr;
struct stat;
struct kevent;
struct kevent_copyops;
+struct sendfile_args;
int kern___getcwd(struct thread *td, u_char *buf, enum uio_seg bufseg,
u_int buflen);
@@ -122,6 +123,8 @@ int kern_sched_rr_get_interval(struct thread *td, pid_t pid,
struct timespec *ts);
int kern_select(struct thread *td, int nd, fd_set *fd_in, fd_set *fd_ou,
fd_set *fd_ex, struct timeval *tvp);
+int kern_sendfile(struct thread *td, struct sendfile_args *uap,
+ struct uio *hdr_uio, struct uio *trl_uio, int compat);
int kern_sendit(struct thread *td, int s, struct msghdr *mp, int flags,
struct mbuf *control, enum uio_seg segflg);
int kern_setitimer(struct thread *, u_int, struct itimerval *,
OpenPOWER on IntegriCloud