mmap.c File Reference

#include "libc.h"

Functions

void * mmap_file (void *addr, size_t len, int prot, int flags, int fd, off_t offset)
int munmap_file (void *addr, size_t len)
int getpagesize ()
void * mmap (void *addr, size_t len, int prot, int flags, int fd, off_t offset)
int mprotect (void *addr, size_t len, int prot)
int munmap (void *addr, size_t len)

Function Documentation

int getpagesize void   ) 
 

void* mmap void *  addr,
size_t  len,
int  prot,
int  flags,
int  fd,
off_t  offset
 

void* mmap_file void *  addr,
size_t  len,
int  prot,
int  flags,
int  fd,
off_t  offset
 

int mprotect void *  addr,
size_t  len,
int  prot
 

temporary *bad* implementation as it unmaps addr before remappint it with new protection

int munmap void *  addr,
size_t  len
 

int munmap_file void *  addr,
size_t  len
 


Generated on Wed May 24 23:05:57 2006 for LSE/OS by  doxygen 1.4.6