blob: 75a3d770ed9b3727f0ce464df2249aced2ac2eac (
plain) (
tree)
|
|
/* See LICENSE file for copyright and license details. */
#include "../libsyscalls.h"
#include <stddef.h>
#include <stdio.h>
int
main(int argc, char **argv)
{
size_t i, count;
(void) argv;
if (argc != 1) {
fprintf(stderr, "usage error\n");
return 3;
}
#define X(...) 1
count = (LIBSYSCALLS_LIST_ERRORS(X, +));
#undef X
for (i = 0; i < count; i++)
printf("%s\n", libsyscalls_strerror((enum libsyscalls_error)i));
if (fflush(stdout) || fclose(stdout)) {
perror(NULL);
return 1;
}
return 0;
}
|