mmap() w/o MAP_ANON
Tim Rice
tim at multitalents.net
Thu Apr 11 13:41:45 EST 2002
Would this work in monitor_mm.c ?
#ifdef MAP_ANON
address = mmap(NULL, size, PROT_WRITE|PROT_READ, MAP_ANON|MAP_SHARED,
-1, 0);
#else
address = mmap(NULL, size, PROT_WRITE|PROT_READ, MAP_SHARED,
-1, 0);
#endif
Many systems have mmap() but no MAP_ANON/MAP_ANONYMOUS
Ie. SCO 5.0.x, UnixWare 2.x, Solaris < 8
Is MAP_ANON needed or do we just #undef HAVE_MMAP on systems that
don't have it?
--
Tim Rice Multitalents (707) 887-1469
tim at multitalents.net
More information about the openssh-unix-dev
mailing list