From owner-freebsd-arch Sat Mar 17 7:44:44 2001 Delivered-To: freebsd-arch@freebsd.org Received: from nebula.cybercable.fr (d217.dhcp212-126.cybercable.fr [212.198.126.217]) by hub.freebsd.org (Postfix) with ESMTP id 39CEC37B718 for ; Sat, 17 Mar 2001 07:44:39 -0800 (PST) (envelope-from mux@qualys.com) Received: (from mux@localhost) by nebula.cybercable.fr (8.11.3/8.11.3) id f2HFiBq05616 for arch@FreeBSD.org; Sat, 17 Mar 2001 16:44:11 +0100 (CET) (envelope-from mux) Date: Sat, 17 Mar 2001 16:44:11 +0100 From: Maxime Henrion To: arch@FreeBSD.org Subject: Proposal for a new syscall Message-ID: <20010317164411.A420@nebula.cybercable.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hello, While I was writing a network application, I was thinking that it would be nice to have a syscall that could "bind" two file descriptors, of any type (socket, file...), a bit like funopen() does in the libc. Having such a syscall in the kernel would allow to implement "zero-copy" wherever it is feasible. Then, sendfile() would just be a particular case of this syscall, where the input fd is a file and the output fd is a socket, and it could be rewritten using it. Do you think this makes sense and it would be useful to have ? Just my $0.02, Maxime -- Don't be fooled by cheap finnish imitations ; BSD is the One True Code Key fingerprint = F9B6 1D5A 4963 331C 88FC CA6A AB50 1EF2 8CBE 99D6 Public Key : http://www.epita.fr/~henrio_m/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message