Dag-Erling Smorgrav <[EMAIL PROTECTED]> writes:
> Remy Nonnenmacher <[EMAIL PROTECTED]> writes:
> > Well, I may think using this solution if it remains portable between
> > Unixes.
> It's perfectly portable, with one small variation - on BSD systems,
> you pass -1 instead of a file descriptor, while on SysV systems, you
> pass a descriptor to /dev/zero (or was it /dev/null?)

FWIW, I just did some tests - mmap()'ing /dev/zero works on FreeBSD as
well, and mapping the same fd multiple times gives you separate areas,
so you don't need a new fd for each.

DES
-- 
Dag-Erling Smorgrav - [EMAIL PROTECTED]


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to