Home
last modified time | relevance | path

Searched refs:tv_sec (Results 1 – 25 of 125) sorted by relevance

12345

/fs/
Dutimes.c32 if (get_user(tv[0].tv_sec, &times->actime) || in SYSCALL_DEFINE2()
33 get_user(tv[1].tv_sec, &times->modtime)) in SYSCALL_DEFINE2()
70 newattrs.ia_atime.tv_sec = times[0].tv_sec; in utimes_common()
78 newattrs.ia_mtime.tv_sec = times[1].tv_sec; in utimes_common()
215 tstimes[0].tv_sec = times[0].tv_sec; in SYSCALL_DEFINE3()
217 tstimes[1].tv_sec = times[1].tv_sec; in SYSCALL_DEFINE3()
Dselect.c54 if (tv->tv_sec < 0) in __estimate_accuracy()
60 if (tv->tv_sec > MAX_SLACK / (NSEC_PER_SEC/divfactor)) in __estimate_accuracy()
64 slack += tv->tv_sec * (NSEC_PER_SEC/divfactor); in __estimate_accuracy()
274 struct timespec ts = {.tv_sec = sec, .tv_nsec = nsec}; in poll_select_set_timeout()
281 to->tv_sec = to->tv_nsec = 0; in poll_select_set_timeout()
302 if (!end_time->tv_sec && !end_time->tv_nsec) in poll_select_copy_remaining()
307 if (rts.tv_sec < 0) in poll_select_copy_remaining()
308 rts.tv_sec = rts.tv_nsec = 0; in poll_select_copy_remaining()
311 if (sizeof(rtv) > sizeof(rtv.tv_sec) + sizeof(rtv.tv_usec)) in poll_select_copy_remaining()
313 rtv.tv_sec = rts.tv_sec; in poll_select_copy_remaining()
[all …]
Dstat.c152 tmp.st_atime = stat->atime.tv_sec; in cp_old_stat()
153 tmp.st_mtime = stat->mtime.tv_sec; in cp_old_stat()
154 tmp.st_ctime = stat->ctime.tv_sec; in cp_old_stat()
234 tmp.st_atime = stat->atime.tv_sec; in cp_new_stat()
235 tmp.st_mtime = stat->mtime.tv_sec; in cp_new_stat()
236 tmp.st_ctime = stat->ctime.tv_sec; in cp_new_stat()
369 tmp.st_atime = stat->atime.tv_sec; in cp_new_stat64()
371 tmp.st_mtime = stat->mtime.tv_sec; in cp_new_stat64()
373 tmp.st_ctime = stat->ctime.tv_sec; in cp_new_stat64()
Dcompat.c81 if (get_user(tv[0].tv_sec, &t->actime) || in compat_sys_utime()
82 get_user(tv[1].tv_sec, &t->modtime)) in compat_sys_utime()
110 if (get_user(tv[0].tv_sec, &t[0].tv_sec) || in compat_sys_futimesat()
112 get_user(tv[1].tv_sec, &t[1].tv_sec) || in compat_sys_futimesat()
151 tmp.st_atime = stat->atime.tv_sec; in cp_compat_stat()
153 tmp.st_mtime = stat->mtime.tv_sec; in cp_compat_stat()
155 tmp.st_ctime = stat->ctime.tv_sec; in cp_compat_stat()
1103 if (!end_time->tv_sec && !end_time->tv_nsec) in poll_select_copy_remaining()
1108 if (ts.tv_sec < 0) in poll_select_copy_remaining()
1109 ts.tv_sec = ts.tv_nsec = 0; in poll_select_copy_remaining()
[all …]
Dcompat_binfmt_elf.c63 value->tv_sec = tv.tv_sec; in cputime_to_compat_timeval()
/fs/hostfs/
Dhostfs_user.c28 p->atime.tv_sec = buf->st_atime; in stat64_to_hostfs()
30 p->ctime.tv_sec = buf->st_ctime; in stat64_to_hostfs()
32 p->mtime.tv_sec = buf->st_mtime; in stat64_to_hostfs()
248 times[0].tv_sec = st.atime.tv_sec; in set_attr()
250 times[1].tv_sec = st.mtime.tv_sec; in set_attr()
254 times[0].tv_sec = attrs->ia_atime.tv_sec; in set_attr()
258 times[1].tv_sec = attrs->ia_mtime.tv_sec; in set_attr()
/fs/udf/
Dudftime.c111 dest->tv_sec = year_seconds[year - EPOCH_YEAR]; in udf_disk_stamp_to_time()
112 dest->tv_sec -= offset * 60; in udf_disk_stamp_to_time()
115 dest->tv_sec += (((yday * 24) + src.hour) * 60 + src.minute) * 60 + src.second; in udf_disk_stamp_to_time()
135 ts.tv_sec += offset * 60; in udf_time_to_disk_stamp()
136 days = ts.tv_sec / SECS_PER_DAY; in udf_time_to_disk_stamp()
137 rem = ts.tv_sec % SECS_PER_DAY; in udf_time_to_disk_stamp()
/fs/coda/
Dcoda_linux.c112 if (attr->va_atime.tv_sec != -1) in coda_vattr_to_iattr()
114 if (attr->va_mtime.tv_sec != -1) in coda_vattr_to_iattr()
116 if (attr->va_ctime.tv_sec != -1) in coda_vattr_to_iattr()
138 vattr->va_atime.tv_sec = (time_t) -1; in coda_iattr_to_vattr()
140 vattr->va_mtime.tv_sec = (time_t) -1; in coda_iattr_to_vattr()
142 vattr->va_ctime.tv_sec = (time_t) -1; in coda_iattr_to_vattr()
/fs/hpfs/
Dinode.c38 i->i_ctime.tv_sec = i->i_ctime.tv_nsec = 0; in hpfs_init_inode()
39 i->i_mtime.tv_sec = i->i_mtime.tv_nsec = 0; in hpfs_init_inode()
40 i->i_atime.tv_sec = i->i_atime.tv_nsec = 0; in hpfs_init_inode()
230 de->write_date = cpu_to_le32(gmt_to_local(i->i_sb, i->i_mtime.tv_sec)); in hpfs_write_inode_nolock()
231 de->read_date = cpu_to_le32(gmt_to_local(i->i_sb, i->i_atime.tv_sec)); in hpfs_write_inode_nolock()
232 de->creation_date = cpu_to_le32(gmt_to_local(i->i_sb, i->i_ctime.tv_sec)); in hpfs_write_inode_nolock()
240 de->write_date = cpu_to_le32(gmt_to_local(i->i_sb, i->i_mtime.tv_sec)); in hpfs_write_inode_nolock()
241 de->read_date = cpu_to_le32(gmt_to_local(i->i_sb, i->i_atime.tv_sec)); in hpfs_write_inode_nolock()
242 de->creation_date = cpu_to_le32(gmt_to_local(i->i_sb, i->i_ctime.tv_sec)); in hpfs_write_inode_nolock()
Dnamei.c49 …result->i_ctime.tv_sec = result->i_mtime.tv_sec = result->i_atime.tv_sec = local_to_gmt(dir->i_sb,… in hpfs_mkdir()
155 …result->i_ctime.tv_sec = result->i_mtime.tv_sec = result->i_atime.tv_sec = local_to_gmt(dir->i_sb,… in hpfs_create()
238 …result->i_ctime.tv_sec = result->i_mtime.tv_sec = result->i_atime.tv_sec = local_to_gmt(dir->i_sb,… in hpfs_mknod()
312 …result->i_ctime.tv_sec = result->i_mtime.tv_sec = result->i_atime.tv_sec = local_to_gmt(dir->i_sb,… in hpfs_symlink()
Ddir.c269 if (!result->i_ctime.tv_sec) { in hpfs_lookup()
270 if (!(result->i_ctime.tv_sec = local_to_gmt(dir->i_sb, le32_to_cpu(de->creation_date)))) in hpfs_lookup()
271 result->i_ctime.tv_sec = 1; in hpfs_lookup()
273 result->i_mtime.tv_sec = local_to_gmt(dir->i_sb, le32_to_cpu(de->write_date)); in hpfs_lookup()
275 result->i_atime.tv_sec = local_to_gmt(dir->i_sb, le32_to_cpu(de->read_date)); in hpfs_lookup()
/fs/hfs/
Dsysdep.c31 inode->i_ctime.tv_sec += diff; in hfs_revalidate_dentry()
32 inode->i_atime.tv_sec += diff; in hfs_revalidate_dentry()
33 inode->i_mtime.tv_sec += diff; in hfs_revalidate_dentry()
/fs/ufs/
Dinode.c609 inode->i_atime.tv_sec = fs32_to_cpu(sb, ufs_inode->ui_atime.tv_sec); in ufs1_read_inode()
610 inode->i_ctime.tv_sec = fs32_to_cpu(sb, ufs_inode->ui_ctime.tv_sec); in ufs1_read_inode()
611 inode->i_mtime.tv_sec = fs32_to_cpu(sb, ufs_inode->ui_mtime.tv_sec); in ufs1_read_inode()
657 inode->i_atime.tv_sec = fs64_to_cpu(sb, ufs2_inode->ui_atime); in ufs2_read_inode()
658 inode->i_ctime.tv_sec = fs64_to_cpu(sb, ufs2_inode->ui_ctime); in ufs2_read_inode()
659 inode->i_mtime.tv_sec = fs64_to_cpu(sb, ufs2_inode->ui_mtime); in ufs2_read_inode()
757 ufs_inode->ui_atime.tv_sec = cpu_to_fs32(sb, inode->i_atime.tv_sec); in ufs1_update_inode()
759 ufs_inode->ui_ctime.tv_sec = cpu_to_fs32(sb, inode->i_ctime.tv_sec); in ufs1_update_inode()
761 ufs_inode->ui_mtime.tv_sec = cpu_to_fs32(sb, inode->i_mtime.tv_sec); in ufs1_update_inode()
801 ufs_inode->ui_atime = cpu_to_fs64(sb, inode->i_atime.tv_sec); in ufs2_update_inode()
[all …]
/fs/proc/
Duptime.c26 idle.tv_sec = div_u64_rem(nsec, NSEC_PER_SEC, &rem); in uptime_proc_show()
29 (unsigned long) uptime.tv_sec, in uptime_proc_show()
31 (unsigned long) idle.tv_sec, in uptime_proc_show()
/fs/f2fs/
Dinode.c69 inode->i_atime.tv_sec = le64_to_cpu(ri->i_atime); in do_read_inode()
70 inode->i_ctime.tv_sec = le64_to_cpu(ri->i_ctime); in do_read_inode()
71 inode->i_mtime.tv_sec = le64_to_cpu(ri->i_mtime); in do_read_inode()
175 ri->i_atime = cpu_to_le64(inode->i_atime.tv_sec); in update_inode()
176 ri->i_ctime = cpu_to_le64(inode->i_ctime.tv_sec); in update_inode()
177 ri->i_mtime = cpu_to_le64(inode->i_mtime.tv_sec); in update_inode()
/fs/minix/
Dinode.c480 inode->i_mtime.tv_sec = inode->i_atime.tv_sec = inode->i_ctime.tv_sec = raw_inode->i_time; in V1_minix_iget()
513 inode->i_mtime.tv_sec = raw_inode->i_mtime; in V2_minix_iget()
514 inode->i_atime.tv_sec = raw_inode->i_atime; in V2_minix_iget()
515 inode->i_ctime.tv_sec = raw_inode->i_ctime; in V2_minix_iget()
565 raw_inode->i_time = inode->i_mtime.tv_sec; in V1_minix_update_inode()
592 raw_inode->i_mtime = inode->i_mtime.tv_sec; in V2_minix_update_inode()
593 raw_inode->i_atime = inode->i_atime.tv_sec; in V2_minix_update_inode()
594 raw_inode->i_ctime = inode->i_ctime.tv_sec; in V2_minix_update_inode()
/fs/sysv/
Dinode.c210 inode->i_atime.tv_sec = fs32_to_cpu(sbi, raw_inode->i_atime); in sysv_iget()
211 inode->i_mtime.tv_sec = fs32_to_cpu(sbi, raw_inode->i_mtime); in sysv_iget()
212 inode->i_ctime.tv_sec = fs32_to_cpu(sbi, raw_inode->i_ctime); in sysv_iget()
264 raw_inode->i_atime = cpu_to_fs32(sbi, inode->i_atime.tv_sec); in __sysv_write_inode()
265 raw_inode->i_mtime = cpu_to_fs32(sbi, inode->i_mtime.tv_sec); in __sysv_write_inode()
266 raw_inode->i_ctime = cpu_to_fs32(sbi, inode->i_ctime.tv_sec); in __sysv_write_inode()
/fs/ntfs/
Dtime.h54 return cpu_to_sle64((s64)ts.tv_sec * 10000000 + ts.tv_nsec / 100 + in utc2ntfs()
96 ts.tv_sec = t; in ntfs2utc()
/fs/fat/
Dmisc.c225 ts->tv_sec = second + (time_cs / 100); in fat_time_fat2unix()
228 ts->tv_sec = second; in fat_time_fat2unix()
238 time_to_tm(ts->tv_sec, in fat_time_unix2fat()
268 *time_cs = (ts->tv_sec & 1) * 100 + ts->tv_nsec / 10000000; in fat_time_unix2fat()
/fs/xfs/
Dxfs_iops.c639 ip->i_d.di_atime.t_sec = iattr->ia_atime.tv_sec; in xfs_setattr_nonsize()
644 ip->i_d.di_ctime.t_sec = iattr->ia_ctime.tv_sec; in xfs_setattr_nonsize()
649 ip->i_d.di_mtime.t_sec = iattr->ia_mtime.tv_sec; in xfs_setattr_nonsize()
882 ip->i_d.di_ctime.t_sec = iattr->ia_ctime.tv_sec; in xfs_setattr_size()
887 ip->i_d.di_mtime.t_sec = iattr->ia_mtime.tv_sec; in xfs_setattr_size()
944 ip->i_d.di_ctime.t_sec = (__int32_t)now->tv_sec; in xfs_vn_update_time()
949 ip->i_d.di_mtime.t_sec = (__int32_t)now->tv_sec; in xfs_vn_update_time()
954 ip->i_d.di_atime.t_sec = (__int32_t)now->tv_sec; in xfs_vn_update_time()
1192 inode->i_atime.tv_sec = ip->i_d.di_atime.t_sec; in xfs_setup_inode()
1194 inode->i_mtime.tv_sec = ip->i_d.di_mtime.t_sec; in xfs_setup_inode()
[all …]
Dxfs_dfrag.c295 if ((sbp->bs_ctime.tv_sec != VFS_I(ip)->i_ctime.tv_sec) || in xfs_swap_extents()
297 (sbp->bs_mtime.tv_sec != VFS_I(ip)->i_mtime.tv_sec) || in xfs_swap_extents()
Dxfs_trans_inode.c86 ip->i_d.di_mtime.t_sec = tv.tv_sec; in xfs_trans_ichgtime()
92 ip->i_d.di_ctime.t_sec = tv.tv_sec; in xfs_trans_ichgtime()
/fs/jffs2/
Dos-linux.h35 #define I_SEC(tv) ((tv).tv_sec)
36 #define JFFS2_F_I_CTIME(f) (OFNI_EDONI_2SFFJ(f)->i_ctime.tv_sec)
37 #define JFFS2_F_I_MTIME(f) (OFNI_EDONI_2SFFJ(f)->i_mtime.tv_sec)
38 #define JFFS2_F_I_ATIME(f) (OFNI_EDONI_2SFFJ(f)->i_atime.tv_sec)
/fs/bfs/
Dinode.c84 inode->i_atime.tv_sec = le32_to_cpu(di->i_atime); in bfs_iget()
85 inode->i_mtime.tv_sec = le32_to_cpu(di->i_mtime); in bfs_iget()
86 inode->i_ctime.tv_sec = le32_to_cpu(di->i_ctime); in bfs_iget()
145 di->i_atime = cpu_to_le32(inode->i_atime.tv_sec); in bfs_write_inode()
146 di->i_mtime = cpu_to_le32(inode->i_mtime.tv_sec); in bfs_write_inode()
147 di->i_ctime = cpu_to_le32(inode->i_ctime.tv_sec); in bfs_write_inode()
/fs/squashfs/
Dinode.c74 inode->i_mtime.tv_sec = le32_to_cpu(sqsh_ino->mtime); in squashfs_new_inode()
75 inode->i_atime.tv_sec = inode->i_mtime.tv_sec; in squashfs_new_inode()
76 inode->i_ctime.tv_sec = inode->i_mtime.tv_sec; in squashfs_new_inode()

12345