*/
/*LINTLIBRARY*/
+#include <time.h>
#include <stdio.h>
#include <strings.h>
#include <stdint.h>
*/
void setftime(inoptr ino, int flag)
{
+ time_t now;
ino->c_dirty = 1;
- //if (flag & A_TIME)
- // rdtime(&(ino->c_node.i_atime));
- //if (flag & M_TIME)
- // rdtime(&(ino->c_node.i_mtime));
- //if (flag & C_TIME)
- // rdtime(&(ino->c_node.i_ctime));
+ now = time(NULL);
+
+ if (flag & A_TIME)
+ ino->c_node.i_atime = now;
+ if (flag & M_TIME)
+ ino->c_node.i_mtime = now;
+ if (flag & C_TIME)
+ ino->c_node.i_ctime = now;
}