OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2008, Google Inc. | 2 * Copyright 2008, Google Inc. |
3 * All rights reserved. | 3 * All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
7 * met: | 7 * met: |
8 * | 8 * |
9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 * Ensure this operating system platform is supported. | 159 * Ensure this operating system platform is supported. |
160 */ | 160 */ |
161 if (!NaClOsIsSupported()) { | 161 if (!NaClOsIsSupported()) { |
162 goto done; | 162 goto done; |
163 } | 163 } |
164 /* | 164 /* |
165 * Load the NaCl module from the memory file. | 165 * Load the NaCl module from the memory file. |
166 */ | 166 */ |
167 if (LOAD_OK != NaClAppLoadFile((struct Gio *) &gf, | 167 if (LOAD_OK != NaClAppLoadFile((struct Gio *) &gf, |
168 *nap, | 168 *nap, |
169 NACL_ABI_MISMATCH_OPTION_ABORT)) { | 169 NACL_ABI_CHECK_OPTION_CHECK)) { |
170 goto done; | 170 goto done; |
171 } | 171 } |
172 /* | 172 /* |
173 * Close the memory pseudo-file used for passing in the .nexe. | 173 * Close the memory pseudo-file used for passing in the .nexe. |
174 */ | 174 */ |
175 if ((*((struct Gio *) &gf)->vtbl->Close)((struct Gio *) &gf) == -1) { | 175 if ((*((struct Gio *) &gf)->vtbl->Close)((struct Gio *) &gf) == -1) { |
176 goto done; | 176 goto done; |
177 } | 177 } |
178 (*((struct Gio *) &gf)->vtbl->Dtor)((struct Gio *) &gf); | 178 (*((struct Gio *) &gf)->vtbl->Dtor)((struct Gio *) &gf); |
179 | 179 |
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
450 } | 450 } |
451 | 451 |
452 /* | 452 /* |
453 * Part of the initialization of a worker. Sends the descriptor to the | 453 * Part of the initialization of a worker. Sends the descriptor to the |
454 * worker library to indicate where to send postMessage RPCs. | 454 * worker library to indicate where to send postMessage RPCs. |
455 */ | 455 */ |
456 int NaClSrpcSendUpcallDesc(struct NaClSrpcChannel *channel, | 456 int NaClSrpcSendUpcallDesc(struct NaClSrpcChannel *channel, |
457 struct NaClDesc *nacl_desc) { | 457 struct NaClDesc *nacl_desc) { |
458 return NaClSrpcInvokeByName(channel, "setUpcallDesc", nacl_desc); | 458 return NaClSrpcInvokeByName(channel, "setUpcallDesc", nacl_desc); |
459 } | 459 } |
OLD | NEW |