From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: <705ed060b8fa8a249437246378974130@yourdomain.dom> References: <7d3530220907161802v7a539b5vaa49b10d9eb74c89@mail.gmail.com> <705ed060b8fa8a249437246378974130@yourdomain.dom> Date: Fri, 17 Jul 2009 09:58:38 -0700 Message-ID: Subject: Re: [9fans] git on plan9 From: Russ Cox To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Topicbox-Message-UUID: 249915f4-ead5-11e9-9d60-3106f5b1d025 You don't need mmap to implement this mmap. If it's just trying to map files into memory read-only, you could implement it by open, stat to find length, malloc, readn, and return the pointer. This is what the original linuxemu did (and still does?). Russ