aboutsummaryrefslogtreecommitdiffstats
path: root/src/system.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2021-07-09 22:29:55 -0400
committerDavid Robillard <d@drobilla.net>2022-01-13 23:03:49 -0500
commitcc03e614b22b5695a1bbe0bedebd1bf0cf284bf7 (patch)
treee77be535c4dae3c9edade87492e0d0a297d62c9a /src/system.h
parentbf4f881c2241fa8ae6459bd9c8ee6cc83ee563a9 (diff)
downloadserd-cc03e614b22b5695a1bbe0bedebd1bf0cf284bf7.tar.gz
serd-cc03e614b22b5695a1bbe0bedebd1bf0cf284bf7.tar.bz2
serd-cc03e614b22b5695a1bbe0bedebd1bf0cf284bf7.zip
Use thread-safe strerror_r() if available
Diffstat (limited to 'src/system.h')
-rw-r--r--src/system.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/system.h b/src/system.h
index ff8ec7c0..dbff890a 100644
--- a/src/system.h
+++ b/src/system.h
@@ -22,6 +22,10 @@
#include <stdint.h>
#include <stdio.h>
+/// Write the message for a system error code (like errno) to a buffer
+int
+serd_system_strerror(int errnum, char* buf, size_t buflen);
+
/// Allocate a buffer aligned to `alignment` bytes
SERD_I_MALLOC_FUNC
void*