/netbsd-current/external/bsd/tcpdump/dist/ |
H A D | timeval-operations.h | 36 #define netdissect_timevalclear(tvp) ((tvp)->tv_sec = (tvp)->tv_usec = 0) 38 #define netdissect_timevalisset(tvp) ((tvp)->tv_sec || (tvp)->tv_usec) 40 #define netdissect_timevalcmp(tvp, uvp, cmp) \ 41 (((tvp)->tv_sec == (uvp)->tv_sec) ? \ 42 ((tvp)->tv_usec cmp (uvp)->tv_usec) : \ 43 ((tvp) [all...] |
/netbsd-current/external/bsd/libbind/dist/bsd/ |
H A D | utimes.c | 33 __utimes(char *filename, struct timeval *tvp) { argument 36 utb.actime = (time_t)tvp[0].tv_sec; 37 utb.modtime = (time_t)tvp[1].tv_sec;
|
H A D | gettimeofday.c | 49 gettimeofday(struct timeval *tvp, struct _TIMEZONE *tzp) { argument 54 if (tvp) { 55 tvp->tv_sec = clock; 56 tvp->tv_usec = 0;
|
/netbsd-current/games/tetris/ |
H A D | input.c | 65 * Do a `read wait': poll for reading from stdin, with timeout *tvp. 66 * On return, modify *tvp to reflect the amount of time spent waiting. 70 * If tvp is nil, wait forever, but return if poll is interrupted. 75 rwait(struct timeval *tvp) argument 82 if (tvp) { 84 endtv = *tvp; 85 timeout = tvp->tv_sec * 1000 + tvp->tv_usec / 1000; 94 if (tvp == 0) 102 if (tvp) { [all...] |
/netbsd-current/lib/libc/gen/ |
H A D | utime.c | 52 struct timeval tv[2], *tvp; local 57 tvp = NULL; 62 tvp = tv; 64 return (utimes(path, tvp));
|
/netbsd-current/lib/libc/compat/gen/ |
H A D | compat_utime.c | 64 struct timeval tv[2], *tvp; local 69 tvp = NULL; 74 tvp = tv; 76 return __utimes50(path, tvp);
|
/netbsd-current/usr.bin/rump_dhcpclient/ |
H A D | common.h | 37 #define timernorm(tvp) \ 39 while ((tvp)->tv_usec >= 1000000) { \ 40 (tvp)->tv_sec++; \ 41 (tvp)->tv_usec -= 1000000; \
|
/netbsd-current/lib/libc/compat/sys/ |
H A D | compat_settimeofday.c | 60 const void * __restrict tvp) 64 return __settimeofday50(&tv, tvp);
|
/netbsd-current/usr.bin/audio/common/ |
H A D | decode.c | 77 decode_time(const char *arg, struct timeval *tvp) argument 86 tvp->tv_sec = tvp->tv_usec = 0; 93 tvp->tv_sec = first * 60; /* minutes */ 99 tvp->tv_sec += first; /* minutes and hours */ 100 tvp->tv_sec *= 60; 114 tvp->tv_usec += base * (dot[i] - '0'); 118 tvp->tv_sec += first;
|
/netbsd-current/sys/miscfs/genfs/ |
H A D | genfs_rename.c | 144 * . tvp (to vnode, or NULL), and 151 * . fdvp, fvp, tdvp, and tvp are referenced, 153 * . tdvp and tvp (if nonnull) are locked. 157 * . fdvp, fvp, tdvp, and tvp (if nonnull) are unreferenced, and 158 * . tdvp and tvp (if nonnull) are unlocked. 178 struct vnode *tvp = ap->a_tvp; local 193 KASSERT((tvp == NULL) || (VOP_ISLOCKED(tvp) == LK_EXCLUSIVE)); 214 if ((tvp != NULL) && (tvp ! 249 struct vnode *fvp = NULL, *tvp = NULL; local 391 genfs_rename_knote(struct vnode *fdvp, struct vnode *fvp, struct vnode *tdvp, struct vnode *tvp, nlink_t tvp_new_nlink) argument 443 genfs_rename_cache_purge(struct vnode *fdvp, struct vnode *fvp, struct vnode *tdvp, struct vnode *tvp) argument 554 struct vnode *fvp, *tvp; local 661 struct vnode *fvp, *tvp; local 970 genfs_rename_exit(const struct genfs_rename_ops *ops, struct mount *mp, struct vnode *fdvp, struct vnode *fvp, struct vnode *tdvp, struct vnode *tvp) argument 1083 genfs_ufslike_rename_check_permitted(kauth_cred_t cred, struct vnode *fdvp, mode_t fdmode, uid_t fduid, struct vnode *fvp, uid_t fuid, struct vnode *tdvp, mode_t tdmode, uid_t tduid, struct vnode *tvp, uid_t tuid) argument [all...] |
/netbsd-current/sys/kern/ |
H A D | kern_todr.c | 349 struct timeval *tvp) 355 clock_secs_to_ymdhms(tvp->tv_sec, &dt_val); 358 if (tvp == NULL) { 359 tvp = &tv_val; 360 tvp->tv_sec = clock_ymdhms_to_secs(dt); 361 tvp->tv_usec = 0; 369 dt->dt_wday, (unsigned)tvp->tv_sec, (unsigned)tvp->tv_usec); 372 #define todr_debug(prefix, rv, dt, tvp) 401 todr_gettime(todr_chip_handle_t tch, struct timeval *tvp) argument 348 todr_debug(const char *prefix, int rv, struct clock_ymdhms *dt, struct timeval *tvp) argument 459 todr_settime(todr_chip_handle_t tch, struct timeval *tvp) argument [all...] |
/netbsd-current/sys/fs/tmpfs/ |
H A D | tmpfs_rename.c | 136 struct vnode *tdvp, struct vnode *tvp) 145 KASSERT(fdvp != tvp); 147 KASSERT(tdvp != tvp); 148 KASSERT(fvp != tvp); 154 KASSERT((tvp == NULL) || (tvp->v_mount == mp)); 158 KASSERT((tvp == NULL) || (VOP_ISLOCKED(tvp) == LK_EXCLUSIVE)); 163 (tvp? VP_TO_TMPFS_NODE(tvp) 134 tmpfs_gro_rename_check_possible(struct mount *mp, struct vnode *fdvp, struct vnode *fvp, struct vnode *tdvp, struct vnode *tvp) argument 172 tmpfs_gro_rename_check_permitted(struct mount *mp, kauth_cred_t cred, struct vnode *fdvp, struct vnode *fvp, struct vnode *tdvp, struct vnode *tvp) argument 263 tmpfs_gro_rename(struct mount *mp, kauth_cred_t cred, struct vnode *fdvp, struct componentname *fcnp, void *fde, struct vnode *fvp, struct vnode *tdvp, struct componentname *tcnp, void *tde, struct vnode *tvp, nlink_t *tvp_nlinkp) argument [all...] |
/netbsd-current/crypto/external/bsd/heimdal/dist/lib/krb5/ |
H A D | net_write.c | 57 struct timeval tv, *tvp; local 70 tvp = &tv; 72 tvp = NULL; 74 ret = select(fd + 1, NULL, &wfds, NULL, tvp);
|
/netbsd-current/sys/netinet/ |
H A D | sctputil.h | 251 #define timerclear(tvp) (tvp)->tv_sec = (tvp)->tv_usec = 0 252 #define timerisset(tvp) ((tvp)->tv_sec || (tvp)->tv_usec) 253 #define timercmp(tvp, uvp, cmp) \ 254 (((tvp)->tv_sec == (uvp)->tv_sec) ? \ 255 ((tvp)->tv_usec cmp (uvp)->tv_usec) : \ 256 ((tvp) [all...] |
/netbsd-current/sys/ufs/lfs/ |
H A D | lfs_rename.c | 156 struct vnode *tdvp, struct vnode *tvp) 165 KASSERT(fdvp != tvp); 167 KASSERT(tdvp != tvp); 168 KASSERT(fvp != tvp); 174 KASSERT((tvp == NULL) || (tvp->v_mount == mp)); 178 KASSERT((tvp == NULL) || (VOP_ISLOCKED(tvp) == LK_EXCLUSIVE)); 182 VTOI(tdvp)->i_flags, (tvp? VTOI(tvp) 154 ulfs_gro_rename_check_possible(struct mount *mp, struct vnode *fdvp, struct vnode *fvp, struct vnode *tdvp, struct vnode *tvp) argument 192 ulfs_gro_rename_check_permitted(struct mount *mp, kauth_cred_t cred, struct vnode *fdvp, struct vnode *fvp, struct vnode *tdvp, struct vnode *tvp) argument 728 ulfs_gro_rename(struct mount *mp, kauth_cred_t cred, struct vnode *fdvp, struct componentname *fcnp, void *fde, struct vnode *fvp, struct vnode *tdvp, struct componentname *tcnp, void *tde, struct vnode *tvp, nlink_t *tvp_nlinkp) argument 1011 lfs_gro_rename(struct mount *mp, kauth_cred_t cred, struct vnode *fdvp, struct componentname *fcnp, void *fde, struct vnode *fvp, struct vnode *tdvp, struct componentname *tcnp, void *tde, struct vnode *tvp, nlink_t *tvp_nlinkp) argument [all...] |
/netbsd-current/sys/arch/vax/vax/ |
H A D | clock.c | 161 vax_gettime(todr_chip_handle_t handle, struct timeval *tvp) argument 163 tvp->tv_sec = handle->base_time; 164 return (*dep_call->cpu_gettime)(tvp); 168 vax_settime(todr_chip_handle_t handle, struct timeval *tvp) argument 170 (*dep_call->cpu_settime)(tvp); 216 generic_gettime(struct timeval *tvp) argument 231 tvp->tv_sec = yeartonum(numtoyear(tvp->tv_sec)) + (klocka - TODRBASE) / 100; 239 generic_settime(struct timeval *tvp) argument 241 unsigned tid = tvp 258 chip_gettime(struct timeval *tvp) argument 295 chip_settime(struct timeval *tvp) argument [all...] |
/netbsd-current/sys/arch/arm/at91/ |
H A D | at91st.c | 283 microtime(register struct timeval *tvp) argument 292 tvp->tv_sec = 0; 293 tvp->tv_usec = 0; 304 *tvp = time; 308 tvp->tv_usec += at91st_count_to_usec(AT91ST_DIVIDER - current_count); 311 while (__predict_false(tvp->tv_usec >= 1000000)) 313 tvp->tv_usec -= 1000000; 314 tvp->tv_sec++; 319 if (__predict_false(tvp->tv_sec == lasttv.tv_sec && tvp [all...] |
/netbsd-current/external/bsd/ntp/dist/sntp/libevent/include/event2/ |
H A D | util.h | 488 #define evutil_timeradd(tvp, uvp, vvp) timeradd((tvp), (uvp), (vvp)) 489 #define evutil_timersub(tvp, uvp, vvp) timersub((tvp), (uvp), (vvp)) 491 #define evutil_timeradd(tvp, uvp, vvp) \ 493 (vvp)->tv_sec = (tvp)->tv_sec + (uvp)->tv_sec; \ 494 (vvp)->tv_usec = (tvp)->tv_usec + (uvp)->tv_usec; \ 500 #define evutil_timersub(tvp, uvp, vvp) \ 502 (vvp)->tv_sec = (tvp)->tv_sec - (uvp)->tv_sec; \ 503 (vvp)->tv_usec = (tvp) [all...] |
/netbsd-current/external/bsd/libevent/dist/include/event2/ |
H A D | util.h | 531 #define evutil_timeradd(tvp, uvp, vvp) timeradd((tvp), (uvp), (vvp)) 532 #define evutil_timersub(tvp, uvp, vvp) timersub((tvp), (uvp), (vvp)) 534 #define evutil_timeradd(tvp, uvp, vvp) \ 536 (vvp)->tv_sec = (tvp)->tv_sec + (uvp)->tv_sec; \ 537 (vvp)->tv_usec = (tvp)->tv_usec + (uvp)->tv_usec; \ 543 #define evutil_timersub(tvp, uvp, vvp) \ 545 (vvp)->tv_sec = (tvp)->tv_sec - (uvp)->tv_sec; \ 546 (vvp)->tv_usec = (tvp) [all...] |
/netbsd-current/external/gpl3/gcc/dist/gcc/d/dmd/ |
H A D | templateparamsem.d | 76 override void visit(TemplateValueParameter tvp) 78 tvp.valType = tvp.valType.typeSemantic(tvp.loc, sc); 82 if (tvp.specValue) 84 Expression e = tvp.specValue; 88 e = e.implicitCastTo(sc, tvp.valType); 92 tvp.specValue = e; 95 if (tvp.defaultValue) 101 e = e.implicitCastTo(sc, tvp [all...] |
/netbsd-current/sys/sys/ |
H A D | time.h | 71 #define timerclear(tvp) (tvp)->tv_sec = (tvp)->tv_usec = 0L 72 #define timerisset(tvp) ((tvp)->tv_sec || (tvp)->tv_usec) 73 #define timercmp(tvp, uvp, cmp) \ 74 (((tvp)->tv_sec == (uvp)->tv_sec) ? \ 75 ((tvp)->tv_usec cmp (uvp)->tv_usec) : \ 76 ((tvp) [all...] |
/netbsd-current/sys/fs/udf/ |
H A D | udf_rename.c | 161 struct vnode *tdvp, struct vnode *tvp) 169 KASSERT(fdvp != tvp); 171 KASSERT(tdvp != tvp); 172 KASSERT(fvp != tvp); 178 KASSERT((tvp == NULL) || (tvp->v_mount == mp)); 182 KASSERT((tvp == NULL) || (VOP_ISLOCKED(tvp) == LK_EXCLUSIVE)); 198 struct vnode *tdvp, struct vnode *tvp) 203 struct udf_node *t_node = (tvp 159 udf_gro_rename_check_possible(struct mount *mp, struct vnode *fdvp, struct vnode *fvp, struct vnode *tdvp, struct vnode *tvp) argument 196 udf_gro_rename_check_permitted(struct mount *mp, kauth_cred_t cred, struct vnode *fdvp, struct vnode *fvp, struct vnode *tdvp, struct vnode *tvp) argument 320 udf_gro_rename(struct mount *mp, kauth_cred_t cred, struct vnode *fdvp, struct componentname *fcnp, void *fde, struct vnode *fvp, struct vnode *tdvp, struct componentname *tcnp, void *tde, struct vnode *tvp, nlink_t *tvp_nlinkp) argument [all...] |
/netbsd-current/sys/ufs/ufs/ |
H A D | ufs_rename.c | 147 struct vnode *tdvp, struct vnode *tvp) 156 KASSERT(fdvp != tvp); 158 KASSERT(tdvp != tvp); 159 KASSERT(fvp != tvp); 165 KASSERT((tvp == NULL) || (tvp->v_mount == mp)); 169 KASSERT((tvp == NULL) || (VOP_ISLOCKED(tvp) == LK_EXCLUSIVE)); 173 VTOI(tdvp)->i_flags, (tvp? VTOI(tvp) 145 ufs_gro_rename_check_possible(struct mount *mp, struct vnode *fdvp, struct vnode *fvp, struct vnode *tdvp, struct vnode *tvp) argument 183 ufs_gro_rename_check_permitted(struct mount *mp, kauth_cred_t cred, struct vnode *fdvp, struct vnode *fvp, struct vnode *tdvp, struct vnode *tvp) argument 281 ufs_gro_rename(struct mount *mp, kauth_cred_t cred, struct vnode *fdvp, struct componentname *fcnp, void *fde, struct vnode *fvp, struct vnode *tdvp, struct componentname *tcnp, void *tde, struct vnode *tvp, nlink_t *tvp_nlinkp) argument [all...] |
/netbsd-current/sys/ufs/ext2fs/ |
H A D | ext2fs_rename.c | 146 struct vnode *tdvp, struct vnode *tvp) 155 KASSERT(fdvp != tvp); 157 KASSERT(tdvp != tvp); 158 KASSERT(fvp != tvp); 164 KASSERT((tvp == NULL) || (tvp->v_mount == mp)); 168 KASSERT((tvp == NULL) || (VOP_ISLOCKED(tvp) == LK_EXCLUSIVE)); 172 VTOI(tdvp)->i_e2fs_flags, (tvp? VTOI(tvp) 144 ext2fs_gro_rename_check_possible(struct mount *mp, struct vnode *fdvp, struct vnode *fvp, struct vnode *tdvp, struct vnode *tvp) argument 182 ext2fs_gro_rename_check_permitted(struct mount *mp, kauth_cred_t cred, struct vnode *fdvp, struct vnode *fvp, struct vnode *tdvp, struct vnode *tvp) argument 271 ext2fs_gro_rename(struct mount *mp, kauth_cred_t cred, struct vnode *fdvp, struct componentname *fcnp, void *fde, struct vnode *fvp, struct vnode *tdvp, struct componentname *tcnp, void *tde, struct vnode *tvp, nlink_t *tvp_nlinkp) argument [all...] |
/netbsd-current/sys/dev/dec/ |
H A D | mcclock.c | 152 mcclock_get(todr_chip_handle_t tch, struct timeval *tvp) argument 184 tvp->tv_sec = yearsecs + clock_ymdhms_to_secs(&dt); 185 if (tvp->tv_sec > tch->base_time - 2 * SECS_PER_DAY) 190 tvp->tv_usec = 0; 198 mcclock_set(todr_chip_handle_t tch, struct timeval *tvp) argument 209 clock_secs_to_ymdhms(tvp->tv_sec, &dt); /* get the year */ 215 yearsecs = tvp->tv_sec - clock_ymdhms_to_secs(&dt);
|