| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |