Searched refs:tvp (Results 1 - 25 of 79) sorted by relevance

1234

/freebsd-9.3-release/contrib/sendmail/include/sm/
H A Dtime.h21 # 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-9.3-release/lib/libc/gen/
H A Dutime.c45 struct timeval tv[2], *tvp; local
51 tvp = tv;
53 tvp = NULL;
54 return (utimes(path, tvp));
/freebsd-9.3-release/sys/sys/
H A Dtime.h164 #define timespecclear(tvp) ((tvp)->tv_sec = (tvp)->tv_nsec = 0)
165 #define timespecisset(tvp) ((tvp)->tv_sec || (tvp)->tv_nsec)
166 #define timespeccmp(tvp, uvp, cmp) \
167 (((tvp)->tv_sec == (uvp)->tv_sec) ? \
168 ((tvp)->tv_nsec cmp (uvp)->tv_nsec) : \
169 ((tvp)
[all...]
/freebsd-9.3-release/usr.bin/truss/
H A Dtruss.h65 #define timespecsubt(tvp, uvp, vvp) \
67 (vvp)->tv_sec = (tvp)->tv_sec - (uvp)->tv_sec; \
68 (vvp)->tv_nsec = (tvp)->tv_nsec - (uvp)->tv_nsec; \
75 #define timespecadd(tvp, uvp, vvp) \
77 (vvp)->tv_sec = (tvp)->tv_sec + (uvp)->tv_sec; \
78 (vvp)->tv_nsec = (tvp)->tv_nsec + (uvp)->tv_nsec; \
/freebsd-9.3-release/usr.bin/touch/
H A Dtouch.c246 stime_arg1(char *arg, struct timeval *tvp) argument
253 now = tvp[0].tv_sec;
298 tvp[0].tv_sec = tvp[1].tv_sec = mktime(t);
299 if (tvp[0].tv_sec == -1)
303 tvp[0].tv_usec = tvp[1].tv_usec = 0;
307 stime_arg2(char *arg, int year, struct timeval *tvp) argument
312 now = tvp[0].tv_sec;
328 tvp[
337 stime_darg(char *arg, struct timeval *tvp) argument
411 stime_file(char *fname, struct timeval *tvp) argument
[all...]
/freebsd-9.3-release/crypto/heimdal/lib/krb5/
H A Dnet_write.c58 struct timeval tv, *tvp; local
71 tvp = &tv;
73 tvp = NULL;
75 ret = select(fd + 1, NULL, &wfds, NULL, tvp);
/freebsd-9.3-release/sys/cddl/compat/opensolaris/kern/
H A Dopensolaris_lookup.c70 vnode_t *tvp; local
75 tvp = NULL;
93 * tvp is NULL for *cvpp vnode, which we can't unlock.
95 if (tvp != NULL)
106 error = VFS_ROOT(vfsp, lktype, &tvp);
110 cvp = tvp;
/freebsd-9.3-release/contrib/ntp/sntp/libevent/include/event2/
H A Dutil.h486 #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-9.3-release/contrib/tcpdump/
H A Dutil.c160 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-9.3-release/contrib/ntp/libntp/
H A Dmachines.c119 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-9.3-release/usr.sbin/lpr/lpc/
H A Dmovejobs.c112 struct timeval tvp[2]; local
148 tvp[0].tv_sec = tvp[1].tv_sec = ++touch_info->newtime;
149 tvp[0].tv_usec = tvp[1].tv_usec = 0;
151 ret = utimes(jq->job_cfname, tvp);
/freebsd-9.3-release/sys/ufs/ufs/
H A Dufs_vnops.c1147 struct vnode *tvp = ap->a_tvp; local
1171 if (tvp && tvp != tdvp)
1172 VOP_UNLOCK(tvp, 0);
1177 (tvp && (fvp->v_mount != tvp->v_mount))) {
1189 * We need to acquire 2 to 4 locks depending on whether tvp is NULL
1239 * Re-resolve tvp and acquire the vnode lock if present.
1249 * If tvp disappeared we just carry on.
1251 if (error == EJUSTRETURN && tvp !
1614 ufs_do_posix1e_acl_inheritance_dir(struct vnode *dvp, struct vnode *tvp, mode_t dmode, struct ucred *cred, struct thread *td) argument
1692 ufs_do_posix1e_acl_inheritance_file(struct vnode *dvp, struct vnode *tvp, mode_t mode, struct ucred *cred, struct thread *td) argument
1771 ufs_do_nfs4_acl_inheritance(struct vnode *dvp, struct vnode *tvp, mode_t child_mode, struct ucred *cred, struct thread *td) argument
1812 struct vnode *tvp; local
2600 struct vnode *tvp; local
[all...]
/freebsd-9.3-release/sys/gnu/fs/xfs/
H A Dxfs_dfrag.c62 xfs_vnode_t *vp = NULL, *tvp = NULL; local
101 tvp = VPTOXFSVP(btvp);
102 tip = xfs_vtoi(tvp);
151 xfs_vnode_t *vp, *tvp; local
171 tvp = XFS_ITOV(tip);
214 if (VN_CACHED(tvp) != 0) {
216 XVOP_FLUSHINVAL_PAGES(tvp, 0, -1, FI_REMAPF_LOCKED);
220 if (VN_CACHED(tvp) != 0) {
384 VN_HOLD(tvp);
/freebsd-9.3-release/crypto/openssh/openbsd-compat/
H A Dbsd-poll.c49 struct timeval tv, *tvp = NULL; local
88 tvp = &tv;
91 ret = select(maxfd + 1, readfds, writefds, exceptfds, tvp);
H A Dbsd-misc.c108 int utimes(char *filename, struct timeval *tvp) argument
112 ub.actime = tvp[0].tv_sec;
113 ub.modtime = tvp[1].tv_sec;
/freebsd-9.3-release/libexec/rpc.sprayd/
H A Dsprayd.c50 #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-9.3-release/sys/gnu/fs/xfs/FreeBSD/
H A Dxfs_vnops.c786 struct vnode *tvp = ap->a_tvp; local
798 (tvp && (fvp->v_mount != tvp->v_mount))) {
803 if (tvp && tvp->v_usecount > 1) {
809 if (tvp != NULL && tvp->v_type == VDIR)
814 if (tdvp == tvp)
818 if (tvp)
819 vput(tvp);
1240 struct vnode *dvp, *tvp; local
[all...]
/freebsd-9.3-release/sys/fs/ext2fs/
H A Dext2_vnops.c728 struct vnode *tvp = ap->a_tvp; local
749 (tvp && (fvp->v_mount != tvp->v_mount))) {
752 if (tdvp == tvp)
756 if (tvp)
757 vput(tvp);
763 if (tvp && ((VTOI(tvp)->i_flags & (NOUNLINK | IMMUTABLE | APPEND)) ||
773 if (fvp == tvp) {
774 printf("ext2_rename: fvp == tvp (ca
1087 struct vnode *tvp; local
1534 struct vnode *tvp; local
[all...]
/freebsd-9.3-release/sys/fs/unionfs/
H A Dunion_vnops.c851 struct vnode *tvp; local
858 tvp = (unp->un_uppervp != NULLVP ? unp->un_uppervp : unp->un_lowervp);
860 error = VOP_READ(tvp, ap->a_uio, ap->a_ioflag, ap->a_cred);
872 struct vnode *tvp; local
879 tvp = (unp->un_uppervp != NULLVP ? unp->un_uppervp : unp->un_lowervp);
881 error = VOP_WRITE(tvp, ap->a_uio, ap->a_ioflag, ap->a_cred);
1110 struct vnode *tvp; local
1133 tvp = ap->a_tvp;
1141 rtvp = tvp;
1151 (tvp !
2230 struct vnode *tvp; local
2263 struct vnode *tvp; local
[all...]
/freebsd-9.3-release/contrib/amd/amd/
H A Dnfs_start.c101 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);
/freebsd-9.3-release/contrib/ntp/include/
H A Dparse.h98 #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-9.3-release/sys/fs/nwfs/
H A Dnwfs_vnops.c494 struct vnode *tvp = ap->a_tvp; local
505 (tvp && (fvp->v_mount != tvp->v_mount))) {
510 if (tvp && vrefcnt(tvp) > 1) {
522 if (tvp && tvp != fvp) {
539 if (tvp != NULL && tvp->v_type == VDIR)
548 if (tdvp == tvp)
[all...]
/freebsd-9.3-release/sys/fs/nullfs/
H A Dnull_vnops.c556 struct vnode *tvp = ap->a_tvp; local
561 (tvp && (fvp->v_mount != tvp->v_mount))) {
562 if (tdvp == tvp)
566 if (tvp)
567 vput(tvp);
573 if (tvp != NULL) {
574 tnn = VTONULL(tvp);
776 printf("\tvp=%p, lowervp=%p\n", vp, VTONULL(vp)->null_lowervp);
/freebsd-9.3-release/sys/fs/tmpfs/
H A Dtmpfs_vnops.c1010 * Re-resolve tvp and acquire the vnode lock if present.
1014 * If tvp disappeared we just carry on.
1021 * Get the tvp ino if the lookup succeeded. We may have to restart
1042 * fdvp contains fvp, thus tvp (=fdvp) is not empty.
1073 struct vnode *tvp = v->a_tvp; local
1087 MPASS(IMPLIES(tvp != NULL, VOP_ISLOCKED(tvp)));
1094 (tvp != NULL && fvp->v_mount != tvp->v_mount)) {
1100 if (fvp == tvp) {
[all...]
/freebsd-9.3-release/contrib/bind9/lib/isc/pthreads/
H A Dmutex.c37 #define timevalclear(tvp) ((tvp)->tv_sec = (tvp)->tv_usec = 0)

Completed in 203 milliseconds

1234