/freebsd-11.0-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-11.0-release/lib/libc/gen/ |
H A D | utime.c | 43 struct timeval tv[2], *tvp; local 49 tvp = tv; 51 tvp = NULL; 52 return (utimes(path, tvp));
|
/freebsd-11.0-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-11.0-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-11.0-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-11.0-release/usr.bin/touch/ |
H A D | touch.c | 218 stime_arg1(const char *arg, struct timespec *tvp) argument 270 tvp[0].tv_sec = tvp[1].tv_sec = mktime(t); 271 if (tvp[0].tv_sec == -1) 274 tvp[0].tv_nsec = tvp[1].tv_nsec = 0; 282 stime_arg2(const char *arg, int year, struct timespec *tvp) argument 303 tvp[0].tv_sec = tvp[1].tv_sec = mktime(t); 304 if (tvp[ 312 stime_darg(const char *arg, struct timespec *tvp) argument [all...] |
/freebsd-11.0-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-11.0-release/sys/cddl/compat/opensolaris/kern/ |
H A D | opensolaris_lookup.c | 70 vnode_t *tvp; local 75 tvp = NULL; 94 * tvp is NULL for *cvpp vnode, which we can't unlock. 96 if (tvp != NULL) 107 error = VFS_ROOT(vfsp, lktype, &tvp); 111 cvp = tvp;
|
/freebsd-11.0-release/tools/build/ |
H A D | utimensat.c | 44 struct timeval now, tv[2], *tvp; local 54 tvp = NULL; 75 tvp = tv; 100 return (futimesat(fd, path, tvp)); 103 return (lutimes(path, tvp));
|
H A D | futimens.c | 44 struct timeval now, tv[2], *tvp; local 50 tvp = NULL; 71 tvp = tv; 95 return (futimes(fd, tvp));
|
/freebsd-11.0-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-11.0-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-11.0-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-11.0-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-11.0-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-11.0-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-11.0-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-11.0-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-11.0-release/contrib/tcpdump/ |
H A D | util.c | 193 register const struct timeval *tvp) 206 s = (tvp->tv_sec + thiszone) % 86400; 207 ND_PRINT((ndo, "%s ", ts_format(ndo, s, tvp->tv_usec))); 215 (unsigned)tvp->tv_sec, 216 (unsigned)tvp->tv_usec)); 223 b_usec = tvp->tv_usec; 224 b_sec = tvp->tv_sec; 227 d_usec = tvp->tv_usec - b_usec; 228 d_sec = tvp->tv_sec - b_sec; 238 b_sec = tvp 192 ts_print(netdissect_options *ndo, register const struct timeval *tvp) argument [all...] |
/freebsd-11.0-release/sys/fs/ext2fs/ |
H A D | ext2_vnops.c | 723 struct vnode *tvp = ap->a_tvp; local 744 (tvp && (fvp->v_mount != tvp->v_mount))) { 747 if (tdvp == tvp) 751 if (tvp) 752 vput(tvp); 758 if (tvp && ((VTOI(tvp)->i_flags & (NOUNLINK | IMMUTABLE | APPEND)) || 768 if (fvp == tvp) { 769 printf("ext2_rename: fvp == tvp (ca 1085 struct vnode *tvp; local 1529 struct vnode *tvp; local [all...] |
/freebsd-11.0-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-11.0-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-11.0-release/sys/fs/tmpfs/ |
H A D | tmpfs_vnops.c | 696 * Re-resolve tvp and acquire the vnode lock if present. 700 * If tvp disappeared we just carry on. 707 * Get the tvp ino if the lookup succeeded. We may have to restart 728 * fdvp contains fvp, thus tvp (=fdvp) is not empty. 759 struct vnode *tvp = v->a_tvp; local 773 MPASS(IMPLIES(tvp != NULL, VOP_ISLOCKED(tvp))); 780 (tvp != NULL && fvp->v_mount != tvp->v_mount)) { 786 if (fvp == tvp) { [all...] |