pal_qnx.h 974 B

123456789101112131415161718192021222324252627282930313233
  1. #pragma once
  2. #include "il2cpp-config.h"
  3. #if IL2CPP_TARGET_QNX
  4. #define IL2CPP_USES_POSIX_CLASS_LIBRARY_PAL 1
  5. #define IL2CPP_HAVE_FUTIMENS 1
  6. // Although dirent and dirent64 are declared with a one-byte d_name field, the structure that readdir() and readdir64() returns is allocated with enough space to hold the entire name
  7. // https://www.qnx.com/developers/docs/7.1/index.html#com.qnx.doc.neutrino.lib_ref/topic/r/readdir.html
  8. #define IL2CPP_HAVE_FIXED_SIZE_DIRENT 0
  9. #define IL2CPP_HAVE_DIRENT_NAME_LEN 1
  10. #define IL2CPP_DIRENT_MEMBER_NAME_LEN d_namelen
  11. #define IL2CPP_HAVE_REWINDDIR 1
  12. // QNX on 32-bit has no nsec field on stat by default
  13. // https://www.qnx.com/developers/docs/7.1/#com.qnx.doc.neutrino.lib_ref/topic/s/stat_struct.html
  14. #if IL2CPP_SIZEOF_VOID_P == 8
  15. #define IL2CPP_HAVE_STAT_TIM 1
  16. #endif
  17. #include <limits.h>
  18. #define IL2CPP_HAVE_SYS_UN 1
  19. #define stat_ stat
  20. #define fstat_ fstat
  21. #define lstat_ lstat
  22. #include <dirent.h>
  23. #endif // IL2CPP_TARGET_LINUX