/* * Program to print the list of system error messages * * NOTICE: This does **NOT** work on the CSIF. Those systems are * running Linux Ubuntu 22.x, so it may not work on other systems, * and Linux in general It does work on MacOS 14 (and probably any * version from MacOS X on) and the *BSD systems * * Matt Bishop, ECS 36A * * May 8, 2024 * -- original version */ #include #include /* * the big enchilada */ int main(void) { int i; /* counter in a for loop */ /* loop through the list, printing the error number and the message */ for(i = 0; i < sys_nerr; i++) printf("%3d. %s\n", i, sys_errlist[i]); /* say goodnight! */ return(0); }