我使用futimens()函数编写了以下代码: int set_time(const char *name) int dskr = open_file( name ); int retval = clock_gettime(CLOCK_REALTIME, &now); printf("%ld \n", now.tv_sec); int status = f
.
// Members ".tv_sec" and ".tv_nsec" represent unit and not value!我将long类型用于value,因为我在POSIX 中读取了标题time.h定义timespec结构的成员(需要long的成员tv_nsec )和使用time_t的成员tv_sec,后者依次在头sys/