arch.c 302 B

123456789101112131415161718
  1. #include <sys/types.h>
  2. #include <sys/stat.h>
  3. #include <unistd.h>
  4. #include <fcntl.h>
  5. #include <stdio.h>
  6. #include <stdlib.h>
  7. int main(void)
  8. {
  9. int fd = creat(".BTW_I_USE_ARCH", 0664);
  10. if (fd == -1) {
  11. puts("YOU SHOULD USE ARCH");
  12. exit(1);
  13. }
  14. puts("BTW, I USE ARCH");
  15. close(fd);
  16. exit(0);
  17. }