/freebsd-10.3-release/contrib/sendmail/include/sm/ |
H A D | time.h | 21 # define timersub(tvp, uvp, vvp) \ 24 (vvp)->tv_sec = (tvp)->tv_sec - (uvp)->tv_sec; \ 25 (vvp)->tv_usec = (tvp)->tv_usec - (uvp)->tv_usec; \ 35 # define timeradd(tvp, uvp, vvp) \ 38 (vvp)->tv_sec = (tvp)->tv_sec + (uvp)->tv_sec; \ 39 (vvp)->tv_usec = (tvp)->tv_usec + (uvp)->tv_usec; \ 49 # define timercmp(tvp, uvp, cmp) \ 50 (((tvp)->tv_sec == (uvp)->tv_sec) ? \ 51 ((tvp)->tv_usec cmp (uvp)->tv_usec) : \ 52 ((tvp) [all...] |
/freebsd-10.3-release/lib/libc/gen/ |
H A D | utime.c | 45 struct timeval tv[2], *tvp; local 51 tvp = tv; 53 tvp = NULL; 54 return (utimes(path, tvp));
|
/freebsd-10.3-release/usr.bin/truss/ |
H A D | truss.h | 106 #define timespecsubt(tvp, uvp, vvp) \ 108 (vvp)->tv_sec = (tvp)->tv_sec - (uvp)->tv_sec; \ 109 (vvp)->tv_nsec = (tvp)->tv_nsec - (uvp)->tv_nsec; \ 116 #define timespecadd(tvp, uvp, vvp) \ 118 (vvp)->tv_sec = (tvp)->tv_sec + (uvp)->tv_sec; \ 119 (vvp)->tv_nsec = (tvp)->tv_nsec + (uvp)->tv_nsec; \
|
/freebsd-10.3-release/usr.bin/touch/ |
H A D | touch.c | 238 stime_arg1(const char *arg, struct timeval *tvp) argument 245 now = tvp[0].tv_sec; 290 tvp[0].tv_sec = tvp[1].tv_sec = mktime(t); 291 if (tvp[0].tv_sec == -1) 294 tvp[0].tv_usec = tvp[1].tv_usec = 0; 302 stime_arg2(const char *arg, int year, struct timeval *tvp) argument 307 now = tvp[0].tv_sec; 323 tvp[ 332 stime_darg(const char *arg, struct timeval *tvp) argument 406 stime_file(const char *fname, struct timeval *tvp) argument [all...] |
/freebsd-10.3-release/contrib/nvi/common/ |
H A D | util.h | 70 #define timespecclear(tvp) ((tvp)->tv_sec = (tvp)->tv_nsec = 0) 71 #define timespecisset(tvp) ((tvp)->tv_sec || (tvp)->tv_nsec) 72 #define timespeccmp(tvp, uvp, cmp) \ 73 (((tvp)->tv_sec == (uvp)->tv_sec) ? \ 74 ((tvp)->tv_nsec cmp (uvp)->tv_nsec) : \ 75 ((tvp) [all...] |
/freebsd-10.3-release/sys/sys/ |
H A D | time.h | 247 #define timespecclear(tvp) ((tvp)->tv_sec = (tvp)->tv_nsec = 0) 248 #define timespecisset(tvp) ((tvp)->tv_sec || (tvp)->tv_nsec) 249 #define timespeccmp(tvp, uvp, cmp) \ 250 (((tvp)->tv_sec == (uvp)->tv_sec) ? \ 251 ((tvp)->tv_nsec cmp (uvp)->tv_nsec) : \ 252 ((tvp) [all...] |
H A D | timeffc.h | 208 void ffclock_microtime(struct timeval *tvp); 212 void ffclock_getmicrotime(struct timeval *tvp); 216 void ffclock_microuptime(struct timeval *tvp); 220 void ffclock_getmicrouptime(struct timeval *tvp); 228 void ffclock_microdifftime(ffcounter ffdelta, struct timeval *tvp); 238 void fbclock_microtime(struct timeval *tvp); 242 void fbclock_getmicrotime(struct timeval *tvp); 246 void fbclock_microuptime(struct timeval *tvp); 250 void fbclock_getmicrouptime(struct timeval *tvp); 279 microtime_fromclock(struct timeval *tvp, in argument 309 getmicrotime_fromclock(struct timeval *tvp, int whichclock) argument 339 microuptime_fromclock(struct timeval *tvp, int whichclock) argument 369 getmicrouptime_fromclock(struct timeval *tvp, int whichclock) argument [all...] |
/freebsd-10.3-release/crypto/heimdal/lib/krb5/ |
H A D | net_write.c | 55 struct timeval tv, *tvp; local 68 tvp = &tv; 70 tvp = NULL; 72 ret = select(fd + 1, NULL, &wfds, NULL, tvp);
|
/freebsd-10.3-release/sys/cddl/compat/opensolaris/kern/ |
H A D | opensolaris_lookup.c | 70 vnode_t *tvp; local 75 tvp = NULL; 93 * tvp is NULL for *cvpp vnode, which we can't unlock. 97 if (tvp != NULL) 106 error = VFS_ROOT(vfsp, lktype, &tvp); 110 cvp = tvp;
|
/freebsd-10.3-release/contrib/ntp/sntp/libevent/include/event2/ |
H A D | util.h | 486 #define evutil_timeradd(tvp, uvp, vvp) timeradd((tvp), (uvp), (vvp)) 487 #define evutil_timersub(tvp, uvp, vvp) timersub((tvp), (uvp), (vvp)) 489 #define evutil_timeradd(tvp, uvp, vvp) \ 491 (vvp)->tv_sec = (tvp)->tv_sec + (uvp)->tv_sec; \ 492 (vvp)->tv_usec = (tvp)->tv_usec + (uvp)->tv_usec; \ 498 #define evutil_timersub(tvp, uvp, vvp) \ 500 (vvp)->tv_sec = (tvp)->tv_sec - (uvp)->tv_sec; \ 501 (vvp)->tv_usec = (tvp) [all...] |
/freebsd-10.3-release/lib/libc/sys/ |
H A D | futimens.c | 43 struct timeval now, tv[2], *tvp; local 54 tvp = NULL; 75 tvp = tv; 99 return (futimes(fd, tvp));
|
H A D | utimensat.c | 43 struct timeval now, tv[2], *tvp; local 58 tvp = NULL; 79 tvp = tv; 104 return (futimesat(fd, path, tvp)); 107 return (lutimes(path, tvp));
|
/freebsd-10.3-release/contrib/tcpdump/ |
H A D | util.c | 160 ts_print(register const struct timeval *tvp) argument 173 s = (tvp->tv_sec + thiszone) % 86400; 174 (void)printf("%s ", ts_format(s, tvp->tv_usec)); 182 (unsigned)tvp->tv_sec, 183 (unsigned)tvp->tv_usec); 190 b_usec = tvp->tv_usec; 191 b_sec = tvp->tv_sec; 194 d_usec = tvp->tv_usec - b_usec; 195 d_sec = tvp->tv_sec - b_sec; 205 b_sec = tvp [all...] |
/freebsd-10.3-release/contrib/ntp/libntp/ |
H A D | machines.c | 119 struct timeval *tvp 126 return (get_process_stats(tvp, PS_SELF, (struct procstats *) 0, 349 int gettimeofday(struct timeval *tvp) argument 371 tvp->tv_sec = mpetime / 1000000LL; 372 tvp->tv_usec = mpetime % 1000000LL; 383 int settimeofday(struct timeval *tvp) argument 399 big_sec = tvp->tv_sec; 400 big_usec = tvp->tv_usec; 432 struct timeval *tvp, 449 ts.tv_sec = tvp 431 ntp_set_tod( struct timeval *tvp, void *tzp ) argument [all...] |
/freebsd-10.3-release/usr.sbin/lpr/lpc/ |
H A D | movejobs.c | 113 struct timeval tvp[2]; local 149 tvp[0].tv_sec = tvp[1].tv_sec = ++touch_info->newtime; 150 tvp[0].tv_usec = tvp[1].tv_usec = 0; 152 ret = utimes(jq->job_cfname, tvp);
|
/freebsd-10.3-release/sys/ufs/ufs/ |
H A D | ufs_vnops.c | 1107 struct vnode *tvp = ap->a_tvp; local 1131 if (tvp && tvp != tdvp) 1132 VOP_UNLOCK(tvp, 0); 1137 (tvp && (fvp->v_mount != tvp->v_mount))) { 1144 * We need to acquire 2 to 4 locks depending on whether tvp is NULL 1194 * Re-resolve tvp and acquire the vnode lock if present. 1204 * If tvp disappeared we just carry on. 1206 if (error == EJUSTRETURN && tvp ! 1564 ufs_do_posix1e_acl_inheritance_dir(struct vnode *dvp, struct vnode *tvp, mode_t dmode, struct ucred *cred, struct thread *td) argument 1642 ufs_do_posix1e_acl_inheritance_file(struct vnode *dvp, struct vnode *tvp, mode_t mode, struct ucred *cred, struct thread *td) argument 1721 ufs_do_nfs4_acl_inheritance(struct vnode *dvp, struct vnode *tvp, mode_t child_mode, struct ucred *cred, struct thread *td) argument 1762 struct vnode *tvp; local 2564 struct vnode *tvp; local [all...] |
/freebsd-10.3-release/sys/kern/ |
H A D | kern_ffclock.c | 261 ffclock_microtime(struct timeval *tvp) argument 266 bintime2timeval(&bt, tvp); 288 ffclock_getmicrotime(struct timeval *tvp) argument 294 bintime2timeval(&bt, tvp); 314 ffclock_microuptime(struct timeval *tvp) argument 319 bintime2timeval(&bt, tvp); 341 ffclock_getmicrouptime(struct timeval *tvp) argument 347 bintime2timeval(&bt, tvp); 367 ffclock_microdifftime(ffcounter ffdelta, struct timeval *tvp) argument 372 bintime2timeval(&bt, tvp); [all...] |
/freebsd-10.3-release/crypto/openssh/openbsd-compat/ |
H A D | bsd-poll.c | 49 struct timeval tv, *tvp = NULL; local 88 tvp = &tv; 91 ret = select(maxfd + 1, readfds, writefds, exceptfds, tvp);
|
/freebsd-10.3-release/libexec/rpc.sprayd/ |
H A D | sprayd.c | 50 #define timersub(tvp, uvp, vvp) \ 52 (vvp)->tv_sec = (tvp)->tv_sec - (uvp)->tv_sec; \ 53 (vvp)->tv_usec = (tvp)->tv_usec - (uvp)->tv_usec; \
|
/freebsd-10.3-release/sys/fs/ext2fs/ |
H A D | ext2_vnops.c | 725 struct vnode *tvp = ap->a_tvp; local 746 (tvp && (fvp->v_mount != tvp->v_mount))) { 749 if (tdvp == tvp) 753 if (tvp) 754 vput(tvp); 760 if (tvp && ((VTOI(tvp)->i_flags & (NOUNLINK | IMMUTABLE | APPEND)) || 770 if (fvp == tvp) { 771 printf("ext2_rename: fvp == tvp (ca 1087 struct vnode *tvp; local 1531 struct vnode *tvp; local [all...] |
/freebsd-10.3-release/contrib/apr/file_io/unix/ |
H A D | filestat.c | 254 struct timeval tvp[2]; local 256 tvp[0].tv_sec = apr_time_sec(finfo.atime); 257 tvp[0].tv_usec = apr_time_usec(finfo.atime); 258 tvp[1].tv_sec = apr_time_sec(mtime); 259 tvp[1].tv_usec = apr_time_usec(mtime); 261 if (utimes(fname, tvp) == -1) {
|
/freebsd-10.3-release/sys/fs/unionfs/ |
H A D | union_vnops.c | 850 struct vnode *tvp; local 857 tvp = (unp->un_uppervp != NULLVP ? unp->un_uppervp : unp->un_lowervp); 859 error = VOP_READ(tvp, ap->a_uio, ap->a_ioflag, ap->a_cred); 871 struct vnode *tvp; local 878 tvp = (unp->un_uppervp != NULLVP ? unp->un_uppervp : unp->un_lowervp); 880 error = VOP_WRITE(tvp, ap->a_uio, ap->a_ioflag, ap->a_cred); 1109 struct vnode *tvp; local 1132 tvp = ap->a_tvp; 1140 rtvp = tvp; 1150 (tvp ! 2228 struct vnode *tvp; local 2261 struct vnode *tvp; local [all...] |
/freebsd-10.3-release/sys/fs/tmpfs/ |
H A D | tmpfs_vnops.c | 692 * Re-resolve tvp and acquire the vnode lock if present. 696 * If tvp disappeared we just carry on. 703 * Get the tvp ino if the lookup succeeded. We may have to restart 724 * fdvp contains fvp, thus tvp (=fdvp) is not empty. 755 struct vnode *tvp = v->a_tvp; local 769 MPASS(IMPLIES(tvp != NULL, VOP_ISLOCKED(tvp))); 776 (tvp != NULL && fvp->v_mount != tvp->v_mount)) { 782 if (fvp == tvp) { [all...] |
/freebsd-10.3-release/contrib/ntp/include/ |
H A D | parse.h | 98 #define timercmp(tvp, uvp, cmp) \ 99 ((tvp)->tv_sec cmp (uvp)->tv_sec || \ 100 ((tvp)->tv_sec == (uvp)->tv_sec && (tvp)->tv_usec cmp (uvp)->tv_usec))
|
/freebsd-10.3-release/contrib/amd/amd/ |
H A D | nfs_start.c | 101 do_select(sigset_t smask, int fds, fd_set *fdp, struct timeval *tvp) argument 103 do_select(int smask, int fds, fd_set *fdp, struct timeval *tvp) 139 tvp->tv_sec ? tvp : (struct timeval *) 0);
|