logo

utils-std

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

o_path.c (349B)


  1. // utils-std: Collection of commonly available Unix tools
  2. // Copyright 2017 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>
  3. // SPDX-License-Identifier: 0BSD
  4. #define _GNU_SOURCE // glibc
  5. #define _DEFAULT_SOURCE
  6. #include <fcntl.h>
  7. #ifndef O_PATH
  8. #error Macro O_PATH undefined
  9. #endif
  10. int
  11. main(void)
  12. {
  13. int flag = O_PATH;
  14. return flag > 0;
  15. }