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

Side by Side Diff: src/trusted/desc/nacl_desc_io.h

Issue 12929033: Add NaClDescIoDescMakeFromHandle (Closed) Base URL: http://git.chromium.org/native_client/src/native_client.git@master
Patch Set: add error checks Created 7 years, 9 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
« no previous file with comments | « no previous file | src/trusted/desc/nacl_desc_io.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) 2011 The Native Client Authors. All rights reserved. 2 * Copyright (c) 2011 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. NaClDescIoDesc subclass of NaClDesc. 8 * NaCl service runtime. NaClDescIoDesc subclass of NaClDesc.
9 */ 9 */
10 #ifndef NATIVE_CLIENT_SRC_TRUSTED_DESC_NACL_DESC_IO_H_ 10 #ifndef NATIVE_CLIENT_SRC_TRUSTED_DESC_NACL_DESC_IO_H_
(...skipping 29 matching lines...) Expand all
40 int NaClDescIoInternalize(struct NaClDesc **baseptr, 40 int NaClDescIoInternalize(struct NaClDesc **baseptr,
41 struct NaClDescXferState *xfer, 41 struct NaClDescXferState *xfer,
42 struct NaClDescQuotaInterface *quota_interface) 42 struct NaClDescQuotaInterface *quota_interface)
43 NACL_WUR; 43 NACL_WUR;
44 44
45 int NaClDescIoDescCtor(struct NaClDescIoDesc *self, 45 int NaClDescIoDescCtor(struct NaClDescIoDesc *self,
46 struct NaClHostDesc *hd) NACL_WUR; 46 struct NaClHostDesc *hd) NACL_WUR;
47 47
48 struct NaClDescIoDesc *NaClDescIoDescMake(struct NaClHostDesc *nhdp); 48 struct NaClDescIoDesc *NaClDescIoDescMake(struct NaClHostDesc *nhdp);
49 49
50 struct NaClDesc *NaClDescIoDescMakeFromHandle(NaClHandle handle);
51
50 /* a simple factory */ 52 /* a simple factory */
51 struct NaClDescIoDesc *NaClDescIoDescOpen(char *path, 53 struct NaClDescIoDesc *NaClDescIoDescOpen(char *path,
52 int mode, 54 int mode,
53 int perms); 55 int perms);
54 56
55 uintptr_t NaClDescIoDescMapAnon(struct NaClDescEffector *effp, 57 uintptr_t NaClDescIoDescMapAnon(struct NaClDescEffector *effp,
56 void *start_addr, 58 void *start_addr,
57 size_t len, 59 size_t len,
58 int prot, 60 int prot,
59 int flags, 61 int flags,
60 nacl_off64_t offset); 62 nacl_off64_t offset);
61 63
62 EXTERN_C_END 64 EXTERN_C_END
63 65
64 #endif // NATIVE_CLIENT_SRC_TRUSTED_DESC_NACL_DESC_IO_H_ 66 #endif // NATIVE_CLIENT_SRC_TRUSTED_DESC_NACL_DESC_IO_H_
OLDNEW
« no previous file with comments | « no previous file | src/trusted/desc/nacl_desc_io.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698