From owner-freebsd-questions@FreeBSD.ORG Sun Oct 9 18:38:30 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DA43316A41F for ; Sun, 9 Oct 2005 18:38:30 +0000 (GMT) (envelope-from jcm@FreeBSD-uk.eu.org) Received: from xenial.mcc.ac.uk (xenial.mcc.ac.uk [130.88.203.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7172A43D46 for ; Sun, 9 Oct 2005 18:38:29 +0000 (GMT) (envelope-from jcm@FreeBSD-uk.eu.org) Received: from dogma.freebsd-uk.eu.org ([130.88.200.97]) by xenial.mcc.ac.uk with esmtp (Exim 4.51 (FreeBSD)) id 1EOg44-0009ga-8I for freebsd-questions@freebsd.org; Sun, 09 Oct 2005 19:38:28 +0100 Received: from dogma.freebsd-uk.eu.org (localhost [127.0.0.1]) by dogma.freebsd-uk.eu.org (8.13.1/8.13.1) with ESMTP id j99IcM5i092663 for ; Sun, 9 Oct 2005 19:38:22 +0100 (BST) (envelope-from jcm@dogma.freebsd-uk.eu.org) Received: (from jcm@localhost) by dogma.freebsd-uk.eu.org (8.13.1/8.12.6/Submit) id j99IcMrt092658 for freebsd-questions@freebsd.org; Sun, 9 Oct 2005 19:38:22 +0100 (BST) Date: Sun, 9 Oct 2005 19:38:22 +0100 From: Jonathon McKitrick To: freebsd-questions@freebsd.org Message-ID: <20051009183822.GB92621@dogma.freebsd-uk.eu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i Subject: mmap versus malloc X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Oct 2005 18:38:31 -0000 If I want to write an assembly language program without using libc, is it ok to use mmap and a file descriptor of -1 to allocate memory? jm -- What's good for the goose is good for the gander. What the hell is a gander, anyway?