From owner-freebsd-current Fri Aug 30 11:47:42 1996 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id LAA13626 for current-outgoing; Fri, 30 Aug 1996 11:47:42 -0700 (PDT) Received: from mexico.brainstorm.eu.org (root@mexico.brainstorm.eu.org [193.56.58.253]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id LAA13619 for ; Fri, 30 Aug 1996 11:47:39 -0700 (PDT) Received: from brasil.brainstorm.eu.org (brasil.brainstorm.eu.org [193.56.58.33]) by mexico.brainstorm.eu.org (8.7.5/8.7.3) with ESMTP id UAA17322 for ; Fri, 30 Aug 1996 20:47:35 +0200 Received: (from uucp@localhost) by brasil.brainstorm.eu.org (8.6.12/8.6.12) with UUCP id UAA01279 for freebsd-current@FreeBSD.org; Fri, 30 Aug 1996 20:46:46 +0200 Received: (from roberto@localhost) by keltia.freenix.fr (8.8.Alpha.9/keltia-uucp-2.9) id UAA22835; Fri, 30 Aug 1996 20:36:08 +0200 (MET DST) Message-Id: <199608301836.UAA22835@keltia.freenix.fr> Date: Fri, 30 Aug 1996 20:36:08 +0200 From: roberto@keltia.freenix.fr (Ollivier Robert) To: freebsd-current@FreeBSD.org Subject: Re: File handle -> char* ? In-Reply-To: ; from Developer on Aug 30, 1996 12:01:19 +0100 References: X-Mailer: Mutt 0.41 Mime-Version: 1.0 Sender: owner-current@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk According to Developer: > Is there any way in which I can pass a routine a file handle and make the > data just go into a buffer which I can then use as a char* later? The only mmap(2) is your friend. -- Ollivier ROBERT -=- The daemon is FREE! -=- roberto@keltia.freenix.fr FreeBSD keltia.freenix.fr 2.2-CURRENT #18: Sun Aug 18 19:16:52 MET DST 1996