Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 * Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 * found in the LICENSE file. | 3 // found in the LICENSE file. |
|
noelallen1
2013/07/19 21:56:37
C
Sam Clegg
2013/07/22 18:15:50
Done.
| |
| 4 */ | 4 |
| 5 #ifndef LIBRARIES_NACL_IO_OSMMAN_H | 5 #ifndef LIBRARIES_NACL_IO_OSMMAN_H |
| 6 #define LIBRARIES_NACL_IO_OSMMAN_H | 6 #define LIBRARIES_NACL_IO_OSMMAN_H |
| 7 | 7 |
| 8 #if defined(WIN32) | 8 #if defined(WIN32) |
| 9 | 9 |
| 10 #define PROT_READ 0x1 | 10 #define PROT_READ 0x1 |
| 11 #define PROT_WRITE 0x2 | 11 #define PROT_WRITE 0x2 |
| 12 #define PROT_EXEC 0x4 | 12 #define PROT_EXEC 0x4 |
| 13 #define PROT_NONE 0x0 | 13 #define PROT_NONE 0x0 |
| 14 | 14 |
| 15 #define MAP_SHARED 0x01 | 15 #define MAP_SHARED 0x01 |
| 16 #define MAP_PRIVATE 0x02 | 16 #define MAP_PRIVATE 0x02 |
| 17 #define MAP_FIXED 0x10 | 17 #define MAP_FIXED 0x10 |
| 18 #define MAP_ANONYMOUS 0x20 | 18 #define MAP_ANONYMOUS 0x20 |
| 19 #define MAP_FAILED (void*)-1 | 19 #define MAP_FAILED (void*)-1 |
| 20 | 20 |
| 21 #else | 21 #else |
| 22 | 22 |
| 23 #include <sys/mman.h> | 23 #include <sys/mman.h> |
| 24 | 24 |
| 25 #endif | 25 #endif |
| 26 | 26 |
| 27 #endif // LIBRARIES_NACL_IO_OSMMAN_H | 27 #endif // LIBRARIES_NACL_IO_OSMMAN_H |
| OLD | NEW |