Home
last modified time | relevance | path

Searched refs:tvp (Results 1 – 25 of 61) sorted by relevance

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/uts/common/sys/
H A Dtime.h128 #define timerisset(tvp) ((tvp)->tv_sec || (tvp)->tv_usec) argument
129 #define timercmp(tvp, uvp, cmp) \ argument
130 (((tvp)->tv_sec == (uvp)->tv_sec) ? \
136 #define timerclear(tvp) (tvp)->tv_sec = (tvp)->tv_usec = 0 argument
144 #define timeradd(tvp, uvp, vvp) \ argument
155 #define timersub(tvp, uvp, vvp) \ argument
167 #define timeradd(tvp, uvp, vvp) \
179 #define timersub(tvp, uvp, vvp) \
306 (tvp)->tv_usec = TICK_TO_USEC(__tmptck - SEC_TO_TICK((tvp)->tv_sec)); \
329 #define TIMEVAL_TO_TICK(tvp) \ argument
[all …]
H A Dtimer.h135 #define timerspecisset(tvp) ((tvp)->tv_sec || (tvp)->tv_nsec) argument
136 #define timerspeccmp(tvp, uvp) (((tvp)->tv_sec - (uvp)->tv_sec) ? \ argument
137 ((tvp)->tv_sec - (uvp)->tv_sec):((tvp)->tv_nsec - (uvp)->tv_nsec))
138 #define timerspecclear(tvp) ((tvp)->tv_sec = (tvp)->tv_nsec = 0) argument
/illumos-gate/usr/src/cmd/sendmail/include/sm/
H A Dtime.h23 # define timersub(tvp, uvp, vvp) \ argument
26 (vvp)->tv_sec = (tvp)->tv_sec - (uvp)->tv_sec; \
27 (vvp)->tv_usec = (tvp)->tv_usec - (uvp)->tv_usec; \
37 # define timeradd(tvp, uvp, vvp) \ argument
40 (vvp)->tv_sec = (tvp)->tv_sec + (uvp)->tv_sec; \
41 (vvp)->tv_usec = (tvp)->tv_usec + (uvp)->tv_usec; \
51 # define timercmp(tvp, uvp, cmp) \ argument
52 (((tvp)->tv_sec == (uvp)->tv_sec) ? \
53 ((tvp)->tv_usec cmp (uvp)->tv_usec) : \
54 ((tvp)->tv_sec cmp (uvp)->tv_sec))
/illumos-gate/usr/src/uts/common/fs/hsfs/
H A Dhsfs_subr.c160 hs_parse_dirdate(dp, tvp) in hs_parse_dirdate() argument
162 struct timeval *tvp;
174 tvp->tv_usec = 0;
176 tvp->tv_sec = 0;
179 if (tvp->tv_sec != -1) {
197 hs_parse_longdate(dp, tvp) in hs_parse_longdate() argument
199 struct timeval *tvp;
211 tvp->tv_usec = 0;
213 tvp->tv_sec = 0;
216 if (tvp->tv_sec != -1) {
[all …]
/illumos-gate/usr/src/lib/smbsrv/libfksmbsrv/common/
H A Dfake_lookup.c87 vnode_t *tvp; /* addressable temp ptr */ in lookuppnvp() local
226 error = VOP_LOOKUP(vp, component, &tvp, pnp, lookup_flags, in lookuppnvp()
244 error = VOP_LOOKUP(vp, component, &tvp, pnp, lookup_flags, in lookuppnvp()
247 cvp = tvp; in lookuppnvp()
280 tvp = cvp; in lookuppnvp()
281 if ((error = traverse(&tvp)) != 0) { in lookuppnvp()
290 cvp = tvp; in lookuppnvp()
293 cvp = tvp; in lookuppnvp()
497 vnode_t *tvp; in traverse() local
526 error = VFS_ROOT(vfsp, &tvp); in traverse()
[all …]
/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/head/rpcsvc/
H A Drstat.x76 %xdr_timeval(XDR *xdrs, struct timeval *tvp)
78 %xdr_timeval(xdrs, tvp)
80 % struct timeval *tvp;
83 % return (xdr_rstat_timeval(xdrs, (rstat_timeval *)tvp));
/illumos-gate/usr/src/uts/common/fs/smbclnt/netsmb/
H A Dsmb_osdep.h101 #define timespeccmp(tvp, uvp, cmp) \ argument
102 (((tvp)->tv_sec == (uvp)->tv_sec) ? \
103 ((tvp)->tv_nsec cmp (uvp)->tv_nsec) : \
104 ((tvp)->tv_sec cmp (uvp)->tv_sec))
/illumos-gate/usr/src/uts/common/syscall/
H A Dlwp_info.c48 lwp_info(timestruc_t *tvp) in lwp_info() argument
64 if (copyout(tv, tvp, sizeof (tv))) in lwp_info()
76 if (copyout(tv32, tvp, sizeof (tv32))) in lwp_info()
/illumos-gate/usr/src/uts/common/fs/nfs/
H A Dnfs4_srv_ns.c916 vnode_t *tvp, *nextvp; in untraverse() local
918 tvp = vp; in untraverse()
920 if (!(tvp->v_flag & VROOT) && !VN_CMP(tvp, zone_rootvp)) in untraverse()
924 vfs_lock_wait(tvp->v_vfsp); in untraverse()
926 if ((nextvp = tvp->v_vfsp->vfs_vnodecovered) == NULL) { in untraverse()
927 vfs_unlock(tvp->v_vfsp); in untraverse()
941 vfs_unlock(tvp->v_vfsp); in untraverse()
942 VN_RELE(tvp); in untraverse()
943 tvp = nextvp; in untraverse()
946 return (tvp); in untraverse()
H A Dnfs3_srv.c1730 VN_RELE(tvp); in rfs3_create()
1731 tvp = NULL; in rfs3_create()
1882 if (tvp != NULL) { in rfs3_create()
1885 VN_RELE(tvp); in rfs3_create()
1913 if (tvp != NULL) { in rfs3_create()
1916 VN_RELE(tvp); in rfs3_create()
2740 vnode_t *tvp; in rfs3_rename() local
2762 tvp = NULL; in rfs3_rename()
2808 if (tvp == NULL) { in rfs3_rename()
2957 if (tvp != NULL) in rfs3_rename()
[all …]
/illumos-gate/usr/src/uts/common/fs/lofs/
H A Dlofs_vnops.c303 vnode_t *vp = NULL, *tvp = NULL, *nonlovp; in lo_lookup() local
391 error = VFS_ROOT(vfsp, &tvp); in lo_lookup()
397 if ((tvp == li->li_rootvp) && (vp == realvp(tvp))) { in lo_lookup()
408 *vpp = tvp; in lo_lookup()
434 VN_RELE(tvp); in lo_lookup()
505 tvp = vp; in lo_lookup()
508 VN_RELE(tvp); in lo_lookup()
601 vp = tvp; /* possibly is an autonode */ in lo_lookup()
614 VN_RELE(tvp); in lo_lookup()
615 error = VFS_ROOT(vp->v_vfsp, &tvp); in lo_lookup()
[all …]
/illumos-gate/usr/src/cmd/fm/fmd/common/
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()
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()
/illumos-gate/usr/src/stand/lib/fs/hsfs/
H A Dhsfsops.c1081 hs_parse_dirdate(uchar_t *dp, struct timeval *tvp) in hs_parse_dirdate() argument
1093 tvp->tv_usec = 0; in hs_parse_dirdate()
1095 tvp->tv_sec = 0; in hs_parse_dirdate()
1098 if (tvp->tv_sec != -1) { in hs_parse_dirdate()
1099 tvp->tv_sec += ((hour * 60) + minute) * 60 + sec; in hs_parse_dirdate()
1116 hs_parse_longdate(uchar_t *dp, struct timeval *tvp) in hs_parse_longdate() argument
1128 tvp->tv_usec = 0; in hs_parse_longdate()
1130 tvp->tv_sec = 0; in hs_parse_longdate()
1133 if (tvp->tv_sec != -1) { in hs_parse_longdate()
1134 tvp->tv_sec += ((hour * 60) + minute) * 60 + sec; in hs_parse_longdate()
[all …]
/illumos-gate/usr/src/uts/common/os/
H A Dtimers.c65 #define TVTSCMP(tvp, tsp, cmp) \ argument
67 ((tvp)->tv_sec cmp (tsp)->tv_sec || \
68 ((tvp)->tv_sec == (tsp)->tv_sec && \
70 (tvp)->tv_usec * 1000 cmp (tsp)->tv_nsec))
1258 tv2hrt(struct timeval *tvp) in tv2hrt() argument
1260 return ((hrtime_t)tvp->tv_sec * NANOSEC + in tv2hrt()
1261 (hrtime_t)tvp->tv_usec * (NANOSEC / MICROSEC)); in tv2hrt()
1265 hrt2tv(hrtime_t hrt, struct timeval *tvp) in hrt2tv() argument
1271 tvp->tv_sec = hrt / NANOSEC; in hrt2tv()
1294 tvp->tv_sec = (time_t)sec; in hrt2tv()
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/
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()
H A Dsnoop.c551 struct timeval *tvp, int drops, int len) in show_pktinfo() argument
563 tm = localtime(&tvp->tv_sec); in show_pktinfo()
569 (int)tvp->tv_usec / 10); in show_pktinfo()
574 tvp0.tv_sec = tvp->tv_sec; in show_pktinfo()
575 tvp0.tv_usec = tvp->tv_usec; in show_pktinfo()
579 sec = tvp->tv_sec - ptvp->tv_sec; in show_pktinfo()
580 usec = tvp->tv_usec - ptvp->tv_usec; in show_pktinfo()
/illumos-gate/usr/src/cmd/fm/fmdump/common/
H A Dfmdump.c255 struct timeval *tvp = malloc(sizeof (struct timeval)); in gettimeopt() local
260 if (tvp == NULL) in gettimeopt()
312 tvp->tv_sec = nsec / NANOSEC; in gettimeopt()
315 if (tvp->tv_sec > tod.tv_sec) in gettimeopt()
319 tvp->tv_sec = tod.tv_sec - tvp->tv_sec; in gettimeopt()
347 tvp->tv_sec = mktime(&tm); in gettimeopt()
348 tvp->tv_usec = 0; in gettimeopt()
350 if (tvp->tv_sec == -1L && errno != 0) in gettimeopt()
358 tvp->tv_sec -= timezone - altzone; in gettimeopt()
363 tvp->tv_usec = in gettimeopt()
[all …]
/illumos-gate/usr/src/uts/common/sys/fs/
H A Dhsfs_impl.h75 extern void hs_parse_dirdate(uchar_t *dp, struct timeval *tvp);
76 extern void hs_parse_longdate(uchar_t *dp, struct timeval *tvp);
/illumos-gate/usr/src/uts/common/fs/portfs/
H A Dport_fop.c1363 vnode_t *tvp, *tdvp; in port_associate_fop() local
1398 tvp = NULL; in port_associate_fop()
1401 if (tvp != NULL) { in port_associate_fop()
1402 tvp = port_resolve_vp(tvp); in port_associate_fop()
1407 VN_RELE(tvp); in port_associate_fop()
1411 if (error || tvp == NULL || tvp != vp) { in port_associate_fop()
1443 tdvp = tvp = NULL; in port_associate_fop()
1453 if (tvp != NULL) in port_associate_fop()
1454 VN_RELE(tvp); in port_associate_fop()
1589 if (tvp != NULL) in port_dissociate_fop()
[all …]
/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/cmd/bnu/
H A Dperfstat.c1043 scale60(tvp) in scale60() argument
1044 register struct timeval *tvp; in scale60()
1046 return (tvp->tv_sec * 60 + tvp->tv_usec / 16667);

123