Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Dec 1996 13:47:41 -0600
From:      "Eric L. Hernes" <erich@lodgenet.com>
To:        Terry Lambert <terry@lambert.org>
Cc:        scrappy@hub.org (Marc G. Fournier), erich@lodgenet.com, hackers@freebsd.org
Subject:   Re: Multiple Buffer allocation of Shared Memory 
Message-ID:  <199612131947.NAA02070@jake.lodgenet.com>
In-Reply-To: Your message of "Fri, 13 Dec 1996 12:19:52 MST." <199612131919.MAA15610@phaeton.artisoft.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
Terry Lambert writes:
>
>I believe the mode does not matter.  Specifically, the mode is on the
>fd, not on the vp.  All fd's point to the same vp.
>

>From mmap(2):
ERRORS
     Mmap() will fail if:

     [EACCES]      The flag PROT_READ was specified as part of the prot param-
                   eter and fd was not open for reading.  The flags
                   PROT_WRITE, MAP_SHARED and MAP_WRITE were specified as part
                   of the flags and prot parameters and fd was not open for
                   writing.

although the actual implementation is sometimes different from the
man page. Again enough speculation... time for t.c ;-)


>
>					Terry Lambert
>					terry@lambert.org
>---
>Any opinions in this posting are my own and not those of my present
>or previous employers.

eric.
-- 
erich@lodgenet.com
http://rrnet.com/~erich erich@rrnet.com






Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199612131947.NAA02070>