aboutsummaryrefslogtreecommitdiffstats
path: root/set_error_errno.c
diff options
context:
space:
mode:
Diffstat (limited to 'set_error_errno.c')
-rw-r--r--set_error_errno.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/set_error_errno.c b/set_error_errno.c
new file mode 100644
index 0000000..1b8347a
--- /dev/null
+++ b/set_error_errno.c
@@ -0,0 +1,9 @@
+/* See LICENSE file for copyright and license details. */
+#include "internal.h"
+
+
+void
+liberror_set_error_errno(const char description[256], const char source[64], int code)
+{
+ liberror_set_error(description, source, "errno", (long long int)code);
+}