Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(57)

Side by Side Diff: src/trusted/gio/gio_shm.c

Issue 10981077: change native_client/.../sys/mman.h to native_client/.../bits/mman.h (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client/
Patch Set: Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/trusted/desc/nacl_desc_semaphore.c ('k') | src/trusted/gio/gio_shm_test.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012 The Native Client Authors. All rights reserved. 2 * Copyright (c) 2012 The Native Client Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be 3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file. 4 * found in the LICENSE file.
5 */ 5 */
6 6
7 #include <errno.h> 7 #include <errno.h>
8 #include <string.h> 8 #include <string.h>
9 9
10 #include "native_client/src/include/portability.h" 10 #include "native_client/src/include/portability.h"
11 11
12 #include "native_client/src/shared/platform/nacl_check.h" 12 #include "native_client/src/shared/platform/nacl_check.h"
13 #include "native_client/src/shared/platform/nacl_log.h" 13 #include "native_client/src/shared/platform/nacl_log.h"
14 14
15 #include "native_client/src/trusted/gio/gio_shm.h" 15 #include "native_client/src/trusted/gio/gio_shm.h"
16 #include "native_client/src/trusted/service_runtime/include/sys/mman.h" 16 #include "native_client/src/trusted/service_runtime/include/bits/mman.h"
17 #include "native_client/src/trusted/service_runtime/include/sys/stat.h" 17 #include "native_client/src/trusted/service_runtime/include/sys/stat.h"
18 #include "native_client/src/trusted/service_runtime/nacl_config.h" 18 #include "native_client/src/trusted/service_runtime/nacl_config.h"
19 #include "native_client/src/trusted/service_runtime/sel_util.h" 19 #include "native_client/src/trusted/service_runtime/sel_util.h"
20 20
21 #include "native_client/src/trusted/desc/nacl_desc_base.h" 21 #include "native_client/src/trusted/desc/nacl_desc_base.h"
22 #include "native_client/src/trusted/desc/nacl_desc_effector_trusted_mem.h" 22 #include "native_client/src/trusted/desc/nacl_desc_effector_trusted_mem.h"
23 #include "native_client/src/trusted/desc/nacl_desc_imc_shm.h" 23 #include "native_client/src/trusted/desc/nacl_desc_imc_shm.h"
24 24
25 /* 25 /*
26 * This code maps in GIO_SHM_WINDOWSIZE bytes at a time for doing 26 * This code maps in GIO_SHM_WINDOWSIZE bytes at a time for doing
(...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after
441 } 441 }
442 442
443 rv = NaClGioShmCtorIntern(self, (struct NaClDesc *) shmp, shm_size); 443 rv = NaClGioShmCtorIntern(self, (struct NaClDesc *) shmp, shm_size);
444 444
445 if (!rv) { 445 if (!rv) {
446 NaClDescUnref((struct NaClDesc *) shmp); 446 NaClDescUnref((struct NaClDesc *) shmp);
447 free(shmp); 447 free(shmp);
448 } 448 }
449 return rv; 449 return rv;
450 } 450 }
OLDNEW
« no previous file with comments | « src/trusted/desc/nacl_desc_semaphore.c ('k') | src/trusted/gio/gio_shm_test.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698