Searched refs:ts (Results 76 - 100 of 435) sorted by relevance

1234567891011>>

/freebsd-9.3-release/contrib/ntp/sntp/
H A Dutilities.c37 l_fp * ts,
41 fprintf(output, "%s\n", prettydate(ts));
48 l_fp *ts,
57 short tmp = ((unsigned char *) ts)[a];
85 l_fp *ts,
94 fprintf(output, "%i: %i \t", a, ((unsigned char *) ts)[a]);
36 l_fp_output( l_fp * ts, FILE * output ) argument
47 l_fp_output_bin( l_fp *ts, FILE *output ) argument
84 l_fp_output_dec( l_fp *ts, FILE *output ) argument
/freebsd-9.3-release/contrib/libc++/src/
H A Dthread.cpp111 timespec ts; local
112 typedef decltype(ts.tv_sec) ts_sec;
116 ts.tv_sec = static_cast<ts_sec>(s.count());
117 ts.tv_nsec = static_cast<decltype(ts.tv_nsec)>((ns-s).count());
121 ts.tv_sec = ts_sec_max;
122 ts.tv_nsec = giga::num - 1;
124 nanosleep(&ts, 0);
/freebsd-9.3-release/sys/dev/iicbus/
H A Dds1672.c135 ds1672_gettime(device_t dev, struct timespec *ts) argument
143 ts->tv_sec = (secs[3] << 24) | (secs[2] << 16)
145 ts->tv_nsec = NANOSEC / 2;
151 ds1672_settime(device_t dev, struct timespec *ts) argument
155 data[0] = (ts->tv_sec >> 0) & 0xff;
156 data[1] = (ts->tv_sec >> 8) & 0xff;
157 data[2] = (ts->tv_sec >> 16) & 0xff;
158 data[3] = (ts->tv_sec >> 24) & 0xff;
/freebsd-9.3-release/sys/dev/mc146818/
H A Dmc146818var.h64 int mc146818_gettime(device_t dev, struct timespec *ts);
65 int mc146818_settime(device_t dev, struct timespec *ts);
/freebsd-9.3-release/sys/powerpc/mpc85xx/
H A Dds1553_bus_fdt.c91 struct timespec ts; local
121 ds1553_gettime(dev, &ts);
123 (long)ts.tv_sec, ts.tv_nsec);
/freebsd-9.3-release/contrib/openbsm/bin/auditfilterd/
H A Dauditfilterd.c123 present_rawrecord(struct timespec *ts, u_char *data, u_int len) argument
129 (am->am_rawrecord)(am, ts, data, len);
139 present_tokens(struct timespec *ts, u_char *data, u_int len) argument
157 (am->am_record)(am, ts, tokencount, tokens);
168 struct timespec ts; local
205 if (clock_gettime(CLOCK_REALTIME, &ts) < 0)
207 present_rawrecord(&ts, buf, reclen);
208 present_tokens(&ts, buf, reclen);
223 struct timespec ts; local
255 if (clock_gettime(CLOCK_REALTIME, &ts) <
[all...]
/freebsd-9.3-release/contrib/ntp/include/
H A Dtimevalops.h76 #define TVTOTS(tv, ts) \
78 (ts)->l_ui = (u_long)(tv)->tv_sec; \
79 TVUTOTSF((tv)->tv_usec, (ts)->l_uf); \
82 #define sTVTOTS(tv, ts) \
86 (ts)->l_ui = (tv)->tv_sec; \
90 (ts)->l_ui = -(ts)->l_ui; \
93 TVUTOTSF(usec, (ts)->l_uf); \
95 L_NEG((ts)); \
103 #define TSTOTV(ts, t
[all...]
/freebsd-9.3-release/contrib/libreadline/
H A Dhistory.c213 alloc_history_entry (string, ts)
215 char *ts;
223 temp->timestamp = ts;
232 char *ts; local
237 ts = hist->timestamp;
238 if (ts[0] != history_comment_char)
240 t = (time_t) atol (ts + 1); /* XXX - should use strtol() here */
248 char ts[64], *ret; local
252 snprintf (ts, sizeof (ts)
349 char *ts; local
[all...]
/freebsd-9.3-release/contrib/openbsm/bin/auditdistd/
H A Dsynch.h167 struct timespec ts; local
176 error = clock_gettime(CLOCK_MONOTONIC, &ts);
178 ts.tv_sec += timeout;
179 error = pthread_cond_timedwait(cv, lock, &ts);
181 ts.tv_sec = timeout;
182 ts.tv_nsec = 0;
183 error = pthread_cond_timedwait_relative_np(cv, lock, &ts);
/freebsd-9.3-release/sys/arm/s3c2xx0/
H A Ds3c24x0_rtc.c85 s3c2xx0_rtc_gettime(device_t dev, struct timespec *ts) argument
115 return (clock_ct_to_ts(&ct, ts));
119 s3c2xx0_rtc_settime(device_t dev, struct timespec *ts) argument
127 if (ts->tv_nsec >= 500000000)
128 ts->tv_sec++;
129 ts->tv_nsec = 0;
130 clock_ts_to_ct(ts, &ct);
/freebsd-9.3-release/sys/mips/cavium/
H A Docteon_ds1337.c102 struct timespec ts; local
136 if (clock_ct_to_ts(&ct, &ts) != 0) {
141 return ts.tv_sec;
151 struct timespec ts; local
156 ts.tv_sec = time;
157 ts.tv_nsec = 0;
159 clock_ts_to_ct(&ts, &ct);
/freebsd-9.3-release/sys/kern/
H A Dkern_time.c103 int itimespecfix(struct timespec *ts);
116 struct timespec ts; local
161 ts.tv_sec = tv->tv_sec;
162 ts.tv_nsec = tv->tv_usec * 1000;
164 tc_setclock(&ts);
420 struct timespec ts; local
426 error = kern_clock_getres(td, uap->clock_id, &ts);
428 error = copyout(&ts, uap->tp, sizeof(ts));
433 kern_clock_getres(struct thread *td, clockid_t clock_id, struct timespec *ts) argument
484 struct timespec ts, ts2, ts3; local
1410 struct timespec cts, ts; local
1455 realtimer_clocktime(clockid_t id, struct timespec *ts) argument
1481 itimespecfix(struct timespec *ts) argument
1495 struct timespec cts, ts; local
[all...]
H A Dkern_rwlock.c314 struct turnstile *ts; local
423 ts = turnstile_trywait(&rw->lock_object);
431 turnstile_cancel(ts);
446 turnstile_cancel(ts);
466 turnstile_cancel(ts);
484 turnstile_wait(ts, rw_owner(rw), TS_SHARED_QUEUE);
552 struct turnstile *ts; local
648 ts = turnstile_lookup(&rw->lock_object);
649 MPASS(ts != NULL);
650 turnstile_broadcast(ts, queu
666 struct turnstile *ts; local
849 struct turnstile *ts; local
915 struct turnstile *ts; local
987 struct turnstile *ts; local
[all...]
/freebsd-9.3-release/contrib/amd/amd/
H A Dinfo_ldap.c125 static int get_ldap_timestamp(ALD *a, char *map, time_t *ts);
236 amu_ldap_init(mnt_map *m, char *map, time_t *ts) argument
279 if (get_ldap_timestamp(aldh, map, ts))
281 dlog("Got timestamp for map %s: %ld\n", map, (u_long) *ts);
355 get_ldap_timestamp(ALD *a, char *map, time_t *ts) argument
399 *ts = 0;
410 *ts = 0;
419 *ts = 0;
427 *ts = (time_t) strtol(vals[0], &end, 10);
433 if (!*ts >
452 amu_ldap_search(mnt_map *m, char *map, char *key, char **pval, time_t *ts) argument
558 amu_ldap_mtime(mnt_map *m, char *map, time_t *ts) argument
[all...]
/freebsd-9.3-release/contrib/libucl/tests/
H A Dtest_speed.c48 struct timespec ts; local
49 clock_gettime (CLOCK_MONOTONIC, &ts);
51 res = (double)ts.tv_sec + ts.tv_nsec / 1000000000.;
/freebsd-9.3-release/crypto/heimdal/lib/asn1/
H A Dgen_copy.c103 char *ts; local
118 asprintf (&ts, "%s(%s)->%s%s",
121 if (ts == NULL)
125 fprintf(codefile, "%s = malloc(sizeof(*%s));\n", ts, ts);
126 fprintf(codefile, "if(%s == NULL) goto fail;\n", ts);
129 copy_type (fs, ts, m->type, FALSE);
132 fprintf(codefile, "%s = NULL;\n", ts);
135 free (ts);
/freebsd-9.3-release/lib/libc/stdio/
H A Dxprintf_time.c62 struct timespec *ts; local
73 ts = *((struct timespec **)arg[0]);
74 t = ts->tv_sec;
75 nsec = ts->tv_nsec;
/freebsd-9.3-release/sbin/hastd/
H A Dsynch.h163 struct timespec ts; local
171 error = clock_gettime(CLOCK_MONOTONIC, &ts);
173 ts.tv_sec += timeout;
174 error = pthread_cond_timedwait(cv, lock, &ts);
/freebsd-9.3-release/sys/sparc64/sparc64/
H A Deeprom.c125 struct timespec ts; local
174 if (mk48txx_gettime(dev, &ts) != 0)
178 (long)ts.tv_sec, ts.tv_nsec);
/freebsd-9.3-release/sys/sys/
H A Dtimetc.h77 void tc_setclock(struct timespec *ts);
H A Dturnstile.h97 int turnstile_empty(struct turnstile *ts, int queue);
/freebsd-9.3-release/tools/tools/net80211/wesside/udps/
H A Dudps.c54 struct timespec ts; local
77 ts.tv_sec = 0;
78 ts.tv_nsec = delay*1000;
103 if (nanosleep(&ts, NULL) == -1) {
/freebsd-9.3-release/usr.bin/xlint/lint2/
H A Demit2.c57 tspec_t ts; local
61 if ((ts = tp->t_tspec) == INT && tp->t_isenum)
62 ts = ENUM;
63 switch (ts) {
102 if (ts == ARRAY) {
104 } else if (ts == ENUM || ts == STRUCT || ts == UNION) {
120 } else if (ts == FUNC && tp->t_args != NULL) {
/freebsd-9.3-release/contrib/ntp/sntp/libevent/
H A Devthread_pthread.c145 struct timespec ts; local
148 ts.tv_sec = abstime.tv_sec;
149 ts.tv_nsec = abstime.tv_usec*1000;
150 r = pthread_cond_timedwait(cond, lock, &ts);
/freebsd-9.3-release/contrib/ntp/lib/isc/tests/
H A Disctest.c164 struct timespec ts; local
166 ts.tv_sec = usec / 1000000;
167 ts.tv_nsec = (usec % 1000000) * 1000;
168 nanosleep(&ts, NULL);

Completed in 200 milliseconds

1234567891011>>