Messages in this thread |  | | | Date | Sun, 27 Sep 1998 03:49:04 +0200 | | From | Felix von Leitner <> | | Subject | What's wrong with MAP_SHARED|MAP_ANONYMOUS? |
| |
I always get EINVAL :(
Felix
#include <sys/types.h> #include <sys/mman.h> #if !defined(MAP_ANONYMOUS) && defined(MAP_ANON) #define MAP_ANONYMOUS MAP_ANON #endif main() { mmap(0, 100, PROT_READ | PROT_WRITE, MAP_SHARED | MAP_ANONYMOUS, -1, 0); perror("mmap"); } - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
|  |