#include <sys/types.h> #include <ShoreApp.h> shrc Shore::utimes(const char *path, struct timeval *tvp)
If tvp is 0, then the object's atime and mtime are set to the current time. The process must be running under the uid of the owner of the object, or must have write permission on the object to use utimes in this way.
If tvp is not 0, then it is assumed to point to an array of two timeval structures. The object's atime is set to the first of these structures; the mtime is set to the second structure. The process must be running under the uid of the owner of the object to use utimes in this way.
In either case, the object's ctime is updated to the current time. In addition, utimes obtains an EX-mode (exclusive-mode) lock on the object.