summaryrefslogtreecommitdiffstats
path: root/cpukit/libdl/rtl-error.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/libdl/rtl-error.c')
-rw-r--r--cpukit/libdl/rtl-error.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/cpukit/libdl/rtl-error.c b/cpukit/libdl/rtl-error.c
index 5ec4b26ef7..a60074fcd0 100644
--- a/cpukit/libdl/rtl-error.c
+++ b/cpukit/libdl/rtl-error.c
@@ -52,3 +52,15 @@ rtems_rtl_get_error (char* message, size_t max_message)
return EIO;
}
+
+void
+rtems_rtl_clear_error (void)
+{
+ rtems_rtl_data_t* rtl = rtems_rtl_lock ();
+ if (rtl != NULL)
+ {
+ rtl->last_errno = 0;
+ rtl->last_error[0] = '\0';
+ rtems_rtl_unlock ();
+ }
+}