RTEMS CPU Kit with SuperCore
4.11.3
|
RTEMS Run-Time Linker Error. More...
#include <errno.h>
#include <stdio.h>
#include <stdarg.h>
#include <rtems/rtl/rtl.h>
#include "rtl-error.h"
Functions | |
void | rtems_rtl_set_error (int error, const char *format,...) |
Sets the error. More... | |
int | rtems_rtl_get_error (char *message, size_t max_message) |
Get the last error message clearing it. More... | |
void | rtems_rtl_clear_error (void) |
Clears the error. | |
RTEMS Run-Time Linker Error.
int rtems_rtl_get_error | ( | char * | message, |
size_t | max_message | ||
) |
Get the last error message clearing it.
This operation locks the run time linker and therefore keeps the RTL thread safe but this call is not thread safe is multiple threads are loading object files at the same time. This call is provided to map to the dlopen family of calls.
message | Pointer to a buffer to copy the message into. |
max_message | The maximum message that can be copied. |
void rtems_rtl_set_error | ( | int | error, |
const char * | format, | ||
... | |||
) |
Sets the error.
Assumes the RTL has been locked.
error | The errno error number. |
format | The error format string. |
... | The variable arguments that depend on the format string. |
Referenced by rtems_rtl_elf_relocate_rel(), rtems_rtl_elf_relocate_rela(), rtems_rtl_global_symbols(), rtems_rtl_obj_free(), rtems_rtl_obj_load_sections(), rtems_rtl_obj_relocate_unresolved(), rtems_rtl_symbol_table_open(), and rtems_rtl_unresolved().