Home
last modified time | relevance | path

Searched refs:tvp (Results 1 – 25 of 38) sorted by relevance

12

/dragonfly/usr.sbin/dntpd/
H A Dconvert.c53 tv_add_micro(tvp, -usec); in tv_subtract_micro()
55 tvp->tv_usec -= usec; in tv_subtract_micro()
56 if (tvp->tv_usec < 0) { in tv_subtract_micro()
57 tvp->tv_sec -= (-tvp->tv_usec + 999999) / 1000000; in tv_subtract_micro()
58 tvp->tv_usec = 1000000 - (-tvp->tv_usec % 1000000); in tv_subtract_micro()
70 tv_subtract_micro(tvp, -usec); in tv_add_micro()
72 tvp->tv_usec += usec; in tv_add_micro()
73 if (tvp->tv_usec >= 1000000) { in tv_add_micro()
74 tvp->tv_sec += tvp->tv_usec / 1000000; in tv_add_micro()
75 tvp->tv_usec = tvp->tv_usec % 1000000; in tv_add_micro()
[all …]
H A Ddefs.h88 void l_fixedpt_to_tv(struct l_fixedpt *fixed, struct timeval *tvp);
89 void tv_subtract_micro(struct timeval *tvp, long usec);
90 void tv_add_micro(struct timeval *tvp, long usec);
91 void tv_add_offset(struct timeval *tvp, double offset);
102 void sysntp_getbasetime(struct timeval *tvp);
H A Dsystem.c88 sysntp_getbasetime(struct timeval *tvp) in sysntp_getbasetime() argument
100 ts_to_tv(&ts, tvp); in sysntp_getbasetime()
/dragonfly/sys/sys/
H A Dtime.h71 #define timespecclear(tvp) ((tvp)->tv_sec = (tvp)->tv_nsec = 0) argument
72 #define timespecisset(tvp) ((tvp)->tv_sec || (tvp)->tv_nsec) argument
76 ((tvp)->tv_sec cmp (uvp)->tv_sec))
98 #define timevalclear(tvp) ((tvp)->tv_sec = (tvp)->tv_usec = 0) argument
99 #define timevalisset(tvp) ((tvp)->tv_sec || (tvp)->tv_usec) argument
100 #define timevalcmp(tvp, uvp, cmp) \ argument
109 #define timerclear(tvp) ((tvp)->tv_sec = (tvp)->tv_usec = 0) argument
110 #define timerisset(tvp) ((tvp)->tv_sec || (tvp)->tv_usec) argument
111 #define timercmp(tvp, uvp, cmp) \ argument
115 #define timeradd(tvp, uvp, vvp) \ argument
[all …]
/dragonfly/contrib/tcpdump/
H A Dtimeval-operations.h36 #define netdissect_timevalclear(tvp) ((tvp)->tv_sec = (tvp)->tv_usec = 0) argument
38 #define netdissect_timevalisset(tvp) ((tvp)->tv_sec || (tvp)->tv_usec) argument
40 #define netdissect_timevalcmp(tvp, uvp, cmp) \ argument
41 (((tvp)->tv_sec == (uvp)->tv_sec) ? \
42 ((tvp)->tv_usec cmp (uvp)->tv_usec) : \
43 ((tvp)->tv_sec cmp (uvp)->tv_sec))
45 #define netdissect_timevaladd(tvp, uvp, vvp, nano_prec) \ argument
47 (vvp)->tv_sec = (tvp)->tv_sec + (uvp)->tv_sec; \
48 (vvp)->tv_usec = (tvp)->tv_usec + (uvp)->tv_usec; \
64 (vvp)->tv_sec = (tvp)->tv_sec - (uvp)->tv_sec; \
[all …]
H A Dutil-print.c278 const struct timeval *tvp) in ts_print() argument
288 ts_date_hmsfrac_print(ndo, tvp->tv_sec, tvp->tv_usec, in ts_print()
297 ts_unix_print(ndo, tvp->tv_sec, tvp->tv_usec); in ts_print()
319 tv_ref = *tvp; /* set timestamp for first packet */ in ts_print()
321 negative_offset = netdissect_timevalcmp(tvp, &tv_ref, <); in ts_print()
323 netdissect_timevalsub(&tv_ref, tvp, &tv_result, nano_prec); in ts_print()
325 netdissect_timevalsub(tvp, &tv_ref, &tv_result, nano_prec); in ts_print()
333 tv_ref = *tvp; /* set timestamp for previous packet */ in ts_print()
337 ts_date_hmsfrac_print(ndo, tvp->tv_sec, tvp->tv_usec, in ts_print()
/dragonfly/usr.bin/touch/
H A Dtouch.c235 now = tvp[0].tv_sec; in stime_arg1()
280 tvp[0].tv_sec = tvp[1].tv_sec = mktime(t); in stime_arg1()
281 if (tvp[0].tv_sec == -1) in stime_arg1()
284 tvp[0].tv_usec = tvp[1].tv_usec = 0; in stime_arg1()
297 now = tvp[0].tv_sec; in stime_arg2()
313 tvp[0].tv_sec = tvp[1].tv_sec = mktime(t); in stime_arg2()
314 if (tvp[0].tv_sec == -1) in stime_arg2()
318 tvp[0].tv_usec = tvp[1].tv_usec = 0; in stime_arg2()
329 tvp[0].tv_usec = 0; in stime_darg()
344 tvp[0].tv_usec += val * (*p - '0'); in stime_darg()
[all …]
/dragonfly/contrib/nvi2/common/
H A Dutil.h68 #define timespecclear(tvp) ((tvp)->tv_sec = (tvp)->tv_nsec = 0) argument
69 #define timespecisset(tvp) ((tvp)->tv_sec || (tvp)->tv_nsec) argument
70 #define timespeccmp(tvp, uvp, cmp) \ argument
71 (((tvp)->tv_sec == (uvp)->tv_sec) ? \
72 ((tvp)->tv_nsec cmp (uvp)->tv_nsec) : \
73 ((tvp)->tv_sec cmp (uvp)->tv_sec))
/dragonfly/sys/vfs/ufs/
H A Dufs_vnops.c828 (tvp && (fvp->v_mount != tvp->v_mount))) { in ufs_rename()
835 if (tvp) in ufs_rename()
909 if (tvp) in ufs_rename()
997 if (tvp) in ufs_rename()
1147 vput(tvp); in ufs_rename()
1333 vput(tvp); in ufs_mkdir()
1399 if ((error = ffs_update(tvp, !(DOINGSOFTDEP(tvp) | in ufs_mkdir()
1441 vput(tvp); in ufs_mkdir()
2079 if (tvp->v_type == VREG || tvp->v_type == VDIR) in ufs_makeinode()
2085 error = ffs_update(tvp, !(DOINGSOFTDEP(tvp) | DOINGASYNC(tvp))); in ufs_makeinode()
[all …]
/dragonfly/lib/libc/gen/
H A Dutime.c40 struct timeval tv[2], *tvp; in utime() local
46 tvp = tv; in utime()
48 tvp = NULL; in utime()
49 return (utimes(path, tvp)); in utime()
/dragonfly/usr.sbin/lpr/lpc/
H A Dmovejobs.c108 struct timeval tvp[2]; in touch_jqe() local
144 tvp[0].tv_sec = tvp[1].tv_sec = ++touch_info->newtime; in touch_jqe()
145 tvp[0].tv_usec = tvp[1].tv_usec = 0; in touch_jqe()
147 ret = utimes(jq->job_cfname, tvp); in touch_jqe()
H A Dcmds.c1188 struct timeval tvp[2]; in touch() local
1191 tvp[0].tv_sec = tvp[1].tv_sec = --mtime; in touch()
1192 tvp[0].tv_usec = tvp[1].tv_usec = 0; in touch()
1194 ret = utimes(jq->job_cfname, tvp); in touch()
/dragonfly/sys/kern/
H A Dkern_clock.c1384 if (tvp->tv_usec >= 1000000) { in getmicrouptime()
1385 tvp->tv_usec -= 1000000; in getmicrouptime()
1386 ++tvp->tv_sec; in getmicrouptime()
1409 microuptime(struct timeval *tvp) in microuptime() argument
1448 getmicrotime(struct timeval *tvp) in getmicrotime() argument
1472 tvp->tv_sec = ts.tv_sec; in getmicrotime()
1473 tvp->tv_usec = ts.tv_nsec / 1000; in getmicrotime()
1531 microtime(struct timeval *tvp) in microtime() argument
1550 tvp->tv_sec += bt->tv_sec; in microtime()
1553 tvp->tv_usec -= 1000000; in microtime()
[all …]
H A Dvfs_default.c555 struct vnode *tvp; in vop_compat_nlink() local
592 tvp = NULL; in vop_compat_nlink()
593 error = vop_old_lookup(ap->a_head.a_ops, dvp, &tvp, &cnp); in vop_compat_nlink()
612 vput(tvp); in vop_compat_nlink()
962 struct vnode *tdvp, *tvp; in vop_compat_nrename() local
1052 tvp = NULL; in vop_compat_nrename()
1053 error = vop_old_lookup(ap->a_head.a_ops, tdvp, &tvp, &tcnp); in vop_compat_nrename()
1059 KKASSERT(tvp == NULL); in vop_compat_nrename()
1061 error = VOP_OLD_RENAME(fdvp, fvp, &fcnp, tdvp, tvp, &tcnp); in vop_compat_nrename()
1070 error = VOP_OLD_RENAME(fdvp, fvp, &fcnp, tdvp, tvp, &tcnp); in vop_compat_nrename()
/dragonfly/sys/vfs/ext2fs/
H A Dext2_vnops.c702 (tvp && (fvp->v_mount != tvp->v_mount))) { in ext2_rename()
709 if (tvp) in ext2_rename()
710 vput(tvp); in ext2_rename()
772 if (tvp) in ext2_rename()
852 if (tvp) in ext2_rename()
966 vput(tvp); in ext2_rename()
1242 vput(tvp); in ext2_mkdir()
1774 if (tvp->v_type == VREG || tvp->v_type == VDIR) in ext2_makeinode()
1780 error = ext2_update(tvp, !DOINGASYNC(tvp)); in ext2_makeinode()
1788 *vpp = tvp; in ext2_makeinode()
[all …]
/dragonfly/libexec/rpc.sprayd/
H A Dsprayd.c47 #define timersub(tvp, uvp, vvp) \ argument
49 (vvp)->tv_sec = (tvp)->tv_sec - (uvp)->tv_sec; \
50 (vvp)->tv_usec = (tvp)->tv_usec - (uvp)->tv_usec; \
/dragonfly/sys/vfs/smbfs/
H A Dsmbfs_vnops.c527 struct vnode *tvp = ap->a_tvp; in smbfs_rename() local
538 (tvp && (fvp->v_mount != tvp->v_mount))) { in smbfs_rename()
543 if (tvp && VREFCNT(tvp) > 1) { in smbfs_rename()
570 if (tvp && tvp != fvp) { in smbfs_rename()
571 error = smbfs_smb_delete(VTOSMB(tvp), &scred); in smbfs_rename()
589 if (tdvp == tvp) in smbfs_rename()
593 if (tvp) in smbfs_rename()
594 vput(tvp); in smbfs_rename()
600 if (tvp) in smbfs_rename()
601 vgone_vxlocked(tvp); in smbfs_rename()
/dragonfly/usr.bin/script/
H A Dscript.c88 struct timeval tv, *tvp; in main() local
209 tvp = &tv; in main()
214 tvp = &tv; in main()
216 tvp = NULL; in main()
218 n = select(master + 1, &rfd, 0, 0, tvp); in main()
/dragonfly/tools/tools/crypto/
H A Dcryptotest.c433 struct timeval *tvp; in runtests() local
451 tvp = (struct timeval *) region; in runtests()
467 runtest(alg, count, size, cmd, &tvp[i]); in runtests()
473 runtest(alg, count, size, cmd, tvp); in runtests()
477 t += (((double)tvp[i].tv_sec * 1000000 + tvp[i].tv_usec) / 1000000); in runtests()
/dragonfly/usr.sbin/installer/libaura/
H A Dpopen.c241 struct timeval *tvp; in aura_pgets() local
247 tvp = (msec < 0 ? NULL : &tv); in aura_pgets()
264 n = select(fileno(p) + 1, &r, NULL, NULL, tvp); in aura_pgets()
/dragonfly/sys/vfs/msdosfs/
H A Dmsdosfs_vnops.c942 (tvp && fvp->v_mount != tvp->v_mount)) { in msdosfs_rename()
945 if (tdvp == tvp) in msdosfs_rename()
949 if (tvp) in msdosfs_rename()
950 vput(tvp); in msdosfs_rename()
959 if (tvp == fvp) { in msdosfs_rename()
1004 xp = tvp ? VTODE(tvp) : NULL; in msdosfs_rename()
1035 vput(tvp); in msdosfs_rename()
1069 xp = tvp ? VTODE(tvp) : NULL; in msdosfs_rename()
1099 vput(tvp); in msdosfs_rename()
1101 tvp = NULL; in msdosfs_rename()
[all …]
/dragonfly/contrib/tnftp/
H A Dtnftp.h469 # define timersub(tvp, uvp, vvp) \ argument
471 (vvp)->tv_sec = (tvp)->tv_sec - (uvp)->tv_sec; \
472 (vvp)->tv_usec = (tvp)->tv_usec - (uvp)->tv_usec; \
/dragonfly/sys/vfs/tmpfs/
H A Dtmpfs_vnops.c1259 struct vnode *tvp; in tmpfs_nrename() local
1279 tnode = VP_TO_TMPFS_NODE(tvp); in tmpfs_nrename()
1280 vn_unlock(tvp); in tmpfs_nrename()
1288 (tvp != NULL && fvp->v_mount != tvp->v_mount)) { in tmpfs_nrename()
1297 if (fvp == tvp) { in tmpfs_nrename()
1330 if (tvp != NULL) { in tmpfs_nrename()
1410 if (tvp != NULL) { in tmpfs_nrename()
1461 if (tvp) in tmpfs_nrename()
1462 vrele(tvp); in tmpfs_nrename()
1468 if (tvp) in tmpfs_nrename()
[all …]
/dragonfly/lib/libssh/openbsd-compat/
H A Dbsd-misc.c110 int utimes(const char *filename, struct timeval *tvp) in utimes() argument
114 ub.actime = tvp[0].tv_sec; in utimes()
115 ub.modtime = tvp[1].tv_sec; in utimes()
/dragonfly/sys/vfs/nfs/
H A Dnfs_vnops.c1978 if (tvp) { in nfs_rename()
1980 if (VTONFS(tvp)) in nfs_rename()
1986 (tvp && (fvp->v_mount != tvp->v_mount))) { in nfs_rename()
2004 if (tvp) in nfs_rename()
2017 if (tvp && VREFCNT(tvp) > 1 && !VTONFS(tvp)->n_sillyrename && in nfs_rename()
2018 tvp->v_type != VDIR && !nfs_sillyrename(tdvp, tvp, tcnp)) { in nfs_rename()
2020 vput(tvp); in nfs_rename()
2021 tvp = NULL; in nfs_rename()
2037 if (tdvp == tvp) in nfs_rename()
2041 if (tvp) in nfs_rename()
[all …]

12