From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,6a2e288c99affebc,start X-Google-Attributes: gidfee84,public From: "Jeremy D. Levine" Subject: mmap problem DUX 3.2g Date: 1997/02/25 Message-ID: <33135606.41C6@amarex.com>#1/1 X-Deja-AN: 221526527 Organization: Amarex Tech. Newsgroups: comp.unix.osf.osf1 -- Are there any known problem mmaping a file. I seem to be able to MAP_ANONYMOUS with no problems but when I try MAP_FILE I never seem to get it to work.o This is a segment of the code start_map = mmap((caddr_t) 0, (size_t) psize, PROT_READ|PROT_WRITE, MAP_FILE | MAP_VARIABLE|MAP_SHARED, file_d, (off_t) 0); The mmap fails and errno 6 is returned. The file_d is valid and the file is open for read and write Jeremy Levine -- levine@amarex.com