toaruos/userspace/tests/test-open-flags.c
2013-04-24 00:20:25 -07:00

13 lines
345 B
C

#include <stdio.h>
#include <fcntl.h>
int main(int argc, char * argv) {
printf("O_RDONLY 0x%x\n", O_RDONLY);
printf("O_WRONLY 0x%x\n", O_WRONLY);
printf("O_RDWR 0x%x\n", O_RDWR);
printf("O_APPEND 0x%x\n", O_APPEND);
printf("O_CREAT 0x%x\n", O_CREAT);
printf("O_EXCL 0x%x\n", O_EXCL);
printf("O_TRUNC 0x%x\n", O_TRUNC);
return 0;
}