Return to BSD News archive
Path: sserve!newshost.anu.edu.au!munnari.oz.au!spool.mu.edu!howland.reston.ans.net!darwin.sura.net!news.dfn.de!urmel.informatik.rwth-aachen.de!acds.physik.rwth-aachen.de!kuku From: kuku@acds.physik.rwth-aachen.de (Christoph Kukulies) Newsgroups: comp.os.386bsd.development Subject: Re: MMAP() doesn't work for me ? Date: 2 Jun 1993 13:10:20 GMT Organization: I.Physikalisches Institut RWTH-Aachen Lines: 26 Distribution: world Message-ID: <1ui8rs$a5j@urmel.informatik.rwth-aachen.de> References: <C7xM5G.3sE@unix.portal.com> Reply-To: kuku@acds.physik.rwth-aachen.de NNTP-Posting-Host: acds.physik.rwth-aachen.de Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Keywords: mmap, 386bsd In article <C7xM5G.3sE@unix.portal.com>, chris@shell.portal.com (Chris - Ding) writes: >The configuration is 386bsd 0.1 + 0.2.3. > >Can anyone tell me what's wrong with the code ? Or there is a bug in the kernal ? >Thanks. >C. Ding >chris@shell.portal.com [code pieces deleted] > } > addr = mmap( (caddr_t) 0, len, prot, MAP_FILE|MAP_SHARED, fd,off_t)0x0); ^^^^^^^^^^ or MAP_PRIVATE or MAP_COPY > if ( addr == ( caddr_t ) -1 ) [1m[5m[31m --Chris Christoph P. U. Kukulies kuku@acds.physik.rwth-aachen.de *** Error code 1 Stop. [0m