struct name_value_pair { char const *name; int value; };
static struct name_value_pair const table[] =
{
+#ifdef O_APPEND
{"APPEND", O_APPEND},
+#endif
{"CREAT", O_CREAT},
#ifdef O_DSYNC
{"DSYNC", O_DSYNC},
}
top:
- errno = 0; /* FIXME: errno should be read-only */
+ errno = 0;
status = 0;
if (safe_read (STDIN_FILENO, &command, 1) != 1)
return EXIT_SUCCESS;