Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://www.arcetri.astro.it/irlab/doc/library/linux/khg/HyperNews/get/khg/259.html
Дата изменения: Thu Mar 23 12:37:56 2000 Дата индексирования: Wed Sep 15 00:52:21 2010 Кодировка: |
Hi,
I'm getting an error with MMAP on Redhat 4.2... The same code worked just fine when compiled on a Slakware 1.2.13 system... The code actually compiles just fine, but I get a runtime error which says, "Segmentation Fault (Core Dumped)" when I try to access the memory -- I later found that MMAP was returning a "EINVAL" error... Does the MMAP function work on Redhat 4.2? What are the differences between Redhat 4.2 and Slakware 1.2.13 with respect to the MMAP function? I've verified that my start and length values are appropriate (I even tried setting my start value to zero, but that didn't seem to work). How do I find a PAGESIZE boundary? How do I "allign" this?
thanks for your help, Guy (theguy@ionet.net)
|
Yes, it works just fine. by Michael K. Johnson
It Works! Thanks! by Guy