Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* mmap problem DUX 3.2g
@ 1997-02-25  5:00 Jeremy D. Levine
  0 siblings, 0 replies; only message in thread
From: Jeremy D. Levine @ 1997-02-25  5:00 UTC (permalink / raw)



-- 
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



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1997-02-25  5:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-02-25  5:00 mmap problem DUX 3.2g Jeremy D. Levine

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox