From owner-freebsd-current Wed Dec 16 21:59:57 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id VAA08759 for freebsd-current-outgoing; Wed, 16 Dec 1998 21:59:57 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from apollo.backplane.com (apollo.backplane.com [209.157.86.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id VAA08754 for ; Wed, 16 Dec 1998 21:59:56 -0800 (PST) (envelope-from dillon@apollo.backplane.com) Received: (from dillon@localhost) by apollo.backplane.com (8.9.1/8.9.1) id VAA87886; Wed, 16 Dec 1998 21:59:42 -0800 (PST) (envelope-from dillon) Date: Wed, 16 Dec 1998 21:59:42 -0800 (PST) From: Matthew Dillon Message-Id: <199812170559.VAA87886@apollo.backplane.com> To: HighWind Software Information Cc: current@FreeBSD.ORG Subject: Re: sendfile() References: <199812170518.AAA22593@highwind.com> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG :Heard some talk of sendfile() in 3.0 : :Where is that interface? man page? Header file? : :Is it in a very new kernel or just a rumor? : :-Rob : :To Unsubscribe: send mail to majordomo@FreeBSD.org :with "unsubscribe freebsd-current" in the body of the message Yes, it's been in -current for about a month and a half. Works great! You'll have to download a recent -current and make world. Essentially: int sendfile(int fd, int s, off_t offset, size_t nbytes, struct sf_hdtr *hdtr, off_t *sbytes, int flags) Where sf_hdtr allows headers and trailers to be merged into the stream. If you are thinking of using sendfile with HighWind's news software and you already store the articles in wire format, it should work great! I don't use it in Diablo because I store articles in their binary format :-(. Linux has a similar system call, but I think not quite as sophisticated as DG's FreeBSD implementation. -Matt Matthew Dillon Engineering, HiWay Technologies, Inc. & BEST Internet Communications & God knows what else. (Please include original email in any response) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message