OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [uclinux/] [uC-libc/] [include/] [sys/] [mman.h] - Blame information for rev 1778

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 199 simons
#ifndef _SYS_MMAN_H
2
#define _SYS_MMAN_H
3
 
4
#include <features.h>
5
#include <sys/types.h>
6
#include <linux/mman.h>
7
 
8
#ifndef MAP_ANON
9
#define MAP_ANON        MAP_ANONYMOUS      /* idem */
10
#endif
11
#ifndef MAP_FILE
12
#define MAP_FILE        0x00       /* The 'normal' way: mapped from file */
13
#endif
14
 
15
__BEGIN_DECLS
16
 
17
extern __ptr_t mmap __P((__ptr_t __addr, size_t __len,
18
                int __prot, int __flags, int __fd, off_t __off));
19
extern int munmap __P((__ptr_t __addr, size_t __len));
20
extern int mprotect __P ((__const __ptr_t __addr, size_t __len, int __prot));
21
 
22
extern int msync __P((__ptr_t __addr, size_t __len, int __flags));
23
 
24
extern int mlock __P((__const __ptr_t __addr, size_t __len));
25
extern int munlock __P((__const __ptr_t __addr, size_t __len));
26
 
27
extern int mlockall __P((int __flags));
28
extern int munlockall __P((void));
29
 
30
extern __ptr_t mremap __P((__ptr_t __addr, size_t __old_len,
31
                size_t __new_len, int __may_move));
32
 
33
__END_DECLS
34
 
35
#endif /* _SYS_MMAN_H */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.