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

12

/openbsd-current/lib/libc/gen/
H A Dutime.c38 struct timeval tv[2], *tvp; local
41 tvp = NULL;
46 tvp = tv;
48 return (utimes(path, tvp));
/openbsd-current/lib/libevent/
H A Devutil.h68 #define evutil_timeradd(tvp, uvp, vvp) timeradd((tvp), (uvp), (vvp))
69 #define evutil_timersub(tvp, uvp, vvp) timersub((tvp), (uvp), (vvp))
70 #define evutil_timerclear(tvp) timerclear(tvp)
71 #define evutil_timercmp(tvp, uvp, cmp) timercmp((tvp), (uvp), cmp)
72 #define evutil_timerisset(tvp) timerisset(tvp)
[all...]
/openbsd-current/sys/sys/
H A Dtime.h85 #define timerclear(tvp) (tvp)->tv_sec = (tvp)->tv_usec = 0
86 #define timerisset(tvp) ((tvp)->tv_sec || (tvp)->tv_usec)
87 #define timerisvalid(tvp) \
88 ((tvp)->tv_usec >= 0 && (tvp)->tv_usec < 1000000)
89 #define timercmp(tvp, uv
[all...]
/openbsd-current/usr.sbin/tcpdump/
H A Dutil.c116 ts_print(const struct bpf_timeval *tvp) argument
132 printf("%u.%06u ", tvp->tv_sec, tvp->tv_usec);
135 t = tvp->tv_sec;
137 printf("%s.%06u ", buf, tvp->tv_usec);
141 cur.tv_sec = tvp->tv_sec;
142 cur.tv_usec = tvp->tv_usec;
149 s = (tvp->tv_sec + thiszone) % 86400;
151 s / 3600, (s % 3600) / 60, s % 60, tvp->tv_usec);
/openbsd-current/usr.bin/dig/lib/isc/unix/
H A Dapp.c147 struct timeval tv, *tvp; local
156 tvp = &tv;
161 tvp = NULL;
170 tvp = &tv;
175 n = isc_socketmgr_waitevents(ctx->socketmgr, tvp, &swait);
/openbsd-current/sys/tmpfs/
H A Dtmpfs_vnops.c1199 * and tvp (to-leaf), if exists (NULL if not).
1204 * => Both tdvp and tvp are referenced and locked. It is our responsibility
1276 struct vnode *tvp = ap->a_tvp; local
1304 (tvp != NULL && (fvp->v_mount != tvp->v_mount))) {
1314 KASSERT((tvp == NULL) || (VOP_ISLOCKED(tvp) == LK_EXCLUSIVE));
1335 if ((tvp != NULL) && (tvp != tdvp))
1336 VOP_UNLOCK(tvp);
1382 struct vnode *fvp, *tvp; local
1668 struct vnode *fvp, *tvp; local
1779 struct vnode *fvp, *tvp; local
1842 tmpfs_rename_exit(struct tmpfs_mount *tmpfs, struct vnode *fdvp, struct vnode *fvp, struct vnode *tdvp, struct vnode *tvp) argument
2176 tmpfs_rename_attachdetach(struct tmpfs_mount *tmpfs, struct vnode *fdvp, struct tmpfs_dirent *fde, struct vnode *fvp, struct vnode *tdvp, struct tmpfs_dirent *tde, struct vnode *tvp) argument
2505 tmpfs_rename_cache_purge(struct vnode *fdvp, struct vnode *fvp, struct vnode *tdvp, struct vnode *tvp) argument
2544 struct vnode *tvp = ap->a_tvp; local
[all...]
/openbsd-current/sys/ufs/ext2fs/
H A Dext2fs_vnops.c494 struct vnode *tvp = ap->a_tvp; local
516 (tvp && (fvp->v_mount != tvp->v_mount))) {
520 if (tdvp == tvp)
524 if (tvp)
525 vput(tvp);
535 if (tvp && ((VTOI(tvp)->i_e2fs_flags & (EXT2_IMMUTABLE | EXT2_APPEND)) ||
540 if (fvp == tvp) {
549 vput(tvp);
876 struct vnode *tvp; local
1142 struct vnode *tvp; local
[all...]
/openbsd-current/sys/ufs/ufs/
H A Dufs_vnops.c685 struct vnode *tvp = ap->a_tvp; local
705 (tvp && (fvp->v_mount != tvp->v_mount))) {
709 if (tdvp == tvp)
713 if (tvp)
714 vput(tvp);
721 if (tvp && ((DIP(VTOI(tvp), flags) & (IMMUTABLE | APPEND)) ||
734 if (fvp == tvp) {
748 vput(tvp);
1090 struct vnode *tvp; local
1716 struct vnode *tvp; local
[all...]
H A Dufs_lookup.c674 ufs_direnter(struct vnode *dvp, struct vnode *tvp, struct direct *dirp, argument
845 if (tvp != NULL)
846 VOP_UNLOCK(tvp);
852 if (tvp != NULL)
853 vn_lock(tvp, LK_EXCLUSIVE | LK_RETRY);
/openbsd-current/lib/libc/sys/
H A Dmicrotime.c97 _microtime(struct timeval *tvp, struct timekeep *tk) argument
103 BINTIME_TO_TIMEVAL(&bt, tvp);
/openbsd-current/usr.bin/kdump/
H A Dktrstruct.c252 print_timeval(const struct timeval *tvp, int relative) argument
254 print_time(tvp->tv_sec, relative, tvp->tv_usec);
255 if (tvp->tv_usec != 0)
256 printf(".%06ld", tvp->tv_sec >= 0 ? tvp->tv_usec :
257 1000000 - tvp->tv_usec);
261 ktrtimeval(const struct timeval *tvp, int relative) argument
264 print_timeval(tvp, relative);
/openbsd-current/usr.sbin/sasyncd/
H A Dmonitor.c158 struct timeval *tvp, tv; local
161 tvp = NULL;
181 if (select(m_state.s + 1, &rfds, NULL, NULL, tvp) == -1) {
198 if (v == 0 && tvp != NULL) {
200 tvp = NULL;
227 tvp = &tv;
/openbsd-current/regress/sys/fifofs/
H A Dfifotest.c318 struct timeval tv, *tvp; local
323 tvp = NULL;
327 tvp = &tv;
352 nready = select(maxfd + 1, rfds, wfds, NULL, tvp);
/openbsd-current/usr.sbin/amd/amd/
H A Dnfs_start.c100 struct timeval *tvp)
133 tvp->tv_sec ? tvp : (struct timeval *) 0);
99 do_select(sigset_t *mask, sigset_t *omask, int fds, fd_set *fdp, struct timeval *tvp) argument
/openbsd-current/usr.sbin/pppd/
H A Dmain.c887 timeleft(tvp)
888 struct timeval *tvp;
894 tvp->tv_sec = callout->c_time.tv_sec - timenow.tv_sec;
895 tvp->tv_usec = callout->c_time.tv_usec - timenow.tv_usec;
896 if (tvp->tv_usec < 0) {
897 tvp->tv_usec += 1000000;
898 tvp->tv_sec -= 1;
900 if (tvp->tv_sec < 0)
901 tvp->tv_sec = tvp
[all...]
/openbsd-current/sys/kern/
H A Dkern_tc.c164 microboottime(struct timeval *tvp) argument
169 BINTIME_TO_TIMEVAL(&bt, tvp);
222 microuptime(struct timeval *tvp) argument
227 BINTIME_TO_TIMEVAL(&bt, tvp);
347 microtime(struct timeval *tvp) argument
352 BINTIME_TO_TIMEVAL(&bt, tvp);
393 getmicrouptime(struct timeval *tvp) argument
402 BINTIME_TO_TIMEVAL(&th->th_offset, tvp);
423 getmicrotime(struct timeval *tvp) argument
432 *tvp
[all...]
H A Dvfs_getcwd.c323 struct vnode *tvp; local
328 tvp = lvp;
331 vput(tvp);
H A Dvfs_syscalls.c2615 const struct timeval *tvp; local
2618 tvp = SCARG(uap, tptr);
2619 if (tvp != NULL) {
2620 error = copyin(tvp, tv, sizeof(tv));
2755 const struct timeval *tvp; local
2758 tvp = SCARG(uap, tptr);
2759 if (tvp != NULL) {
2760 error = copyin(tvp, tv, sizeof(tv));
2972 struct vnode *tvp, *fvp, *tdvp; local
3002 tvp
[all...]
/openbsd-current/sys/msdosfs/
H A Dmsdosfs_vnops.c888 struct vnode *tvp = ap->a_tvp; local
917 (tvp && (fvp->v_mount != tvp->v_mount))) {
921 if (tdvp == tvp)
925 if (tvp)
926 vput(tvp);
936 if (tvp == fvp) {
976 xp = tvp ? VTODE(tvp) : NULL;
1002 vput(tvp);
[all...]
/openbsd-current/usr.sbin/lpr/lpc/
H A Dcmds.c1030 struct timeval tvp[2]; local
1033 tvp[0].tv_sec = tvp[1].tv_sec = --mtime;
1034 tvp[0].tv_usec = tvp[1].tv_usec = 0;
1036 ret = utimes(q->q_name, tvp);
/openbsd-current/bin/ksh/
H A Dc_ksh.c751 struct tbl *tvp; local
757 for (tvp = vp; tvp; tvp = tvp->u.array)
758 if (tvp->flag & ISSET) {
/openbsd-current/sys/miscfs/fuse/
H A Dfuse_vnops.c1226 struct vnode *tvp = ap->a_tvp; local
1247 (tvp && (fvp->v_mount != tvp->v_mount))) {
1251 if (tdvp == tvp)
1255 if (tvp)
1256 vput(tvp);
1266 if (tvp == fvp) {
1336 if (tdvp == tvp)
1340 if (tvp)
1341 vput(tvp);
[all...]
/openbsd-current/usr.sbin/radiusd/
H A Dradiusd_module.c606 struct timeval *tvp = NULL, tv = { 0, 0 }; local
619 tvp = &tv; /* fire immediately */
622 if (event_add(&base->ev, tvp) == -1)
/openbsd-current/sys/nfs/
H A Dnfs_vnops.c1794 struct vnode *tvp = ap->a_tvp; local
1808 (tvp && (fvp->v_mount != tvp->v_mount))) {
1814 * If the tvp exists and is in use, sillyrename it before doing the
1817 if (tvp && tvp->v_usecount > 1 && !VTONFS(tvp)->n_sillyrename &&
1818 tvp->v_type != VDIR && !nfs_sillyrename(tdvp, tvp, tcnp)) {
1819 VN_KNOTE(tvp, NOTE_DELET
[all...]
H A Dnfs_serv.c1584 struct vnode *fvp = NULL, *tvp, *tdvp, *fdirp = NULL; local
1678 tvp = tond.ni_vp;
1679 if (tvp != NULL) {
1680 if (fvp->v_type == VDIR && tvp->v_type != VDIR) {
1683 } else if (fvp->v_type != VDIR && tvp->v_type == VDIR) {
1687 if (tvp->v_type == VDIR && tvp->v_mountedhere) {
1707 if (fvp == tvp && fromnd.ni_dvp == tdvp &&
1714 if (tvp) {
1715 (void)uvm_vnp_uncache(tvp);
[all...]

Completed in 186 milliseconds

12