/illumos-gate/usr/src/uts/sun4u/io/ |
H A D | todmostek.c | 121 timestruc_t ts; local 148 ts.tv_sec = tod_to_utc(tod); 149 ts.tv_nsec = 0; 150 return (ts); 159 todm_set(timestruc_t ts) argument 161 todinfo_t tod = utc_to_tod(ts.tv_sec); 220 todm_set_power_alarm(timestruc_t ts) argument 226 tod = utc_to_tod(ts.tv_sec);
|
H A D | todstarcat.c | 190 todsc_set(timestruc_t ts) argument 200 if (abs(hrestime.tv_sec - ts.tv_sec) > TODSC_SET_THRESHOLD) { 205 (int)ts.tv_sec); 210 ts.tv_sec); 241 todsc_set_power_alarm(timestruc_t ts) argument
|
H A D | todstarfire.c | 124 timestruc_t ts; local 129 ts = hrestime; 134 return (ts); 143 todsf_set(timestruc_t ts) argument 175 todsf_set_power_alarm(timestruc_t ts) argument
|
H A D | hardclk.c | 157 timestruc_t ts = tod_ops.tod_get(); local 158 ts.tv_sec = tod_validate(ts.tv_sec); 159 return (ts); 165 tod_set(timestruc_t ts) argument 167 tod_set_prev(ts); /* for tod_validate() */ 168 tod_ops.tod_set(ts);
|
H A D | todbq4802.c | 164 timestruc_t ts; local 187 ts.tv_sec = tod_to_utc(tod); 188 ts.tv_nsec = 0; 189 return (ts); 246 todbq4802_set(timestruc_t ts) argument 249 todinfo_t tod = utc_to_tod(ts.tv_sec); 317 todbq4802_set_power_alarm(timestruc_t ts) argument 324 tod = utc_to_tod(ts.tv_sec);
|
H A D | todm5819.c | 143 timestruc_t ts; local 171 ts.tv_sec = tod_to_utc(rtc_to_tod(&rtc)); 172 ts.tv_nsec = 0; 173 return (ts); 243 todm5819_set(timestruc_t ts) argument 246 todinfo_t tod = utc_to_tod(ts.tv_sec); 334 todm5819_set_power_alarm(timestruc_t ts) argument 341 tod = utc_to_tod(ts.tv_sec);
|
H A D | todopl.c | 229 todopl_set(timestruc_t ts) argument 233 if (abs(ts.tv_sec - hrestime.tv_sec) > TODOPL_SET_THRESHOLD) { 238 prom_opl_set_diff(ts.tv_sec - hrestime.tv_sec); 263 prom_opl_set_diff(ts.tv_sec - obp_time); 269 ts.tv_sec)); 299 todopl_set_power_alarm(timestruc_t ts) argument
|
/illumos-gate/usr/src/uts/i86xpv/io/ |
H A D | xpvtod.c | 49 timestruc_t ts, wcts; local 77 ts.tv_sec = (time_t)(now / NANOSEC); 78 ts.tv_nsec = (long)(now % NANOSEC); 83 ts.tv_sec += ggmtl(); 88 tod = utc_to_tod(ts.tv_sec); 111 ts.tv_sec = tod_to_utc(tod); 114 return (ts); 125 todxen_set(tod_ops_t *top, timestruc_t ts) argument 131 TODOP_SET(top->tod_next, ts); 135 op.u.settime.secs = ts [all...] |
/illumos-gate/usr/src/lib/libfakekernel/common/ |
H A D | clock.c | 60 clock2ts(clock_t clk, timespec_t *ts) argument 62 ts->tv_sec = clk / hz; 63 ts->tv_nsec = (clk % hz) * (NANOSEC / hz); 73 gethrestime(timespec_t *ts) argument 78 ts->tv_sec = tv.tv_sec; 79 ts->tv_nsec = tv.tv_usec * 1000;
|
H A D | cond.c | 148 timestruc_t ts; local 154 clock2ts(delta, &ts); 157 if (ts.tv_sec == 0 && ts.tv_nsec == 0) 162 err = _lwp_cond_reltimedwait(cv, &mp->m_lock, &ts);
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | select.c | 287 timespec_t ts; local 305 ts.tv_sec = tv->tv_sec; 306 ts.tv_nsec = tv->tv_usec * 1000; 307 if (ts.tv_nsec != 0 && ts.tv_nsec < 500000) 308 ts.tv_nsec = 500000; 309 tsp = &ts;
|
H A D | select_large_fdset.c | 339 timespec_t ts; local 357 ts.tv_sec = tv->tv_sec; 358 ts.tv_nsec = tv->tv_usec * 1000; 359 if (ts.tv_nsec != 0 && ts.tv_nsec < 500000) 360 ts.tv_nsec = 500000; 361 tsp = &ts;
|
/illumos-gate/usr/src/uts/common/syscall/ |
H A D | utime.c | 119 timespec_t ts[2]; local 125 if (copyin(tsptr, ts, sizeof (ts))) 132 TIMESPEC32_TO_TIMESPEC(&ts[0], &ts32[0]); 133 TIMESPEC32_TO_TIMESPEC(&ts[1], &ts32[1]); 135 if (ts[0].tv_nsec == UTIME_NOW || ts[1].tv_nsec == UTIME_NOW) 138 if (ts[0].tv_nsec == UTIME_OMIT) { 139 ts[0].tv_nsec = 0; 142 if (ts[ [all...] |
/illumos-gate/usr/src/uts/sun4v/io/ |
H A D | hardclk.c | 146 timestruc_t ts; local 170 ts.tv_nsec = 0; 184 ts.tv_sec = tod_validate(hrestime.tv_sec); 188 ts.tv_sec = 0; 192 ts.tv_sec = tod_validate(seconds); 195 return (ts); 202 tod_set(timestruc_t ts) argument 208 tod_set_prev(ts); 211 ret = hv_tod_set(ts.tv_sec);
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | clock_realtime.c | 40 clock_realtime_settime(timespec_t *ts) argument 43 tod_set(*ts); 44 set_hrestime(ts); 55 clock_realtime_gettime(timespec_t *ts) argument 57 gethrestime(ts); 63 clock_realtime_getres(timespec_t *ts) argument 65 ts->tv_sec = 0; 66 ts->tv_nsec = nsec_per_tick;
|
/illumos-gate/usr/src/cmd/sgs/elfdump/common/ |
H A D | gen_layout_obj.c | 57 timestruc_t ts; variable
|
/illumos-gate/usr/src/lib/pam_modules/timestamp/ |
H A D | pam_timestamp.c | 42 timestruc_t ts; /* time of tty last status change */ member in struct:user_info 292 info.uid != getuid() || info.ts.tv_sec != tty.st_ctim.tv_sec || 293 info.ts.tv_nsec != tty.st_ctim.tv_nsec) { 392 info.ts = tty.st_ctim;
|
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/asn.1/ |
H A D | asn1_decode.c | 227 struct tm ts; local 246 ts.tm_year = 1000*c2i(s[0]) + 100*c2i(s[1]) + 10*c2i(s[2]) + c2i(s[3]) 248 ts.tm_mon = 10*c2i(s[4]) + c2i(s[5]) - 1; 249 ts.tm_mday = 10*c2i(s[6]) + c2i(s[7]); 250 ts.tm_hour = 10*c2i(s[8]) + c2i(s[9]); 251 ts.tm_min = 10*c2i(s[10]) + c2i(s[11]); 252 ts.tm_sec = 10*c2i(s[12]) + c2i(s[13]); 253 ts.tm_isdst = -1; 254 t = krb5int_gmt_mktime(&ts);
|
/illumos-gate/usr/src/lib/libcurses/screen/ |
H A D | wborder.c | 53 * ts : top side. 78 wborder(WINDOW *win, chtype ls, chtype rs, chtype ts, argument 89 _TOPSIDE = ts;
|
/illumos-gate/usr/src/lib/libbc/libc/sys/common/ |
H A D | _stat.c | 37 struct ts { struct 54 struct ts st_atim; 55 struct ts st_mtim; 56 struct ts st_ctim;
|
/illumos-gate/usr/src/lib/libcmd/common/ |
H A D | date.c | 276 Time_t ts; local 389 ts = convert(fmts, s, now); 391 if (te > ts) 392 e += te - ts; 394 e += ts - te;
|
/illumos-gate/usr/src/cmd/streams/log/ |
H A D | strace.c | 241 char *ts; local 246 ts = ctime(&t); 247 ts[19] = '\0'; 249 lp->seq_no, (ts+11), lp->ltime, lp->level,
|
H A D | strerr.c | 176 char *ts; local 179 ts = ctime(&t); 180 ts[19] = '\0'; 182 fprintf(log, "%06d %s %08x %s%s%s ", lp->seq_no, (ts+11),
|
/illumos-gate/usr/src/cmd/tail/ |
H A D | forward.c | 391 struct timespec ts; local 478 ts.tv_sec = 1; 479 ts.tv_nsec = 0; 485 n = port_get(port, &ev, Fflag ? &ts : NULL);
|
/illumos-gate/usr/src/ucbcmd/touch/ |
H A D | touch.c | 354 timestruc_to_timeval(timestruc_t *ts, struct timeval *tv) argument 356 tv->tv_sec = ts->tv_sec; 357 tv->tv_usec = ts->tv_nsec / 1000;
|