2019-06-14 08:59:04 -04:00
|
|
|
#pragma once
|
|
|
|
|
|
2025-08-05 00:39:52 -04:00
|
|
|
#ifdef __linux__
|
2019-06-14 08:59:04 -04:00
|
|
|
#define ST_ATIM_NSEC(ST) ((ST)->st_atim.tv_nsec)
|
|
|
|
|
#define ST_CTIM_NSEC(ST) ((ST)->st_ctim.tv_nsec)
|
|
|
|
|
#define ST_MTIM_NSEC(ST) ((ST)->st_mtim.tv_nsec)
|
2025-08-05 00:39:52 -04:00
|
|
|
#elif defined __FreeBSD__
|
2019-06-14 08:59:04 -04:00
|
|
|
#define ST_ATIM_NSEC(ST) ((ST)->st_atimespec.tv_nsec)
|
|
|
|
|
#define ST_CTIM_NSEC(ST) ((ST)->st_ctimespec.tv_nsec)
|
|
|
|
|
#define ST_MTIM_NSEC(ST) ((ST)->st_mtimespec.tv_nsec)
|
|
|
|
|
#else
|
2025-08-05 00:39:52 -04:00
|
|
|
#error "Unsupported platform for st_{a,c,m}time nanosecond"
|
|
|
|
|
/* #define ST_ATIM_NSEC(ST) 0 */
|
|
|
|
|
/* #define ST_CTIM_NSEC(ST) 0 */
|
|
|
|
|
/* #define ST_MTIM_NSEC(ST) 0 */
|
2019-06-14 08:59:04 -04:00
|
|
|
#endif
|