Qsmtp  0.30dev
mmap.h
Go to the documentation of this file.
1 
4 #ifndef MMAP_H
5 #define MMAP_H
6 
7 #include <sys/types.h>
8 
9 extern void *mmap_fd(int fd, off_t *len);
10 extern void *mmap_name(int dirfd, const char *fname, off_t *len, int *fd);
11 
12 #endif
void * mmap_name(int dirfd, const char *fname, off_t *len, int *fd)
map a file into memory
Definition: mmap.c:55
void * mmap_fd(int fd, off_t *len)
map an already opened file into memory
Definition: mmap.c:25