summaryrefslogtreecommitdiffstats
path: root/testutil/list-errors.c
blob: 5738b06823f8b655cbb66ab2b49df48a1a279667 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* See LICENSE file for copyright and license details. */
#include "../libsyscalls.h"

#include <stddef.h>
#include <stdio.h>


int
main(void)
{
#define X(N, S)\
	printf("%li %s %s\n", (long int)N, #N, S)
	LIBSYSCALLS_LIST_ERRORS(X, ;);
#undef X

	if (fflush(stdout) || fclose(stdout)) {
		perror(NULL);
		return 1;
	}
	return 0;
}