logo

utils-std

Collection of commonly available Unix tools git clone https://anongit.hacktivis.me/git/utils-std.git/

o_path.c (183B)


  1. #define _GNU_SOURCE // glibc
  2. #define _DEFAULT_SOURCE
  3. #include <fcntl.h>
  4. #ifndef O_PATH
  5. #error Macro O_PATH undefined
  6. #endif
  7. int
  8. main(void)
  9. {
  10. int flag = O_PATH;
  11. return flag > 0;
  12. }