From owner-freebsd-hackers Mon Dec 4 21:23:46 2000 From owner-freebsd-hackers@FreeBSD.ORG Mon Dec 4 21:23:43 2000 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from ns5.pacific.net.au (ns5.pacific.net.au [203.143.252.30]) by hub.freebsd.org (Postfix) with ESMTP id 448C237B400 for ; Mon, 4 Dec 2000 21:23:41 -0800 (PST) Received: from dungeon.home (ppp178.dyn250.pacific.net.au [203.143.250.178]) by ns5.pacific.net.au (8.9.0/8.9.1) with ESMTP id QAA07897; Tue, 5 Dec 2000 16:23:31 +1100 (EST) Received: from dungeon.home (localhost [127.0.0.1]) by dungeon.home (8.11.1/8.9.3) with ESMTP id eB42upH07905; Mon, 4 Dec 2000 12:56:51 +1000 (EST) (envelope-from mckay) Message-Id: <200012040256.eB42upH07905@dungeon.home> To: "G. Adam Stanislav" Cc: hackers@freebsd.org Subject: Re: pipe References: <20001202085127.A301@int80h.org> <3A292D98.E655D755@softweyr.com> <20001203012841.B228@whizkidtech.net> In-Reply-To: <20001203012841.B228@whizkidtech.net> from "G. Adam Stanislav" at "Sun, 03 Dec 2000 07:28:41 +0000" Date: Mon, 04 Dec 2000 12:56:51 +1000 From: Stephen McKay Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sunday, 3rd December 2000, "G. Adam Stanislav" wrote: >On Sat, Dec 02, 2000 at 10:12:56AM -0700, Wes Peters wrote: >>Yes, you can read from your own pipe, and yes the buffering availabe in >>the pipe is limited. IIRC, the pipe size is 8K. > >Thank you. In that case I'll be better off using child processes for >what I am working on. But I will use pipes from within a process >whenever I know that my data will not grow larger than 8K. Using pipes for temporary storage is still a crazy idea. Pipes can be smaller than 8K, depending on the flavour of Unix. Use malloc() instead. There are plenty of books out there that describe data structures for every occasion. Each of them will be better than using a pipe for the wrong purpose. Stephen. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message