/titanic_50/usr/src/lib/gss_mechs/mech_krb5/krb5/krb/ |
H A D | gc_frm_kdc.c | 57 #define NXT_TGT_IS_CACHED(ts) \ argument 58 ((ts)->nxt_tgt == (ts)->cur_cc_tgt) 60 #define MARK_CUR_CC_TGT_CLEAN(ts) \ argument 62 (ts)->cc_tgts.dirty[(ts)->cc_tgts.cur] = 0; \ 106 #define TR_DBG(ts, prog) tr_dbg(ts, prog) argument 107 #define TR_DBG_RET(ts, prog, ret) tr_dbg_ret(ts, prog, ret) argument 108 #define TR_DBG_RTREE(ts, prog, princ) tr_dbg_rtree(ts, prog, princ) argument 116 #define TR_DBG(ts, prog) argument 117 #define TR_DBG_RET(ts, prog, ret) argument 118 #define TR_DBG_RTREE(ts, prog, princ) argument [all …]
|
/titanic_50/usr/src/cmd/dtrace/test/tst/common/printf/ |
H A D | tst.printcont.d | 39 uint64_t ts; variable 43 ts = 53114233149441; 44 printf("%u\n", ts); 45 printf("%u\n", ts); 46 printf("%u\n", ts); 47 printf("%u\n", ts); 48 printf("%u\n", ts); 49 printf("%u\n", ts); 50 printf("%u\n", ts); 51 printf("%u\n", ts); [all …]
|
/titanic_50/usr/src/uts/common/os/ |
H A D | turnstile.c | 182 turnstile_pi_inherit(turnstile_t *ts, kthread_t *inheritor, pri_t epri) in turnstile_pi_inherit() argument 185 ASSERT(DISP_LOCK_HELD(&TURNSTILE_CHAIN(ts->ts_sobj).tc_lock)); in turnstile_pi_inherit() 190 if (ts->ts_inheritor == NULL) { in turnstile_pi_inherit() 191 ts->ts_inheritor = inheritor; in turnstile_pi_inherit() 192 ts->ts_epri = epri; in turnstile_pi_inherit() 194 ts->ts_prioinv = inheritor->t_prioinv; in turnstile_pi_inherit() 195 inheritor->t_prioinv = ts; in turnstile_pi_inherit() 202 ASSERT(ts->ts_inheritor == inheritor); in turnstile_pi_inherit() 203 if (ts->ts_epri < epri) in turnstile_pi_inherit() 204 ts->ts_epri = epri; in turnstile_pi_inherit() [all …]
|
H A D | rwlock.c | 278 turnstile_t *ts; in rw_enter_sleep() local 325 ts = turnstile_lookup(lp); in rw_enter_sleep() 350 (void) turnstile_block(ts, TS_READER_Q, lp, in rw_enter_sleep() 354 (void) turnstile_block(ts, TS_WRITER_Q, lp, in rw_enter_sleep() 382 rw_readers_to_wake(turnstile_t *ts) in rw_readers_to_wake() argument 384 kthread_t *next_writer = ts->ts_sleepq[TS_WRITER_Q].sq_first; in rw_readers_to_wake() 385 kthread_t *next_reader = ts->ts_sleepq[TS_READER_Q].sq_first; in rw_readers_to_wake() 407 turnstile_t *ts; in rw_exit_wakeup() local 475 ts = turnstile_lookup(lp); in rw_exit_wakeup() 477 next_writer = ts->ts_sleepq[TS_WRITER_Q].sq_first; in rw_exit_wakeup() [all …]
|
/titanic_50/usr/src/lib/libast/common/comp/ |
H A D | mktime.c | 50 mktime(struct tm* ts) 55 tm.tm_sec = ts->tm_sec; 56 tm.tm_min = ts->tm_min; 57 tm.tm_hour = ts->tm_hour; 58 tm.tm_mday = ts->tm_mday; 59 tm.tm_mon = ts->tm_mon; 60 tm.tm_year = ts->tm_year; 61 tm.tm_wday = ts->tm_wday; 62 tm.tm_yday = ts->tm_yday; 63 tm.tm_isdst = ts->tm_isdst; [all …]
|
H A D | strptime.c | 48 strptime(const char* s, const char* format, struct tm* ts) 56 tm.tm_sec = ts->tm_sec; 57 tm.tm_min = ts->tm_min; 58 tm.tm_hour = ts->tm_hour; 59 tm.tm_mday = ts->tm_mday; 60 tm.tm_mon = ts->tm_mon; 61 tm.tm_year = ts->tm_year; 62 tm.tm_wday = ts->tm_wday; 63 tm.tm_yday = ts->tm_yday; 64 tm.tm_isdst = ts->tm_isdst; [all …]
|
H A D | getdate.c | 61 static struct tm ts; 71 ts.tm_sec = tm->tm_sec; 72 ts.tm_min = tm->tm_min; 73 ts.tm_hour = tm->tm_hour; 74 ts.tm_mday = tm->tm_mday; 75 ts.tm_mon = tm->tm_mon; 76 ts.tm_year = tm->tm_year; 77 ts.tm_wday = tm->tm_wday; 78 ts.tm_yday = tm->tm_yday; 79 ts.tm_isdst = tm->tm_isdst; [all …]
|
/titanic_50/usr/src/lib/libc/port/sys/ |
H A D | utimesys.c | 52 timespec_t ts[2]; in utime() local 61 ts[0].tv_sec = ltimes.actime; in utime() 62 ts[0].tv_nsec = 0; in utime() 63 ts[1].tv_sec = ltimes.modtime; in utime() 64 ts[1].tv_nsec = 0; in utime() 65 tsp = ts; in utime() 74 timespec_t ts[2]; in utimes() local 83 ts[0].tv_sec = ltimes[0].tv_sec; in utimes() 84 ts[0].tv_nsec = ltimes[0].tv_usec * 1000; in utimes() 85 ts[1].tv_sec = ltimes[1].tv_sec; in utimes() [all …]
|
/titanic_50/usr/src/lib/libast/common/tm/ |
H A D | tvtouch.c | 96 struct timespec ts[2]; in tvtouch() local 112 ts[0].tv_sec = 0; in tvtouch() 113 ts[0].tv_nsec = UTIME_NOW; in tvtouch() 117 ts[0].tv_sec = 0; in tvtouch() 118 ts[0].tv_nsec = UTIME_OMIT; in tvtouch() 122 ts[0].tv_sec = av->tv_sec; in tvtouch() 123 ts[0].tv_nsec = NS(av->tv_nsec); in tvtouch() 127 ts[1].tv_sec = 0; in tvtouch() 128 ts[1].tv_nsec = UTIME_NOW; in tvtouch() 132 ts[1].tv_sec = 0; in tvtouch() [all …]
|
/titanic_50/usr/src/uts/common/syscall/ |
H A D | utime.c | 119 timespec_t ts[2]; in get_timespec_vattr() local 125 if (copyin(tsptr, ts, sizeof (ts))) in get_timespec_vattr() 132 TIMESPEC32_TO_TIMESPEC(&ts[0], &ts32[0]); in get_timespec_vattr() 133 TIMESPEC32_TO_TIMESPEC(&ts[1], &ts32[1]); in get_timespec_vattr() 135 if (ts[0].tv_nsec == UTIME_NOW || ts[1].tv_nsec == UTIME_NOW) in get_timespec_vattr() 138 if (ts[0].tv_nsec == UTIME_OMIT) { in get_timespec_vattr() 139 ts[0].tv_nsec = 0; in get_timespec_vattr() 142 if (ts[0].tv_nsec == UTIME_NOW) in get_timespec_vattr() 143 ts[0] = now; in get_timespec_vattr() 144 else if (ts[0].tv_nsec < 0 || ts[0].tv_nsec >= NANOSEC) in get_timespec_vattr() [all …]
|
/titanic_50/usr/src/uts/i86pc/io/ |
H A D | hardclk.c | 57 tod_set(timestruc_t ts) in tod_set() argument 61 tod_set_prev(ts); /* for tod_validate() */ in tod_set() 62 TODOP_SET(tod_ops, ts); in tod_set() 74 timestruc_t ts; in tod_get() local 78 ts = TODOP_GET(tod_ops); in tod_get() 79 ts.tv_sec = tod_validate(ts.tv_sec); in tod_get() 80 return (ts); in tod_get() 126 timestruc_t ts; in rtcsync() local 129 ts = TODOP_GET(tod_ops); in rtcsync() 130 set_hrestime(&ts); in rtcsync()
|
/titanic_50/usr/src/cmd/truss/ |
H A D | stat.c | 66 timestruc_t ts; in show_stat32() local 90 TIMESPEC32_TO_TIMESPEC(&ts, &statb.st_atim); in show_stat32() 91 prtimestruc(pri, "at = ", &ts); in show_stat32() 92 TIMESPEC32_TO_TIMESPEC(&ts, &statb.st_mtim); in show_stat32() 93 prtimestruc(pri, "mt = ", &ts); in show_stat32() 94 TIMESPEC32_TO_TIMESPEC(&ts, &statb.st_ctim); in show_stat32() 95 prtimestruc(pri, "ct = ", &ts); in show_stat32() 111 timestruc_t ts; in show_stat64_32() local 135 TIMESPEC32_TO_TIMESPEC(&ts, &statb.st_atim); in show_stat64_32() 136 prtimestruc(pri, "at = ", &ts); in show_stat64_32() [all …]
|
/titanic_50/usr/src/uts/i86xpv/io/ |
H A D | xpvtod.c | 49 timestruc_t ts, wcts; in todxen_get() local 77 ts.tv_sec = (time_t)(now / NANOSEC); in todxen_get() 78 ts.tv_nsec = (long)(now % NANOSEC); in todxen_get() 83 ts.tv_sec += ggmtl(); in todxen_get() 88 tod = utc_to_tod(ts.tv_sec); in todxen_get() 111 ts.tv_sec = tod_to_utc(tod); in todxen_get() 114 return (ts); in todxen_get() 125 todxen_set(tod_ops_t *top, timestruc_t ts) in todxen_set() argument 131 TODOP_SET(top->tod_next, ts); in todxen_set() 135 op.u.settime.secs = ts.tv_sec - ggmtl(); in todxen_set() [all …]
|
/titanic_50/usr/src/common/crypto/skein/ |
H A D | skein_block.c | 28 #define ts (kw + KW_TWK_BASE) macro 73 ts[0] = ctx->h.T[0]; in Skein_256_Process_Block() 74 ts[1] = ctx->h.T[1]; in Skein_256_Process_Block() 80 ts[0] += byteCntAdd; /* update processed length */ in Skein_256_Process_Block() 89 ts[2] = ts[0] ^ ts[1]; in Skein_256_Process_Block() 94 Skein_Show_Block(BLK_BITS, &ctx->h, ctx->X, blkPtr, w, ks, ts); in Skein_256_Process_Block() 97 X1 = w[1] + ks[1] + ts[0]; in Skein_256_Process_Block() 98 X2 = w[2] + ks[2] + ts[1]; in Skein_256_Process_Block() 119 X1 += ks[((R) + 2) % 5] + ts[((R) + 1) % 3]; \ in Skein_256_Process_Block() 120 X2 += ks[((R) + 3) % 5] + ts[((R) + 2) % 3]; \ in Skein_256_Process_Block() [all …]
|
/titanic_50/usr/src/lib/libzonestat/common/ |
H A D | zonestat_impl.h | 60 #define TIMESTRUC_ADD_NANOSEC(ts, nsec) \ argument 62 (ts).tv_sec += (time_t)((nsec) / NANOSEC); \ 63 (ts).tv_nsec += (long)((nsec) % NANOSEC); \ 64 if ((ts).tv_nsec > NANOSEC) { \ 65 (ts).tv_sec += (ts).tv_nsec / NANOSEC; \ 66 (ts).tv_nsec = (ts).tv_nsec % NANOSEC; \ 70 #define TIMESTRUC_ADD_TIMESTRUC(ts, add) \ argument 72 (ts).tv_sec += (add).tv_sec; \ 73 (ts).tv_nsec += (add).tv_nsec; \ 74 if ((ts).tv_nsec > NANOSEC) { \ [all …]
|
/titanic_50/usr/src/uts/common/sys/ |
H A D | time_impl.h | 66 #define TIMESPEC32_TO_TIMESPEC(ts, ts32) { \ argument 67 (ts)->tv_sec = (time_t)(ts32)->tv_sec; \ 68 (ts)->tv_nsec = (ts32)->tv_nsec; \ 71 #define TIMESPEC_TO_TIMESPEC32(ts32, ts) { \ argument 72 (ts32)->tv_sec = (time32_t)(ts)->tv_sec; \ 73 (ts32)->tv_nsec = (ts)->tv_nsec; \ 76 #define TIMESPEC_OVERFLOW(ts) \ argument 77 ((ts)->tv_sec < TIME32_MIN || (ts)->tv_sec > TIME32_MAX)
|
/titanic_50/usr/src/cmd/fs.d/autofs/ |
H A D | nfs_cast.c | 137 struct tstamps *ts, *prev_ts; in nfs_cast() local 249 ts = (struct tstamps *) in nfs_cast() 250 malloc(sizeof (*ts)); in nfs_cast() 251 if (ts == NULL) { in nfs_cast() 256 (void) memset(ts, 0, sizeof (*ts)); in nfs_cast() 257 ts->ts_penalty = mfs->mfs_penalty; in nfs_cast() 259 a->addr_if_tstamps = ts; in nfs_cast() 261 prev_ts->ts_next = ts; in nfs_cast() 262 prev_ts = ts; in nfs_cast() 263 ts->ts_inx = if_inx++; in nfs_cast() [all …]
|
/titanic_50/usr/src/cmd/mdb/common/modules/sppp/ |
H A D | sppp.c | 586 tun_state_read(void *ptr, union tun_state *ts) in tun_state_read() argument 592 if (mdb_vread(&ts->tunflags, sizeof (ts->tunflags), (uintptr_t)ptr) == in tun_state_read() 593 sizeof (ts->tunflags)) { in tun_state_read() 594 if (ts->tunflags & TCLF_ISCLIENT) { in tun_state_read() 595 if (mdb_vread(&ts->tcl, sizeof (ts->tcl), in tun_state_read() 596 (uintptr_t)ptr) == sizeof (ts->tcl)) { in tun_state_read() 600 if (mdb_vread(&ts->tll, sizeof (ts->tll), in tun_state_read() 601 (uintptr_t)ptr) == sizeof (ts->tll)) { in tun_state_read() 612 union tun_state ts; in sppptun_qinfo() local 614 if (tun_state_read(q->q_ptr, &ts) == -1) in sppptun_qinfo() [all …]
|
/titanic_50/usr/src/test/libc-tests/tests/ |
H A D | c11_threads.c | 204 struct timespec ts; in cthr_test_sleep() local 208 ts.tv_sec = 1; in cthr_test_sleep() 209 ts.tv_nsec = -1; in cthr_test_sleep() 211 VERIFY3S(thrd_sleep(&ts, NULL), <, -1); in cthr_test_sleep() 213 ts.tv_sec = 0; in cthr_test_sleep() 214 ts.tv_nsec = stime; in cthr_test_sleep() 216 VERIFY3S(thrd_sleep(&ts, NULL), ==, 0); in cthr_test_sleep() 305 struct timespec ts; in cthr_test_cndtime() local 307 ts.tv_sec = 0; in cthr_test_cndtime() 308 ts.tv_nsec = 1 * NANOSEC / MILLISEC; in cthr_test_cndtime() [all …]
|
H A D | timespec_get.c | 44 struct timespec ts, pre, post; in main() local 46 VERIFY0(timespec_get(&ts, TIME_UTC + 1)); in main() 47 VERIFY0(timespec_get(&ts, TIME_UTC - 1)); in main() 48 VERIFY0(timespec_get(&ts, UINT16_MAX)); in main() 51 VERIFY3S(timespec_get(&ts, TIME_UTC), ==, TIME_UTC); in main() 55 VERIFY3S(timespec_cmp(&pre, &ts), ==, 1); in main() 56 VERIFY3S(timespec_cmp(&ts, &post), ==, 1); in main()
|
/titanic_50/usr/src/uts/sun4v/io/ |
H A D | hardclk.c | 146 timestruc_t ts; in tod_get() local 170 ts.tv_nsec = 0; in tod_get() 184 ts.tv_sec = tod_validate(hrestime.tv_sec); in tod_get() 188 ts.tv_sec = 0; in tod_get() 192 ts.tv_sec = tod_validate(seconds); in tod_get() 195 return (ts); in tod_get() 202 tod_set(timestruc_t ts) in tod_set() argument 208 tod_set_prev(ts); in tod_set() 211 ret = hv_tod_set(ts.tv_sec); in tod_set()
|
/titanic_50/usr/src/lib/brand/solaris10/s10_brand/common/ |
H A D | s10_deleted.c | 178 timespec_t ts; in s10_poll() local 184 ts.tv_sec = timeout / MILLISEC; in s10_poll() 185 ts.tv_nsec = (timeout % MILLISEC) * MICROSEC; in s10_poll() 186 tsp = &ts; in s10_poll() 339 timespec_t ts[2]; in s10_utime() local 347 ts[0].tv_sec = ltimes.actime; in s10_utime() 348 ts[0].tv_nsec = 0; in s10_utime() 349 ts[1].tv_sec = ltimes.modtime; in s10_utime() 350 ts[1].tv_nsec = 0; in s10_utime() 351 tsp = ts; in s10_utime() [all …]
|
/titanic_50/usr/src/uts/sun4u/io/ |
H A D | hardclk.c | 157 timestruc_t ts = tod_ops.tod_get(); in tod_get() local 158 ts.tv_sec = tod_validate(ts.tv_sec); in tod_get() 159 return (ts); in tod_get() 165 tod_set(timestruc_t ts) in tod_set() argument 167 tod_set_prev(ts); /* for tod_validate() */ in tod_set() 168 tod_ops.tod_set(ts); in tod_set()
|
/titanic_50/usr/src/cmd/dtrace/test/tst/common/proc/ |
H A D | tst.sigwait.c | 40 struct itimerspec ts; in main() local 58 ts.it_value.tv_sec = 1; in main() 59 ts.it_value.tv_nsec = 0; in main() 60 ts.it_interval.tv_sec = 0; in main() 61 ts.it_interval.tv_nsec = NANOSEC / 2; in main() 63 if (timer_settime(tid, TIMER_RELTIME, &ts, NULL) == -1) { in main()
|
/titanic_50/usr/src/lib/libfakekernel/common/ |
H A D | clock.c | 60 clock2ts(clock_t clk, timespec_t *ts) in clock2ts() argument 62 ts->tv_sec = clk / hz; in clock2ts() 63 ts->tv_nsec = (clk % hz) * (NANOSEC / hz); in clock2ts() 73 gethrestime(timespec_t *ts) in gethrestime() argument 78 ts->tv_sec = tv.tv_sec; in gethrestime() 79 ts->tv_nsec = tv.tv_usec * 1000; in gethrestime()
|