Updated: April 19, 2023 |
Set the timestamp resolution for iofunc functions and structures
#include <sys/iofunc.h> int iofunc_mount_set_time ( IOFUNC_MOUNT_T * const mountp, const uint32_t timeres );
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
The iofunc_mount_set_time() function specifies the timestamp resolution of the iofunc subsystem.
This is useful when you save timestamps to NTFS, which stores timestamps in millseconds only. (The POSIX standard requires timestamps of open files to use the same resolution as the file system.)
0, or -1 if an error occurred (errno is set).
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | Yes |
Signal handler | Yes |
Thread | Yes |