equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * Name : mmap.h |
|
16 * Part of : backend |
|
17 * Internal header for mmap implementation |
|
18 * |
|
19 */ |
|
20 |
|
21 |
|
22 |
|
23 #ifndef _MMAP_H_ |
|
24 #define _MMAP_H_ |
|
25 |
|
26 #include <sys/types.h> |
|
27 #include "reent.h" |
|
28 |
|
29 struct MappedMemory |
|
30 { |
|
31 int fd; |
|
32 off_t offset; |
|
33 size_t len; |
|
34 int flags; |
|
35 int memid; |
|
36 void* addr; |
|
37 void* fdescaddr; |
|
38 size_t maplen; |
|
39 }; |
|
40 |
|
41 // Function prototypes |
|
42 __BEGIN_DECLS |
|
43 |
|
44 IMPORT_C void* _mmap_r(struct _reent *r, size_t len, int prot, int flags, int fildes, off_t offset); |
|
45 |
|
46 IMPORT_C int _mprotect_r(struct _reent *,const void *, size_t, int); |
|
47 |
|
48 IMPORT_C int _msync_r(struct _reent *,void *, size_t, int); |
|
49 |
|
50 IMPORT_C int _munlock_r(struct _reent *,const void *, size_t); |
|
51 |
|
52 IMPORT_C int _munmap_r(struct _reent *,void *, size_t); |
|
53 |
|
54 __END_DECLS |
|
55 |
|
56 #endif /* !_MMAP_H_ */ |