Searched refs:tv (Results 76 - 100 of 567) sorted by relevance

1234567891011>>

/netbsd-6-1-5-RELEASE/tests/lib/libc/gen/
H A Dt_time.c93 struct timeval tv = { 0, 0 }; local
97 ATF_REQUIRE(gettimeofday(&tv, NULL) == 0);
100 (int64_t)t, (int64_t)tv.tv_sec);
102 if (t != tv.tv_sec)
/netbsd-6-1-5-RELEASE/external/lgpl2/mpc/dist/tests/
H A Drandom.c73 struct timeval tv; local
74 gettimeofday (&tv, NULL);
75 seed = (unsigned long int) (tv.tv_sec + tv.tv_usec);
77 time_t tv;
78 time (&tv);
79 seed = (unsigned long int) tv;
/netbsd-6-1-5-RELEASE/usr.sbin/rdate/
H A Drdate.c143 struct timeval tv; local
146 tv.tv_sec = tim;
147 tv.tv_usec = 0;
148 if (settimeofday(&tv, NULL) == -1)
155 adjustment = tv.tv_sec = tim - tv_current.tv_sec;
156 tv.tv_usec = 0;
157 if (adjtime(&tv, NULL) == -1)
/netbsd-6-1-5-RELEASE/sys/compat/osf1/
H A Dosf1_time.c53 struct timeval tv; local
56 microtime(&tv);
58 otv.tv_sec = tv.tv_sec;
59 otv.tv_usec = tv.tv_usec;
166 struct timeval tv, *tvp; local
169 if (SCARG(uap, tv) == NULL)
173 error = copyin(SCARG(uap, tv), &otv, sizeof otv);
177 tv.tv_sec = otv.tv_sec;
178 tv.tv_usec = otv.tv_usec;
179 tvp = &tv;
[all...]
/netbsd-6-1-5-RELEASE/regress/sys/net/in_cksum/
H A Din_cksum.c115 struct timeval tv, old_tv; local
151 tv = res.ru_utime;
155 timersub(&res.ru_utime, &tv, &old_tv);
159 tv = res.ru_utime;
163 timersub(&res.ru_utime, &tv, &tv);
164 printf("test version: %ld.%06ld\n", (long)tv.tv_sec, (long)tv.tv_usec);
166 100 * ((float)tv.tv_sec * 1e6 + tv
[all...]
/netbsd-6-1-5-RELEASE/external/bsd/iscsi/dist/src/initiator/
H A Discsi-initiator.c90 static targetv_t tv; /* target vector of targetinfo_t structs */ variable
341 if (sgblockop(tv.v[t].target, tv.v[t].lun, offset / tv.v[t].blocksize, (length / tv.v[t].blocksize), tv.v[t].blocksize, (uint8_t *) iov, ioc, writing) != 0) {
348 req_len = length / tv.v[t].blocksize;
349 if ((req_len * tv.v[t].blocksize) < length)
351 if (blockop(tv.v[t].target, tv
[all...]
/netbsd-6-1-5-RELEASE/crypto/external/cpl/trousers/dist/src/tcsd/
H A Dplatform.c44 struct timeval tv; local
51 memset(&tv, 0, sizeof(struct timeval));
58 if (next->ut_tv.tv_sec > tv.tv_sec) {
61 } else if (next->ut_tv.tv_sec == tv.tv_sec) {
62 if (next->ut_tv.tv_usec > tv.tv_usec) {
/netbsd-6-1-5-RELEASE/sys/arch/arm/ep93xx/
H A Deprtc.c86 eprtc_gettime(struct todr_chip_handle *ch, struct timeval *tv) argument
90 tv->tv_sec = bus_space_read_4(sc->sc_iot, sc->sc_ioh, EP93XX_RTC_Data);
91 tv->tv_usec = 0;
96 eprtc_settime(struct todr_chip_handle *ch, struct timeval *tv) argument
100 bus_space_write_4(sc->sc_iot, sc->sc_ioh, EP93XX_RTC_Load, tv->tv_sec);
/netbsd-6-1-5-RELEASE/external/bsd/openldap/dist/contrib/slapd-modules/nssov/nss-pam-ldapd/
H A Dtio.c107 static inline int tio_tv_remaining(struct timeval *tv, const struct timeval *deadline) argument
110 if (gettimeofday(tv,NULL))
113 tv->tv_sec=1;
114 tv->tv_usec=0;
118 if ( (tv->tv_sec>deadline->tv_sec) ||
119 ( (tv->tv_sec==deadline->tv_sec) && (tv->tv_usec>deadline->tv_usec) ) )
121 /* update tv */
122 tv->tv_sec=deadline->tv_sec-tv
183 struct timeval tv; local
393 struct timeval tv; local
[all...]
/netbsd-6-1-5-RELEASE/sys/arch/sparc/sparc/
H A Dintr.c538 struct trapvec *tv; local
542 tv = &trapbase[T_L1INT - 1 + level];
544 ? &sparc_interrupt4m[0] - &tv->tv_instr[1]
545 : &sparc_interrupt44c[0] - &tv->tv_instr[1];
548 if (tv->tv_instr[0] != I_MOVi(I_L3, level) ||
549 tv->tv_instr[1] != I_BA(0, displ) ||
550 tv->tv_instr[2] != I_RDPSR(I_L0))
553 tv->tv_instr[0], tv->tv_instr[1], tv
565 struct trapvec *tv; local
603 struct trapvec *tv; local
[all...]
/netbsd-6-1-5-RELEASE/sys/arch/emips/ebus/
H A Dclock_ebus.c124 eclock_gettime(struct todr_chip_handle *todr, struct timeval *tv) argument
151 tv->tv_sec = freeS;
152 tv->tv_usec = freeU / 10;
156 tv->tv_sec, tv->tv_usec, freeS, freeU, free);
170 tv->tv_sec = su;
171 tv->tv_usec = uu;
175 tv->tv_sec, tv->tv_usec, d, r, free);
187 eclock_settime(struct todr_chip_handle *todr, struct timeval *tv) argument
[all...]
/netbsd-6-1-5-RELEASE/external/gpl3/gdb/dist/sim/common/
H A Ddv-sockser.c251 struct timeval tv;
272 tv.tv_sec = 0;
273 tv.tv_usec = sockser_timeout;
275 numfds = select (sockser_listen_fd + 1, &readfds, 0, 0, &tv);
301 struct timeval tv;
329 tv.tv_sec = 0;
330 tv.tv_usec = sockser_timeout;
331 numrfds = select (sockser_fd + 1, &readfds, 0, 0, &tv);
332 tv.tv_sec = 0;
333 tv
248 struct timeval tv; local
298 struct timeval tv; local
[all...]
/netbsd-6-1-5-RELEASE/external/gpl3/binutils/dist/ld/
H A Dtestplug.c27 extern enum ld_plugin_status onload (struct ld_plugin_tv *tv);
341 dump_tv_tag (size_t n, struct ld_plugin_tv *tv) argument
348 if (tag_names[tag].tag == tv->tv_tag)
350 sprintf (unknownbuf, "unknown tag #%d", tv->tv_tag);
352 switch (tv->tv_tag)
356 TV_MESSAGE (LDPL_INFO, "tv[%d]: %s '%s'", n, name,
357 tv->tv_u.tv_string);
370 TV_MESSAGE (LDPL_INFO, "tv[%d]: %s func@0x%p", n, name,
371 (void *)(tv->tv_u.tv_message));
379 TV_MESSAGE (LDPL_INFO, "tv[
387 parse_tv_tag(struct ld_plugin_tv *tv) argument
447 parse_and_dump_tv_tag(size_t n, struct ld_plugin_tv *tv) argument
456 onload(struct ld_plugin_tv *tv) argument
[all...]
/netbsd-6-1-5-RELEASE/usr.bin/ypwhich/
H A Dypwhich.c201 static struct timeval tv = { 15, 0 }; local
207 return clntudp_create(sin, prog, vers, tv, &fd);
219 struct timeval tv; local
248 tv.tv_sec = 5;
249 tv.tv_usec = 0;
252 tv);
281 struct timeval tv; local
344 tv.tv_sec = 5;
345 tv.tv_usec = 0;
348 &yprespmlist, tv);
[all...]
/netbsd-6-1-5-RELEASE/external/gpl2/xcvs/dist/lib/
H A Dtempname.c98 struct timeval tv; \
99 __gettimeofday (&tv, NULL); \
100 value = ((uint64_t) tv.tv_usec << 16) ^ tv.tv_sec; \
244 struct timeval tv; local
245 __gettimeofday (&tv, NULL);
246 random_time_bits = ((uint64_t) tv.tv_usec << 16) ^ tv.tv_sec;
/netbsd-6-1-5-RELEASE/external/ibm-public/postfix/dist/src/tls/
H A Dtls_seed.c67 struct timeval tv; member in struct:__anon2487
72 GETTIMEOFDAY(&randseed.tv);
/netbsd-6-1-5-RELEASE/external/bsd/dhcpcd/dist/
H A Darp.c205 struct timeval tv; local
236 tv.tv_sec = state->interval - DHCP_RAND_MIN;
237 tv.tv_usec = arc4random() % (DHCP_RAND_MAX_U - DHCP_RAND_MIN_U);
238 timernorm(&tv);
239 add_timeout_tv(&tv, start_discover, iface);
253 struct timeval tv; local
280 tv.tv_sec = PROBE_MIN;
281 tv.tv_usec = arc4random() % (PROBE_MAX_U - PROBE_MIN_U);
282 timernorm(&tv);
283 add_timeout_tv(&tv, send_arp_prob
[all...]
/netbsd-6-1-5-RELEASE/sys/arch/ia64/stand/efi/libefi/
H A Dtime.c213 struct timeval tv; local
214 EFI_GetTimeOfDay(&tv, 0);
217 *tloc = tv.tv_sec;
218 return tv.tv_sec;
/netbsd-6-1-5-RELEASE/sys/arch/evbarm/ifpga/
H A Dpl030_rtc.c67 plrtc_gettime(todr_chip_handle_t todr, struct timeval *tv) argument
72 tv->tv_sec = bus_space_read_4(sc->sc_iot, sc->sc_ioh, IFPGA_RTC_DR);
78 plrtc_settime(todr_chip_handle_t todr, struct timeval *tv) argument
83 bus_space_write_4(sc->sc_iot, sc->sc_ioh, IFPGA_RTC_LR, tv->tv_sec);
/netbsd-6-1-5-RELEASE/external/bsd/ntp/dist/clockstuff/
H A Dclktest.c290 struct timeval tv, tvd; local
339 tv.tv_sec = 0;
341 tv.tv_sec <<= 8;
342 tv.tv_sec |= ((long)*rp++) & 0xff;
344 tv.tv_usec = 0;
346 tv.tv_usec <<= 8;
347 tv.tv_usec |= ((long)*rp++) & 0xff;
350 tvd.tv_sec = tv.tv_sec - lasttv.tv_sec;
351 tvd.tv_usec = tv.tv_usec - lasttv.tv_usec;
358 tv
[all...]
/netbsd-6-1-5-RELEASE/sys/arch/arm/xscale/
H A Dpxa2x0_rtc.c118 pxartc_todr_gettime(todr_chip_handle_t ch, struct timeval *tv) argument
124 tv->tv_sec = bus_space_read_4(sc->sc_iot, sc->sc_ioh, RTC_RCNR);
125 tv->tv_usec = 0;
128 tv->tv_sec));
129 clock_secs_to_ymdhms(tv->tv_sec, &dt);
143 tv->tv_sec = clock_ymdhms_to_secs(&dt);
144 tv->tv_usec = 0;
149 pxartc_todr_settime(todr_chip_handle_t ch, struct timeval *tv) argument
157 tv->tv_sec));
158 clock_secs_to_ymdhms(tv
[all...]
/netbsd-6-1-5-RELEASE/sys/sys/
H A Dtime.h58 #define TIMEVAL_TO_TIMESPEC(tv, ts) do { \
59 (ts)->tv_sec = (tv)->tv_sec; \
60 (ts)->tv_nsec = (tv)->tv_usec * 1000; \
62 #define TIMESPEC_TO_TIMEVAL(tv, ts) do { \
63 (tv)->tv_sec = (ts)->tv_sec; \
64 (tv)->tv_usec = (suseconds_t)(ts)->tv_nsec / 1000; \
181 bintime2timeval(const struct bintime *bt, struct timeval *tv) argument
184 tv->tv_sec = bt->sec;
185 tv->tv_usec =
190 timeval2bintime(const struct timeval *tv, struc argument
[all...]
/netbsd-6-1-5-RELEASE/usr.sbin/ypserv/yppush/
H A Dyppush.c114 struct timeval tv; local
208 tv.tv_sec = 10;
209 tv.tv_usec = 0;
211 retval = clnt_call(ypserv, YPPROC_CLEAR, xdr_void, 0, xdr_void, 0, tv);
312 struct timeval tv; local
382 tv.tv_sec = 0;
383 tv.tv_usec = 0;
397 xdr_void, NULL, tv); /* do it! */
429 struct timeval tv; local
436 tv
[all...]
/netbsd-6-1-5-RELEASE/external/ibm-public/postfix/dist/src/global/
H A Dmail_stream.c168 struct timeval tv[2]; local
171 tv[0].tv_sec = tv[1].tv_sec = when;
172 tv[0].tv_usec = tv[1].tv_usec = 0;
173 return (futimesat(vstream_fileno(fp), (char *) 0, tv));
186 struct timeval tv[2]; local
189 tv[0].tv_sec = tv[1].tv_sec = when;
190 tv[
408 struct timeval tv; local
[all...]
/netbsd-6-1-5-RELEASE/gnu/dist/gcc4/gcc/
H A Dtree-ssa-live.h579 type_var_num (type_var_p tv) argument
581 return tpa_num_trees (tv);
588 type_var (type_var_p tv, int i) argument
590 return tpa_tree (tv, i);
597 type_var_first_partition (type_var_p tv, int i) argument
599 return tpa_first_partition (tv, i);
606 type_var_next_partition (type_var_p tv, int i) argument
608 return tpa_next_partition (tv, i);
615 type_var_dump (FILE *f, type_var_p tv) argument
618 tpa_dump (f, tv);
626 type_var_delete(type_var_p tv) argument
635 type_var_remove_partition(type_var_p tv, int type_index, int partition_index) argument
644 type_var_find(type_var_p tv, int i) argument
653 type_var_compact(type_var_p tv) argument
662 type_var_decompact(type_var_p tv) argument
[all...]

Completed in 162 milliseconds

1234567891011>>