File: HsMmap.h

package info (click to toggle)
haskell-mmap 0.5.4-2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 108 kB
  • ctags: 24
  • sloc: haskell: 469; ansic: 297; makefile: 3
file content (24 lines) | stat: -rw-r--r-- 574 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef __HSMMAP_H__
#define __HSMMAP_H__

#include <stddef.h>

void *system_io_mmap_file_open(const char *filepath, int mode);

void system_io_mmap_file_close(void *handle);

void *system_io_mmap_mmap(void *handle, int mode, long long offset, size_t size);

void system_io_mmap_munmap(void *sizeasptr, void *ptr);

long long system_io_mmap_file_size(void *handle);

int system_io_mmap_extend_file_size(void *handle, long long size);

int system_io_mmap_granularity();

// this is only implemented in _DEBUG builds
int system_io_mmap_counters();


#endif /* __HSMMAP_H__ */