- case 0: p += sprintf(p, "RDONLY");
- break;
- case 1: p += sprintf(p, "WRONLY");
- break;
- case 2: p += sprintf(p, "RDWR");
- break;
+ case O_RDONLY: p += sprintf(p, "RDONLY"); break;
+ case O_WRONLY: p += sprintf(p, "WRONLY"); break;
+ case O_RDWR: p += sprintf(p, "RDWR"); break;