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

Side by Side Diff: src/trusted/desc/nacl_desc_base.c

Issue 550523002: Remove the old "SecureRandom" service, formerly used by get_random_bytes() (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Created 6 years, 3 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_base.h ('k') | src/trusted/desc/nacl_desc_rng.h » ('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 /* 7 /*
8 * NaCl Service Runtime. I/O Descriptor / Handle abstraction. Memory 8 * NaCl Service Runtime. I/O Descriptor / Handle abstraction. Memory
9 * mapping using descriptors. 9 * mapping using descriptors.
10 */ 10 */
(...skipping 16 matching lines...) Expand all
27 #include "native_client/src/trusted/desc/nacl_desc_cond.h" 27 #include "native_client/src/trusted/desc/nacl_desc_cond.h"
28 #include "native_client/src/trusted/desc/nacl_desc_conn_cap.h" 28 #include "native_client/src/trusted/desc/nacl_desc_conn_cap.h"
29 #include "native_client/src/trusted/desc/nacl_desc_dir.h" 29 #include "native_client/src/trusted/desc/nacl_desc_dir.h"
30 #include "native_client/src/trusted/desc/nacl_desc_imc.h" 30 #include "native_client/src/trusted/desc/nacl_desc_imc.h"
31 #include "native_client/src/trusted/desc/nacl_desc_imc_bound_desc.h" 31 #include "native_client/src/trusted/desc/nacl_desc_imc_bound_desc.h"
32 #include "native_client/src/trusted/desc/nacl_desc_imc_shm.h" 32 #include "native_client/src/trusted/desc/nacl_desc_imc_shm.h"
33 #include "native_client/src/trusted/desc/nacl_desc_invalid.h" 33 #include "native_client/src/trusted/desc/nacl_desc_invalid.h"
34 #include "native_client/src/trusted/desc/nacl_desc_io.h" 34 #include "native_client/src/trusted/desc/nacl_desc_io.h"
35 #include "native_client/src/trusted/desc/nacl_desc_mutex.h" 35 #include "native_client/src/trusted/desc/nacl_desc_mutex.h"
36 #include "native_client/src/trusted/desc/nacl_desc_null.h" 36 #include "native_client/src/trusted/desc/nacl_desc_null.h"
37 #include "native_client/src/trusted/desc/nacl_desc_rng.h"
38 #include "native_client/src/trusted/desc/nacl_desc_quota.h" 37 #include "native_client/src/trusted/desc/nacl_desc_quota.h"
39 #include "native_client/src/trusted/desc/nacl_desc_sync_socket.h" 38 #include "native_client/src/trusted/desc/nacl_desc_sync_socket.h"
40 39
41 #include "native_client/src/trusted/nacl_base/nacl_refcount.h" 40 #include "native_client/src/trusted/nacl_base/nacl_refcount.h"
42 41
43 #include "native_client/src/trusted/service_runtime/include/bits/mman.h" 42 #include "native_client/src/trusted/service_runtime/include/bits/mman.h"
44 #include "native_client/src/trusted/service_runtime/include/sys/errno.h" 43 #include "native_client/src/trusted/service_runtime/include/sys/errno.h"
45 #include "native_client/src/trusted/service_runtime/include/sys/stat.h" 44 #include "native_client/src/trusted/service_runtime/include/sys/stat.h"
46 #include "native_client/src/trusted/service_runtime/nacl_config.h" 45 #include "native_client/src/trusted/service_runtime/nacl_config.h"
47 #include "native_client/src/trusted/service_runtime/sel_util.h" 46 #include "native_client/src/trusted/service_runtime/sel_util.h"
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 NaClDescInternalizeNotImplemented, /* bound sockets cannot be transferred */ 203 NaClDescInternalizeNotImplemented, /* bound sockets cannot be transferred */
205 NaClDescInternalizeNotImplemented, /* connected abstract base class */ 204 NaClDescInternalizeNotImplemented, /* connected abstract base class */
206 NaClDescImcShmInternalize, 205 NaClDescImcShmInternalize,
207 NaClDescInternalizeNotImplemented, /* mutex */ 206 NaClDescInternalizeNotImplemented, /* mutex */
208 NaClDescInternalizeNotImplemented, /* condvar */ 207 NaClDescInternalizeNotImplemented, /* condvar */
209 NaClDescInternalizeNotImplemented, /* semaphore */ 208 NaClDescInternalizeNotImplemented, /* semaphore */
210 NaClDescSyncSocketInternalize, 209 NaClDescSyncSocketInternalize,
211 NaClDescXferableDataDescInternalize, 210 NaClDescXferableDataDescInternalize,
212 NaClDescInternalizeNotImplemented, /* imc socket */ 211 NaClDescInternalizeNotImplemented, /* imc socket */
213 NaClDescQuotaInternalize, /* quota wrapper */ 212 NaClDescQuotaInternalize, /* quota wrapper */
214 NaClDescRngInternalize, /* device: rng */
215 NaClDescInternalizeNotImplemented, /* device: postmessage */ 213 NaClDescInternalizeNotImplemented, /* device: postmessage */
216 NaClDescInternalizeNotImplemented, /* custom */ 214 NaClDescInternalizeNotImplemented, /* custom */
217 NaClDescNullInternalize, 215 NaClDescNullInternalize,
218 }; 216 };
219 217
220 char const *NaClDescTypeString(enum NaClDescTypeTag type_tag) { 218 char const *NaClDescTypeString(enum NaClDescTypeTag type_tag) {
221 /* default functions for the vtable - return NOT_IMPLEMENTED */ 219 /* default functions for the vtable - return NOT_IMPLEMENTED */
222 switch (type_tag) { 220 switch (type_tag) {
223 #define MAP(E) case E: do { return #E; } while (0) 221 #define MAP(E) case E: do { return #E; } while (0)
224 MAP(NACL_DESC_INVALID); 222 MAP(NACL_DESC_INVALID);
225 MAP(NACL_DESC_DIR); 223 MAP(NACL_DESC_DIR);
226 MAP(NACL_DESC_HOST_IO); 224 MAP(NACL_DESC_HOST_IO);
227 MAP(NACL_DESC_CONN_CAP); 225 MAP(NACL_DESC_CONN_CAP);
228 MAP(NACL_DESC_CONN_CAP_FD); 226 MAP(NACL_DESC_CONN_CAP_FD);
229 MAP(NACL_DESC_BOUND_SOCKET); 227 MAP(NACL_DESC_BOUND_SOCKET);
230 MAP(NACL_DESC_CONNECTED_SOCKET); 228 MAP(NACL_DESC_CONNECTED_SOCKET);
231 MAP(NACL_DESC_SHM); 229 MAP(NACL_DESC_SHM);
232 MAP(NACL_DESC_MUTEX); 230 MAP(NACL_DESC_MUTEX);
233 MAP(NACL_DESC_CONDVAR); 231 MAP(NACL_DESC_CONDVAR);
234 MAP(NACL_DESC_SEMAPHORE); 232 MAP(NACL_DESC_SEMAPHORE);
235 MAP(NACL_DESC_SYNC_SOCKET); 233 MAP(NACL_DESC_SYNC_SOCKET);
236 MAP(NACL_DESC_TRANSFERABLE_DATA_SOCKET); 234 MAP(NACL_DESC_TRANSFERABLE_DATA_SOCKET);
237 MAP(NACL_DESC_IMC_SOCKET); 235 MAP(NACL_DESC_IMC_SOCKET);
238 MAP(NACL_DESC_QUOTA); 236 MAP(NACL_DESC_QUOTA);
239 MAP(NACL_DESC_DEVICE_RNG);
240 MAP(NACL_DESC_DEVICE_POSTMESSAGE); 237 MAP(NACL_DESC_DEVICE_POSTMESSAGE);
241 MAP(NACL_DESC_CUSTOM); 238 MAP(NACL_DESC_CUSTOM);
242 MAP(NACL_DESC_NULL); 239 MAP(NACL_DESC_NULL);
243 } 240 }
244 return "BAD TYPE TAG"; 241 return "BAD TYPE TAG";
245 } 242 }
246 243
247 244
248 void NaClDescDtorNotImplemented(struct NaClRefCount *vself) { 245 void NaClDescDtorNotImplemented(struct NaClRefCount *vself) {
249 UNREFERENCED_PARAMETER(vself); 246 UNREFERENCED_PARAMETER(vself);
(...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after
731 NaClDescPostNotImplemented, 728 NaClDescPostNotImplemented,
732 NaClDescSemWaitNotImplemented, 729 NaClDescSemWaitNotImplemented,
733 NaClDescGetValueNotImplemented, 730 NaClDescGetValueNotImplemented,
734 NaClDescSetMetadata, 731 NaClDescSetMetadata,
735 NaClDescGetMetadata, 732 NaClDescGetMetadata,
736 NaClDescSetFlags, 733 NaClDescSetFlags,
737 NaClDescGetFlags, 734 NaClDescGetFlags,
738 NaClDescIsattyNotImplemented, 735 NaClDescIsattyNotImplemented,
739 (enum NaClDescTypeTag) -1, /* NaClDesc is an abstract base class */ 736 (enum NaClDescTypeTag) -1, /* NaClDesc is an abstract base class */
740 }; 737 };
OLDNEW
« no previous file with comments | « src/trusted/desc/nacl_desc_base.h ('k') | src/trusted/desc/nacl_desc_rng.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698