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 * NaCl logging module. | 8 * NaCl logging module. |
9 * | 9 * |
10 * This module is used in many parts of Native Client to generate | 10 * This module is used in many parts of Native Client to generate |
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
363 * The function at |fn| is invoked when NaClLog's family of logging | 363 * The function at |fn| is invoked when NaClLog's family of logging |
364 * functions are invoked with LOG_FATAL. This defaults to NaClAbort | 364 * functions are invoked with LOG_FATAL. This defaults to NaClAbort |
365 * (see nacl_exit.h), but may be overridden to do other things prior | 365 * (see nacl_exit.h), but may be overridden to do other things prior |
366 * to aborting. NB: it is not a good idea to depend on too much | 366 * to aborting. NB: it is not a good idea to depend on too much |
367 * within |fn|, since the application state is likely | 367 * within |fn|, since the application state is likely |
368 * inconsistent/unstable. It is probably a good idea to only use | 368 * inconsistent/unstable. It is probably a good idea to only use |
369 * low-level routines or system calls directly. | 369 * low-level routines or system calls directly. |
370 */ | 370 */ |
371 void NaClLogSetAbortBehavior(void (*fn)(void)); | 371 void NaClLogSetAbortBehavior(void (*fn)(void)); |
372 | 372 |
| 373 /* |
| 374 * Run the current abort behavior hook. |
| 375 */ |
| 376 void NaClLogRunAbortBehavior(void); |
| 377 |
373 EXTERN_C_END | 378 EXTERN_C_END |
374 | 379 |
375 #endif /* NATIVE_CLIENT_SRC_TRUSTED_PLATFORM_NACL_LOG_H__ */ | 380 #endif /* NATIVE_CLIENT_SRC_TRUSTED_PLATFORM_NACL_LOG_H__ */ |
OLD | NEW |