Skip to main content

PxIOSetFileTime

Description

Sets one of the timestamps of an open file

Format

int PxIOSetFileTime(PxIOFileHandle handle, const int64_t timestamp, PxIOFileTimeType fileTimeType);

Where:

handle

The handle of an open file

timestamp

An int64_t value containing the new timestamp in POSIX time format

fileTimeType

The specific timestamp to set. See Appendix F for a list of currently allowed timestamps.

Return Value

If the function succeeds, a value of PXIO_SUCCESS_STATUS is returned; otherwise, an error value is returned. More information on the nature of the error can be found by calling PxIOGetError.