summaryrefslogtreecommitdiffstats
path: root/libsyscalls_strerror.c
blob: d54ed747eb01527024b8d97a20457ada3a0c2ecb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* See LICENSE file for copyright and license details. */
#include "common.h"


const char *
libsyscalls_strerror(enum libsyscalls_error error)
{
#define X(ENUM, STR)\
	case ENUM: return STR

	switch ((int)error) {
	LIBSYSCALLS_LIST_ERRORS(X, ;);
	default:
		return "Unrecognised error";
	}

#undef X
}