Home
last modified time | relevance | path

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

123456

/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()
71 newattrs.ia_atime.tv_sec = times[0].tv_sec; in utimes_common()
79 newattrs.ia_mtime.tv_sec = times[1].tv_sec; in utimes_common()
208 tstimes[0].tv_sec = times[0].tv_sec; in SYSCALL_DEFINE3()
210 tstimes[1].tv_sec = times[1].tv_sec; in SYSCALL_DEFINE3()
Dselect.c56 if (tv->tv_sec < 0) in __estimate_accuracy()
62 if (tv->tv_sec > MAX_SLACK / (NSEC_PER_SEC/divfactor)) in __estimate_accuracy()
66 slack += tv->tv_sec * (NSEC_PER_SEC/divfactor); in __estimate_accuracy()
275 struct timespec ts = {.tv_sec = sec, .tv_nsec = nsec}; in poll_select_set_timeout()
282 to->tv_sec = to->tv_nsec = 0; in poll_select_set_timeout()
303 if (!end_time->tv_sec && !end_time->tv_nsec) in poll_select_copy_remaining()
308 if (rts.tv_sec < 0) in poll_select_copy_remaining()
309 rts.tv_sec = rts.tv_nsec = 0; in poll_select_copy_remaining()
312 if (sizeof(rtv) > sizeof(rtv.tv_sec) + sizeof(rtv.tv_usec)) in poll_select_copy_remaining()
314 rtv.tv_sec = rts.tv_sec; in poll_select_copy_remaining()
[all …]
Dstat.c171 tmp.st_atime = stat->atime.tv_sec; in cp_old_stat()
172 tmp.st_mtime = stat->mtime.tv_sec; in cp_old_stat()
173 tmp.st_ctime = stat->ctime.tv_sec; in cp_old_stat()
253 tmp.st_atime = stat->atime.tv_sec; in cp_new_stat()
254 tmp.st_mtime = stat->mtime.tv_sec; in cp_new_stat()
255 tmp.st_ctime = stat->ctime.tv_sec; in cp_new_stat()
386 tmp.st_atime = stat->atime.tv_sec; in cp_new_stat64()
388 tmp.st_mtime = stat->mtime.tv_sec; in cp_new_stat64()
390 tmp.st_ctime = stat->ctime.tv_sec; in cp_new_stat64()
Dcompat.c81 if (get_user(tv[0].tv_sec, &t->actime) || in COMPAT_SYSCALL_DEFINE2()
82 get_user(tv[1].tv_sec, &t->modtime)) in COMPAT_SYSCALL_DEFINE2()
110 if (get_user(tv[0].tv_sec, &t[0].tv_sec) || in COMPAT_SYSCALL_DEFINE3()
112 get_user(tv[1].tv_sec, &t[1].tv_sec) || in COMPAT_SYSCALL_DEFINE3()
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()
1118 if (!end_time->tv_sec && !end_time->tv_nsec) in poll_select_copy_remaining()
1123 if (ts.tv_sec < 0) in poll_select_copy_remaining()
1124 ts.tv_sec = ts.tv_nsec = 0; in poll_select_copy_remaining()
[all …]
Dcompat_binfmt_elf.c64 value->tv_sec = tv.tv_sec; in cputime_to_compat_timeval()
/fs/hostfs/
Dhostfs_user.c29 p->atime.tv_sec = buf->st_atime; in stat64_to_hostfs()
31 p->ctime.tv_sec = buf->st_ctime; in stat64_to_hostfs()
33 p->mtime.tv_sec = buf->st_mtime; in stat64_to_hostfs()
244 times[0].tv_sec = st.atime.tv_sec; in set_attr()
246 times[1].tv_sec = st.mtime.tv_sec; in set_attr()
250 times[0].tv_sec = attrs->ia_atime.tv_sec; in set_attr()
254 times[1].tv_sec = attrs->ia_mtime.tv_sec; in set_attr()
/fs/coda/
Dcoda_linux.c106 if (attr->va_atime.tv_sec != -1) in coda_vattr_to_iattr()
108 if (attr->va_mtime.tv_sec != -1) in coda_vattr_to_iattr()
110 if (attr->va_ctime.tv_sec != -1) in coda_vattr_to_iattr()
132 vattr->va_atime.tv_sec = (time_t) -1; in coda_iattr_to_vattr()
134 vattr->va_mtime.tv_sec = (time_t) -1; in coda_iattr_to_vattr()
136 vattr->va_ctime.tv_sec = (time_t) -1; in coda_iattr_to_vattr()
/fs/udf/
Dudftime.c109 dest->tv_sec = year_seconds[year - EPOCH_YEAR]; in udf_disk_stamp_to_time()
110 dest->tv_sec -= offset * 60; in udf_disk_stamp_to_time()
113 dest->tv_sec += (((yday * 24) + src.hour) * 60 + src.minute) * 60 + src.second; in udf_disk_stamp_to_time()
133 ts.tv_sec += offset * 60; in udf_time_to_disk_stamp()
134 days = ts.tv_sec / SECS_PER_DAY; in udf_time_to_disk_stamp()
135 rem = ts.tv_sec % SECS_PER_DAY; in udf_time_to_disk_stamp()
/fs/hpfs/
Dnamei.c14 if (t == dir->i_mtime.tv_sec && in hpfs_update_directory_times()
15 t == dir->i_ctime.tv_sec) in hpfs_update_directory_times()
17 dir->i_mtime.tv_sec = dir->i_ctime.tv_sec = t; in hpfs_update_directory_times()
60 …result->i_ctime.tv_sec = result->i_mtime.tv_sec = result->i_atime.tv_sec = local_to_gmt(dir->i_sb,… in hpfs_mkdir()
167 …result->i_ctime.tv_sec = result->i_mtime.tv_sec = result->i_atime.tv_sec = local_to_gmt(dir->i_sb,… in hpfs_create()
249 …result->i_ctime.tv_sec = result->i_mtime.tv_sec = result->i_atime.tv_sec = local_to_gmt(dir->i_sb,… in hpfs_mknod()
324 …result->i_ctime.tv_sec = result->i_mtime.tv_sec = result->i_atime.tv_sec = local_to_gmt(dir->i_sb,… in hpfs_symlink()
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()
231 de->write_date = cpu_to_le32(gmt_to_local(i->i_sb, i->i_mtime.tv_sec)); in hpfs_write_inode_nolock()
232 de->read_date = cpu_to_le32(gmt_to_local(i->i_sb, i->i_atime.tv_sec)); in hpfs_write_inode_nolock()
233 de->creation_date = cpu_to_le32(gmt_to_local(i->i_sb, i->i_ctime.tv_sec)); in hpfs_write_inode_nolock()
241 de->write_date = cpu_to_le32(gmt_to_local(i->i_sb, i->i_mtime.tv_sec)); in hpfs_write_inode_nolock()
242 de->read_date = cpu_to_le32(gmt_to_local(i->i_sb, i->i_atime.tv_sec)); in hpfs_write_inode_nolock()
243 de->creation_date = cpu_to_le32(gmt_to_local(i->i_sb, i->i_ctime.tv_sec)); in hpfs_write_inode_nolock()
Ddir.c271 if (!result->i_ctime.tv_sec) { in hpfs_lookup()
272 if (!(result->i_ctime.tv_sec = local_to_gmt(dir->i_sb, le32_to_cpu(de->creation_date)))) in hpfs_lookup()
273 result->i_ctime.tv_sec = 1; in hpfs_lookup()
275 result->i_mtime.tv_sec = local_to_gmt(dir->i_sb, le32_to_cpu(de->write_date)); in hpfs_lookup()
277 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/proc/
Duptime.c25 idle.tv_sec = div_u64_rem(nsec, NSEC_PER_SEC, &rem); in uptime_proc_show()
28 (unsigned long) uptime.tv_sec, in uptime_proc_show()
30 (unsigned long) idle.tv_sec, in uptime_proc_show()
/fs/ufs/
Dinode.c568 inode->i_atime.tv_sec = fs32_to_cpu(sb, ufs_inode->ui_atime.tv_sec); in ufs1_read_inode()
569 inode->i_ctime.tv_sec = fs32_to_cpu(sb, ufs_inode->ui_ctime.tv_sec); in ufs1_read_inode()
570 inode->i_mtime.tv_sec = fs32_to_cpu(sb, ufs_inode->ui_mtime.tv_sec); in ufs1_read_inode()
616 inode->i_atime.tv_sec = fs64_to_cpu(sb, ufs2_inode->ui_atime); in ufs2_read_inode()
617 inode->i_ctime.tv_sec = fs64_to_cpu(sb, ufs2_inode->ui_ctime); in ufs2_read_inode()
618 inode->i_mtime.tv_sec = fs64_to_cpu(sb, ufs2_inode->ui_mtime); in ufs2_read_inode()
716 ufs_inode->ui_atime.tv_sec = cpu_to_fs32(sb, inode->i_atime.tv_sec); in ufs1_update_inode()
718 ufs_inode->ui_ctime.tv_sec = cpu_to_fs32(sb, inode->i_ctime.tv_sec); in ufs1_update_inode()
720 ufs_inode->ui_mtime.tv_sec = cpu_to_fs32(sb, inode->i_mtime.tv_sec); in ufs1_update_inode()
760 ufs_inode->ui_atime = cpu_to_fs64(sb, inode->i_atime.tv_sec); in ufs2_update_inode()
[all …]
/fs/minix/
Dinode.c505 inode->i_mtime.tv_sec = inode->i_atime.tv_sec = inode->i_ctime.tv_sec = raw_inode->i_time; in V1_minix_iget()
545 inode->i_mtime.tv_sec = raw_inode->i_mtime; in V2_minix_iget()
546 inode->i_atime.tv_sec = raw_inode->i_atime; in V2_minix_iget()
547 inode->i_ctime.tv_sec = raw_inode->i_ctime; in V2_minix_iget()
597 raw_inode->i_time = inode->i_mtime.tv_sec; in V1_minix_update_inode()
624 raw_inode->i_mtime = inode->i_mtime.tv_sec; in V2_minix_update_inode()
625 raw_inode->i_atime = inode->i_atime.tv_sec; in V2_minix_update_inode()
626 raw_inode->i_ctime = inode->i_ctime.tv_sec; in V2_minix_update_inode()
/fs/sysv/
Dinode.c204 inode->i_atime.tv_sec = fs32_to_cpu(sbi, raw_inode->i_atime); in sysv_iget()
205 inode->i_mtime.tv_sec = fs32_to_cpu(sbi, raw_inode->i_mtime); in sysv_iget()
206 inode->i_ctime.tv_sec = fs32_to_cpu(sbi, raw_inode->i_ctime); in sysv_iget()
258 raw_inode->i_atime = cpu_to_fs32(sbi, inode->i_atime.tv_sec); in __sysv_write_inode()
259 raw_inode->i_mtime = cpu_to_fs32(sbi, inode->i_mtime.tv_sec); in __sysv_write_inode()
260 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.c218 ts->tv_sec = second + (time_cs / 100); in fat_time_fat2unix()
221 ts->tv_sec = second; in fat_time_fat2unix()
231 time_to_tm(ts->tv_sec, in fat_time_unix2fat()
261 *time_cs = (ts->tv_sec & 1) * 100 + ts->tv_nsec / 10000000; in fat_time_unix2fat()
/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/f2fs/
Dinode.c217 inode->i_atime.tv_sec = le64_to_cpu(ri->i_atime); in do_read_inode()
218 inode->i_ctime.tv_sec = le64_to_cpu(ri->i_ctime); in do_read_inode()
219 inode->i_mtime.tv_sec = le64_to_cpu(ri->i_mtime); in do_read_inode()
283 fi->i_crtime.tv_sec = le64_to_cpu(ri->i_crtime); in do_read_inode()
405 ri->i_atime = cpu_to_le64(inode->i_atime.tv_sec); in update_inode()
406 ri->i_ctime = cpu_to_le64(inode->i_ctime.tv_sec); in update_inode()
407 ri->i_mtime = cpu_to_le64(inode->i_mtime.tv_sec); in update_inode()
439 cpu_to_le64(F2FS_I(inode)->i_crtime.tv_sec); in update_inode()
/fs/bfs/
Dinode.c83 inode->i_atime.tv_sec = le32_to_cpu(di->i_atime); in bfs_iget()
84 inode->i_mtime.tv_sec = le32_to_cpu(di->i_mtime); in bfs_iget()
85 inode->i_ctime.tv_sec = le32_to_cpu(di->i_ctime); in bfs_iget()
144 di->i_atime = cpu_to_le32(inode->i_atime.tv_sec); in bfs_write_inode()
145 di->i_mtime = cpu_to_le32(inode->i_mtime.tv_sec); in bfs_write_inode()
146 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()
/fs/xfs/
Dxfs_trans_inode.c81 ip->i_d.di_mtime.t_sec = tv.tv_sec; in xfs_trans_ichgtime()
87 ip->i_d.di_ctime.t_sec = tv.tv_sec; in xfs_trans_ichgtime()
/fs/9p/
Dvfs_inode_dotl.c575 p9attr.atime_sec = iattr->ia_atime.tv_sec; in v9fs_vfs_setattr_dotl()
577 p9attr.mtime_sec = iattr->ia_mtime.tv_sec; in v9fs_vfs_setattr_dotl()
624 inode->i_atime.tv_sec = stat->st_atime_sec; in v9fs_stat2inode_dotl()
626 inode->i_mtime.tv_sec = stat->st_mtime_sec; in v9fs_stat2inode_dotl()
628 inode->i_ctime.tv_sec = stat->st_ctime_sec; in v9fs_stat2inode_dotl()
643 inode->i_atime.tv_sec = stat->st_atime_sec; in v9fs_stat2inode_dotl()
647 inode->i_mtime.tv_sec = stat->st_mtime_sec; in v9fs_stat2inode_dotl()
651 inode->i_ctime.tv_sec = stat->st_ctime_sec; in v9fs_stat2inode_dotl()
/fs/affs/
Dinode.c148 inode->i_mtime.tv_sec = inode->i_atime.tv_sec = inode->i_ctime.tv_sec in affs_iget()
186 secs_to_datestamp(inode->i_mtime.tv_sec,&AFFS_ROOT_TAIL(sb, bh)->root_change); in affs_write_inode()
190 secs_to_datestamp(inode->i_mtime.tv_sec,&tail->change); in affs_write_inode()

123456