File: winmmap.h

package info (click to toggle)
wv 1.2.9-4.2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, stretch
  • size: 5,044 kB
  • ctags: 4,093
  • sloc: ansic: 31,036; sh: 11,951; xml: 1,677; makefile: 21
file content (27 lines) | stat: -rw-r--r-- 521 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
25
26
27
#ifndef _MMAP_WIN_H
#define _MMAP_WIN_H
#include <gsf/gsf.h>
#include <sys/types.h>
#include <stddef.h>
#include <io.h>
/*mmap section got from imagick sources*/

#if defined _WIN32
#define PROT_READ  1
#define PROT_WRITE  2
#define PROT_READWRITE  3
#define MAP_SHARED  1
#define MAP_PRIVATE  2
#define F_OK 0
#define R_OK 4
#define W_OK 2
#define RW_OK 6

#if !defined(MAP_FAILED)
#define MAP_FAILED      ((void *) -1)
#endif

void *mmap(char *,size_t,int,int,int,gsf_off_t);
int   munmap(void *,size_t);
#endif
#endif