Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://www.arcetri.astro.it/irlab/doc/library/linux/khg/HyperNews/get/khg/259/1.html
Дата изменения: Thu Mar 23 12:37:56 2000 Дата индексирования: Wed Sep 15 04:08:42 2010 Кодировка: Поисковые слова: п п п п п п п п п п п п п |
mmap() works fine on a Red Hat 4.2 system, which ships a
perfectly standard Linux kernel. A great deal of the
source code included in the distribution uses mmap()
explicitly, and every dynamically loaded program uses
mmap() implicitly in the dynamic loader.
I suggest "man mmap" as a start. Notice the reference at the bottom of the page to getpagesize(), and consider the modulus operator (%). That should help you out... :-) You'll also find sample code that uses mmap() at http://www.redhat.com/~johnsonm/lad/src/map-cat.c.html Other sample source you might find useful is at http://www.redhat.com/~johnsonm/lad/src/
|
It Works! Thanks! by Guy