/* See LICENSE file for copyright and license details. */ #include "../libsyscalls.h" #include #include int main(int argc, char **argv) { (void) argv; if (argc != 1) { fprintf(stderr, "usage error\n"); return 3; } #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; }