You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
514 B

  1. #pragma once
  2. #include "config.h"
  3. #ifdef HAVE_STRUCT_STAT_ST_ATIM
  4. #define ST_ATIM_NSEC(ST) ((ST)->st_atim.tv_nsec)
  5. #define ST_CTIM_NSEC(ST) ((ST)->st_ctim.tv_nsec)
  6. #define ST_MTIM_NSEC(ST) ((ST)->st_mtim.tv_nsec)
  7. #elif defined HAVE_STRUCT_STAT_ST_ATIMESPEC
  8. #define ST_ATIM_NSEC(ST) ((ST)->st_atimespec.tv_nsec)
  9. #define ST_CTIM_NSEC(ST) ((ST)->st_ctimespec.tv_nsec)
  10. #define ST_MTIM_NSEC(ST) ((ST)->st_mtimespec.tv_nsec)
  11. #else
  12. #define ST_ATIM_NSEC(ST) 0
  13. #define ST_CTIM_NSEC(ST) 0
  14. #define ST_MTIM_NSEC(ST) 0
  15. #endif