/* See LICENSE file for copyright and license details. */ #include "common.h" #include void libsyscalls_perror(const char *prefix, enum libsyscalls_error error) { const char *str = libsyscalls_strerror(error); if (prefix && *prefix) fprintf(stderr, "%s: %s\n", prefix, str); else fprintf(stderr, "%s\n", str); }