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