OLD | NEW |
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ | 1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
2 /* This Source Code Form is subject to the terms of the Mozilla Public | 2 /* This Source Code Form is subject to the terms of the Mozilla Public |
3 * License, v. 2.0. If a copy of the MPL was not distributed with this | 3 * License, v. 2.0. If a copy of the MPL was not distributed with this |
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | 4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
5 | 5 |
6 /* | 6 /* |
7 ********************************************************************* | 7 ********************************************************************* |
8 * | 8 * |
9 * Memory-mapped files | 9 * Memory-mapped files |
10 * | 10 * |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 | 52 |
53 PR_IMPLEMENT(PRStatus) PR_MemUnmap(void *addr, PRUint32 len) | 53 PR_IMPLEMENT(PRStatus) PR_MemUnmap(void *addr, PRUint32 len) |
54 { | 54 { |
55 return _PR_MD_MEM_UNMAP(addr, len); | 55 return _PR_MD_MEM_UNMAP(addr, len); |
56 } | 56 } |
57 | 57 |
58 PR_IMPLEMENT(PRStatus) PR_CloseFileMap(PRFileMap *fmap) | 58 PR_IMPLEMENT(PRStatus) PR_CloseFileMap(PRFileMap *fmap) |
59 { | 59 { |
60 return _PR_MD_CLOSE_FILE_MAP(fmap); | 60 return _PR_MD_CLOSE_FILE_MAP(fmap); |
61 } | 61 } |
| 62 |
| 63 PR_IMPLEMENT(PRStatus) PR_SyncMemMap( |
| 64 PRFileDesc *fd, |
| 65 void *addr, |
| 66 PRUint32 len) |
| 67 { |
| 68 return _PR_MD_SYNC_MEM_MAP(fd, addr, len); |
| 69 } |
OLD | NEW |