Subversion Repositories HelenOS

Rev

Rev 2479 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2479 Rev 2541
Line 34... Line 34...
34
 
34
 
35
#ifndef LIBC_MMAN_H_
35
#ifndef LIBC_MMAN_H_
36
#define LIBC_MMAN_H_
36
#define LIBC_MMAN_H_
37
 
37
 
38
#include <as.h>
38
#include <as.h>
-
 
39
#include <sys/types.h>
39
 
40
 
40
#define MAP_FAILED  ((void *) -1)
41
#define MAP_FAILED  ((void *) -1)
41
 
42
 
42
#define MAP_SHARED       (1 << 0)
43
#define MAP_SHARED       (1 << 0)
43
#define MAP_PRIVATE      (1 << 1)
44
#define MAP_PRIVATE      (1 << 1)
Line 46... Line 47...
46
 
47
 
47
#define PROTO_READ   AS_AREA_READ
48
#define PROTO_READ   AS_AREA_READ
48
#define PROTO_WRITE  AS_AREA_WRITE
49
#define PROTO_WRITE  AS_AREA_WRITE
49
#define PROTO_EXEC   AS_AREA_EXEC
50
#define PROTO_EXEC   AS_AREA_EXEC
50
 
51
 
51
extern void  *mmap(void  *start, size_t length, int prot, int flags, int fd,
52
extern void *mmap(void  *start, size_t length, int prot, int flags, int fd,
52
           off_t offset);
53
    off_t offset);
53
extern int munmap(void *start, size_t length);
54
extern int munmap(void *start, size_t length);
54
 
55
 
55
#endif
56
#endif
56
 
57
 
57
/** @}
58
/** @}