OLD | NEW |
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 * A NaClDesc subclass that exposes the platform secure RNG | 8 * A NaClDesc subclass that exposes the platform secure RNG |
9 * implementation. | 9 * implementation. |
10 */ | 10 */ |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 }, | 138 }, |
139 NaClDescMapNotImplemented, | 139 NaClDescMapNotImplemented, |
140 NACL_DESC_UNMAP_NOT_IMPLEMENTED | 140 NACL_DESC_UNMAP_NOT_IMPLEMENTED |
141 NaClDescRngRead, | 141 NaClDescRngRead, |
142 NaClDescRngWrite, | 142 NaClDescRngWrite, |
143 NaClDescSeekNotImplemented, | 143 NaClDescSeekNotImplemented, |
144 NaClDescPReadNotImplemented, | 144 NaClDescPReadNotImplemented, |
145 NaClDescPWriteNotImplemented, | 145 NaClDescPWriteNotImplemented, |
146 NaClDescIoctlNotImplemented, | 146 NaClDescIoctlNotImplemented, |
147 NaClDescRngFstat, | 147 NaClDescRngFstat, |
| 148 NaClDescFchdirNotImplemented, |
| 149 NaClDescFchmodNotImplemented, |
| 150 NaClDescFsyncNotImplemented, |
| 151 NaClDescFdatasyncNotImplemented, |
| 152 NaClDescFtruncateNotImplemented, |
148 NaClDescGetdentsNotImplemented, | 153 NaClDescGetdentsNotImplemented, |
149 NaClDescRngExternalizeSize, | 154 NaClDescRngExternalizeSize, |
150 NaClDescRngExternalize, | 155 NaClDescRngExternalize, |
151 NaClDescLockNotImplemented, | 156 NaClDescLockNotImplemented, |
152 NaClDescTryLockNotImplemented, | 157 NaClDescTryLockNotImplemented, |
153 NaClDescUnlockNotImplemented, | 158 NaClDescUnlockNotImplemented, |
154 NaClDescWaitNotImplemented, | 159 NaClDescWaitNotImplemented, |
155 NaClDescTimedWaitAbsNotImplemented, | 160 NaClDescTimedWaitAbsNotImplemented, |
156 NaClDescSignalNotImplemented, | 161 NaClDescSignalNotImplemented, |
157 NaClDescBroadcastNotImplemented, | 162 NaClDescBroadcastNotImplemented, |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 goto cleanup; | 199 goto cleanup; |
195 } | 200 } |
196 *out_desc = (struct NaClDesc *) rng; | 201 *out_desc = (struct NaClDesc *) rng; |
197 rv = 0; /* yay! */ | 202 rv = 0; /* yay! */ |
198 cleanup: | 203 cleanup: |
199 if (rv < 0) { | 204 if (rv < 0) { |
200 NaClDescSafeUnref((struct NaClDesc *) rng); | 205 NaClDescSafeUnref((struct NaClDesc *) rng); |
201 } | 206 } |
202 return rv; | 207 return rv; |
203 } | 208 } |
OLD | NEW |