2 * Copyright (C) 2000 Jeff Dike (jdike@karaya.com)
3 * Licensed under the GPL
11 int switcheroo(int fd, int prot, void *from, void *to, int size)
13 if(munmap(to, size) < 0){
16 if(mmap(to, size, prot, MAP_SHARED | MAP_FIXED, fd, 0) != to){
19 if(munmap(from, size) < 0){
26 * Overrides for Emacs so that we follow Linus's tabbing style.
27 * Emacs will notice this stuff at the end of the file and automatically
28 * adjust the settings for this buffer only. This must remain at the end
30 * ---------------------------------------------------------------------------
32 * c-file-style: "linux"