From owner-freebsd-hackers Tue Dec 5 6:58:46 2000 From owner-freebsd-hackers@FreeBSD.ORG Tue Dec 5 06:58:43 2000 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from whizkidtech.net (r1.bfm.org [216.127.220.97]) by hub.freebsd.org (Postfix) with ESMTP id 8AF8F37B400 for ; Tue, 5 Dec 2000 06:58:42 -0800 (PST) Received: (from adam@localhost) by whizkidtech.net (8.9.2/8.9.2) id IAA00249; Tue, 5 Dec 2000 08:57:17 -0600 (CST) (envelope-from adam) Date: Tue, 5 Dec 2000 08:56:45 -0600 From: "G. Adam Stanislav" To: Stephen McKay Cc: hackers@FreeBSD.ORG Subject: Re: pipe Message-ID: <20001205085645.A228@whizkidtech.net> References: <20001202085127.A301@int80h.org> <3A292D98.E655D755@softweyr.com> <20001203012841.B228@whizkidtech.net> <200012040256.eB42upH07905@dungeon.home> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <200012040256.eB42upH07905@dungeon.home>; from mckay@thehub.com.au on Mon, Dec 04, 2000 at 12:56:51PM +1000 Organization: Whiz Kid Technomagic X-URL: http://www.whizkidtech.net/ X-Castle: http://www.redprince.net/ X-Special-Effects: http://www.FilmSFX.com/ X-Operating-System: FreeBSD whizkidtech.net 3.1-RELEASE FreeBSD 3.1-RELEASE Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, Dec 04, 2000 at 12:56:51PM +1000, Stephen McKay wrote: >Using pipes for temporary storage is still a crazy idea. Pipes can be >smaller than 8K, depending on the flavour of Unix. It was just a thought, and it did not work. :) Other flavors of Unix are not too important in this case: I'm writing a FreeBSD assembly language tutorial. Though I do discuss portability issues in it. I'm writing the tutorial, not because I'm the expert (I am, on assembly language, but not on Unix system calls--yet), but because, in my experience, it is the best way to learn. > Use malloc() instead. Unfortunately, that only works in C. :) I tried to figure out how to allocate memory, but, so far, was completely unsuccessful. I studied the source for the C malloc, but did not understand any of it. It uses something called mmap. I read the man page for mmap, and was totally frustrated. It talks about mapping files into memory, but I am not looking for files. It talks about passing an address to the function. I don't get it... What address? I want it to allocate memory for me and tell me its address. How am I supposed to know what address is available??? Thanks, Adam -- When two do the same, it's not the same -- Slovak proverb To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message