Home
last modified time | relevance | path

Searched refs:tvp (Results 1 – 25 of 63) sorted by path

123

/illumos-gate/usr/src/boot/sys/sys/
H A Dtime.h247 #define timespecclear(tvp) ((tvp)->tv_sec = (tvp)->tv_nsec = 0) argument
248 #define timespecisset(tvp) ((tvp)->tv_sec || (tvp)->tv_nsec) argument
274 #define timevalclear(tvp) ((tvp)->tv_sec = (tvp)->tv_usec = 0) argument
275 #define timevalisset(tvp) ((tvp)->tv_sec || (tvp)->tv_usec) argument
287 #define timerclear(tvp) ((tvp)->tv_sec = (tvp)->tv_usec = 0) argument
288 #define timerisset(tvp) ((tvp)->tv_sec || (tvp)->tv_usec) argument
289 #define timercmp(tvp, uvp, cmp) \ argument
293 #define timeradd(tvp, uvp, vvp) \ argument
302 #define timersub(tvp, uvp, vvp) \ argument
411 void microuptime(struct timeval *tvp);
[all …]
/illumos-gate/usr/src/cmd/bnu/
H A Dperfstat.c1041 scale60(tvp) in scale60() argument
1042 register struct timeval *tvp; in scale60()
1044 return (tvp->tv_sec * 60 + tvp->tv_usec / 16667);
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/
H A Dmain.c1704 timeleft(tvp) in timeleft() argument
1705 struct timeval *tvp; in timeleft()
1711 tvp->tv_sec = callout->c_time.tv_sec - timenow.tv_sec;
1712 tvp->tv_usec = callout->c_time.tv_usec - timenow.tv_usec;
1713 if (tvp->tv_usec < 0) {
1714 tvp->tv_usec += 1000000;
1715 tvp->tv_sec -= 1;
1717 if (tvp->tv_sec < 0)
1718 tvp->tv_sec = tvp->tv_usec = 0;
1720 return (tvp);
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/rdist/
H A Dserver.c775 struct timeval tvp[2]; in recvf() local
1016 tvp[0].tv_sec = stb.st_atime; /* old atime from target */ in recvf()
1017 tvp[0].tv_usec = 0; in recvf()
1018 tvp[1].tv_sec = mtime; in recvf()
1019 tvp[1].tv_usec = 0; in recvf()
1020 if (utimes(new, tvp) < 0) { in recvf()
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/in.mpathd/
H A Dmpd_probe.c2733 tv2ns(struct timeval *tvp) in tv2ns() argument
2735 return (tvp->tv_sec * NANOSEC + tvp->tv_usec * 1000); in tv2ns()
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop.c612 struct timeval *tvp, int drops, int len) in show_pktinfo() argument
624 tm = localtime(&tvp->tv_sec); in show_pktinfo()
630 (int)tvp->tv_usec / 10); in show_pktinfo()
635 tvp0.tv_sec = tvp->tv_sec; in show_pktinfo()
636 tvp0.tv_usec = tvp->tv_usec; in show_pktinfo()
640 sec = tvp->tv_sec - ptvp->tv_sec; in show_pktinfo()
641 usec = tvp->tv_usec - ptvp->tv_usec; in show_pktinfo()
H A Dsnoop_display.c78 struct timeval *tvp; in process_pkt() local
88 tvp = &hdrp->sbh_timestamp; in process_pkt()
90 ptv = *tvp; in process_pkt()
99 tm = localtime(&tvp->tv_sec); in process_pkt()
103 pi_time_usec = tvp->tv_usec; in process_pkt()
113 show_pktinfo(flags, num, src_name, dst_name, &ptv, tvp, drops, in process_pkt()
124 ptv = *tvp; in process_pkt()
/illumos-gate/usr/src/cmd/fm/fmd/common/
H A Dfmd_protocol.c145 struct timeval *tvp, int injected) in fmd_protocol_list() argument
153 tod[0] = tvp->tv_sec; in fmd_protocol_list()
154 tod[1] = tvp->tv_usec; in fmd_protocol_list()
212 struct timeval *tvp, boolean_t repaired, boolean_t replaced, in fmd_protocol_rsrc_asru() argument
220 tod[0] = tvp->tv_sec; in fmd_protocol_rsrc_asru()
221 tod[1] = tvp->tv_usec; in fmd_protocol_rsrc_asru()
H A Dfmd_time.c39 fmd_time_gettimeofday(struct timeval *tvp) in fmd_time_gettimeofday() argument
41 if (fmd.d_clockops->fto_gettimeofday(tvp, NULL) != 0) in fmd_time_gettimeofday()
254 fmd_simulator_tod(struct timeval *tvp, void *tzp) in fmd_simulator_tod() argument
269 tvp->tv_sec = sec + rem / NANOSEC; in fmd_simulator_tod()
270 tvp->tv_usec = (rem % NANOSEC) / (NANOSEC / MICROSEC); in fmd_simulator_tod()
/illumos-gate/usr/src/cmd/fm/fmdump/common/
H A Dfmdump.c260 struct timeval *tvp = malloc(sizeof (struct timeval)); in gettimeopt() local
265 if (tvp == NULL) in gettimeopt()
317 tvp->tv_sec = nsec / NANOSEC; in gettimeopt()
320 if (tvp->tv_sec > tod.tv_sec) in gettimeopt()
324 tvp->tv_sec = tod.tv_sec - tvp->tv_sec; in gettimeopt()
352 tvp->tv_sec = mktime(&tm); in gettimeopt()
353 tvp->tv_usec = 0; in gettimeopt()
355 if (tvp->tv_sec == -1L && errno != 0) in gettimeopt()
363 tvp->tv_sec -= timezone - altzone; in gettimeopt()
368 tvp->tv_usec = in gettimeopt()
[all …]
/illumos-gate/usr/src/cmd/make/lib/vroot/
H A Dutimes.cc30 extern int utimes(char *file, struct timeval *tvp);
/illumos-gate/usr/src/cmd/mdb/common/mdb/
H A Dmdb_ctf.c636 type_visit_t *tvp = arg; in type_cb() local
643 if (depth < tvp->tv_min_depth) in type_cb()
646 off += tvp->tv_base_offset; in type_cb()
647 depth += tvp->tv_base_depth; in type_cb()
649 set_ctf_id(&id, tvp->tv_fp, type); in type_cb()
652 if ((ret = tvp->tv_cb(name, id, base, off, depth, tvp->tv_arg)) != 0) in type_cb()
660 if (basep->mci_fp != tvp->tv_fp && mdb_ctf_type_valid(base)) { in type_cb()
663 tv.tv_cb = tvp->tv_cb; in type_cb()
664 tv.tv_arg = tvp->tv_arg; in type_cb()
/illumos-gate/usr/src/cmd/sendmail/include/sm/
H A Dtime.h21 # define timersub(tvp, uvp, vvp) \ argument
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) \ argument
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) \ argument
50 (((tvp)->tv_sec == (uvp)->tv_sec) ? \
51 ((tvp)->tv_usec cmp (uvp)->tv_usec) : \
52 ((tvp)->tv_sec cmp (uvp)->tv_sec))
/illumos-gate/usr/src/cmd/svc/svcs/
H A Dsvcs.c562 struct timeval *tvp, int ok_if_empty) in get_restarter_time_prop() argument
567 tvp, 0, ok_if_empty ? EMPTY_OK : 0, 0, 1); in get_restarter_time_prop()
/illumos-gate/usr/src/head/rpcsvc/
H A Drstat.x74 %xdr_timeval(XDR *xdrs, struct timeval *tvp)
76 %xdr_timeval(xdrs, tvp)
78 % struct timeval *tvp;
81 % return (xdr_rstat_timeval(xdrs, (rstat_timeval *)tvp));
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/os/
H A Dsendto_kdc.c569 static int getcurtime (struct timeval *tvp) in getcurtime() argument
574 tvp->tv_sec = tb.time; in getcurtime()
575 tvp->tv_usec = tb.millitm * 1000; in getcurtime()
579 if (gettimeofday(tvp, 0)) { in getcurtime()
/illumos-gate/usr/src/lib/libkmf/libkmf/common/
H A Drdn_parser.c638 ava_to_string(KMF_X509_TYPE_VALUE_PAIR *tvp, custr_t *str) in ava_to_string() argument
641 KMF_OID *rdn_oid = &tvp->type; in ava_to_string()
677 switch (tvp->valueType) { in ava_to_string()
683 ret = value_to_string(&tvp->value, str); in ava_to_string()
688 ret = binvalue_to_string(&tvp->value, str); in ava_to_string()
/illumos-gate/usr/src/lib/libldap5/sources/ldap/common/
H A Dos-ip.c1542 struct timeval tv, *tvp; local
1579 tvp = NULL;
1583 tvp = &tv;
1585 rc = iofns->liof_select( maxfd, &readfds, &writefds, NULL, tvp );
H A Dresult.c273 struct timeval tv, *tvp; local
333 tvp = NULL;
336 tvp = &tv;
368 rc = nsldapi_iostatus_poll( ld, tvp );
459 if ( rc == -2 && tvp != NULL ) {
/illumos-gate/usr/src/lib/libresolv2/common/bsd/
H A Dgettimeofday.c43 gettimeofday(struct timeval *tvp, struct _TIMEZONE *tzp) { in gettimeofday() argument
48 if (tvp) { in gettimeofday()
49 tvp->tv_sec = clock; in gettimeofday()
50 tvp->tv_usec = 0; in gettimeofday()
H A Dutimes.c31 __utimes(char *filename, struct timeval *tvp) { in __utimes() argument
34 utb.actime = (time_t)tvp[0].tv_sec; in __utimes()
35 utb.modtime = (time_t)tvp[1].tv_sec; in __utimes()
/illumos-gate/usr/src/lib/libresolv2/common/isc/
H A Deventlib.c747 struct timeval *tvp = NULL; in pselect() local
755 tvp = &tv; in pselect()
761 n = select(nfds, rfds, wfds, efds, tvp); in pselect()
/illumos-gate/usr/src/lib/libresolv2/common/resolv/
H A Dres_send.c1123 struct timeval tv, *tvp; in pselect() local
1128 tvp = &tv; in pselect()
1131 tvp = NULL; in pselect()
1134 n = select(nfds, rfds, wfds, efds, tvp); in pselect()
/illumos-gate/usr/src/lib/libresolv2/include/
H A Dport_after.h418 int isc__gettimeofday(struct timeval *tvp, struct _TIMEZONE *tzp);
/illumos-gate/usr/src/lib/smbsrv/libfksmbsrv/common/
H A Dfake_lookup.c173 vnode_t *tvp; /* addressable temp ptr */ in lookuppnvp() local
312 error = VOP_LOOKUP(vp, component, &tvp, pnp, lookup_flags, in lookuppnvp()
330 error = VOP_LOOKUP(vp, component, &tvp, pnp, lookup_flags, in lookuppnvp()
333 cvp = tvp; in lookuppnvp()
366 tvp = cvp; in lookuppnvp()
367 if ((error = traverse(&tvp)) != 0) { in lookuppnvp()
376 cvp = tvp; in lookuppnvp()
379 cvp = tvp; in lookuppnvp()
583 vnode_t *tvp; in traverse() local
612 error = VFS_ROOT(vfsp, &tvp); in traverse()
[all …]

123