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 (firstname.lastname@example.org)