/illumos-gate/usr/src/uts/common/syscall/ |
H A D | ntptime.c | 74 timestruc_t tod; local 78 gethrestime(&tod); 79 if (tod.tv_sec > TIME32_MAX) 81 ntv.time.tv_sec = tod.tv_sec; 82 ntv.time.tv_usec = tod.tv_nsec / (NANOSEC / MICROSEC);
|
/illumos-gate/usr/src/lib/fm/libfmd_msg/common/ |
H A D | fmd_msg_test.c | 52 int64_t tod[] = { 0x9400000, 0 }; local 100 err |= nvlist_add_int64_array(list, FM_SUSPECT_DIAG_TIME, tod, 2);
|
/illumos-gate/usr/src/uts/sun4u/io/ |
H A D | todmostek.c | 27 * tod driver module for Mostek M48T59 part 61 &mod_miscops, "tod module for Mostek M48T59" 122 todinfo_t tod; local 130 tod.tod_year = BCD_TO_BYTE(CLOCK->clk_year) + YRBASE; 131 tod.tod_month = BCD_TO_BYTE(CLOCK->clk_month & 0x1f); 132 tod.tod_day = BCD_TO_BYTE(CLOCK->clk_day & 0x3f); 133 tod.tod_dow = BCD_TO_BYTE(CLOCK->clk_weekday & 0x7); 134 tod.tod_hour = BCD_TO_BYTE(CLOCK->clk_hour & 0x3f); 135 tod.tod_min = BCD_TO_BYTE(CLOCK->clk_min & 0x7f); 136 tod 161 todinfo_t tod = utc_to_tod(ts.tv_sec); local 222 todinfo_t tod; local [all...] |
H A D | todbq4802.c | 29 * tod driver module for TI BQ4802 part 87 &mod_miscops, "tod module for TI BQ4802" 165 todinfo_t tod; local 179 tod.tod_year = rtc.rtc_year + (rtc.rtc_century * 100) - 1900; 180 tod.tod_month = rtc.rtc_mon; 181 tod.tod_day = rtc.rtc_dom; 182 tod.tod_dow = rtc.rtc_dow; 183 tod.tod_hour = rtc.rtc_hrs; 184 tod.tod_min = rtc.rtc_min; 185 tod 249 todinfo_t tod = utc_to_tod(ts.tv_sec); local 319 todinfo_t tod; local [all...] |
H A D | todm5819.c | 71 &mod_miscops, "tod module for ALI M5819", 149 * Read from the tod, and if it isnt accessible wait 179 todinfo_t tod; local 185 tod.tod_year = rtc->rtc_year + (rtc->rtc_century * 100) - 1900; 186 tod.tod_month = rtc->rtc_mon; 187 tod.tod_day = rtc->rtc_dom; 188 tod.tod_dow = rtc->rtc_dow; 189 tod.tod_hour = rtc->rtc_hrs; 190 tod.tod_min = rtc->rtc_min; 191 tod 246 todinfo_t tod = utc_to_tod(ts.tv_sec); local 336 todinfo_t tod; local [all...] |
H A D | todblade.c | 174 * Read from the tod, and if it isnt accessible wait 204 todinfo_t tod; local 210 tod.tod_year = rtc->rtc_year + (rtc->rtc_century * 100) - 1900; 211 tod.tod_month = rtc->rtc_mon; 212 tod.tod_day = rtc->rtc_dom; 213 tod.tod_dow = rtc->rtc_dow; 214 tod.tod_hour = rtc->rtc_hrs; 215 tod.tod_min = rtc->rtc_min; 216 tod.tod_sec = rtc->rtc_sec; 218 return (tod); 272 todinfo_t tod = utc_to_tod(ts.tv_sec); local [all...] |
H A D | todm5819p_rmc.c | 28 * tod driver module for ALI M5819P part 73 &mod_miscops, "tod module for ALI M5819P" 160 * Read current time from the tod. If the tod isn't accessible, wait and 177 * tod is inaccessible: just return current software time 194 todinfo_t tod; local 200 tod.tod_year = rtc->rtc_year + (rtc->rtc_century * 100) - 1900; 201 tod.tod_month = rtc->rtc_mon; 202 tod.tod_day = rtc->rtc_dom; 203 tod 250 todinfo_t tod = utc_to_tod(ts.tv_sec); local 364 todinfo_t tod; local [all...] |
H A D | todds1337.c | 139 "tod driver for DS1337", /* Name of the module. */ 215 * cyclical call to get tod. 396 todinfo_t tod; local 415 tod.tod_year = rtc.rtc_year; 417 tod.tod_year += 100; 418 tod.tod_month = rtc.rtc_mon; 419 tod.tod_day = rtc.rtc_dom; 420 tod.tod_dow = rtc.rtc_dow; 421 tod.tod_hour = rtc.rtc_hrs; 422 tod 443 todinfo_t tod = utc_to_tod(ts.tv_sec); local 478 todinfo_t tod; local [all...] |
H A D | todds1287.c | 28 * The "todds1287" module has implementation for both tod 31 * chip. The tod interface accesses the RTC unit and pbio 825 todinfo_t tod; local 838 tod.tod_year = rtc.rtc_year + (rtc.rtc_century * 100) - 1900; 839 tod.tod_month = rtc.rtc_mon; 840 tod.tod_day = rtc.rtc_dom; 841 tod.tod_dow = rtc.rtc_dow; 842 tod.tod_hour = rtc.rtc_hrs; 843 tod.tod_min = rtc.rtc_min; 844 tod 952 todinfo_t tod = utc_to_tod(ts.tv_sec); local 1071 todinfo_t tod; local [all...] |
/illumos-gate/usr/src/uts/i86xpv/io/ |
H A D | xpvtod.c | 42 * tod driver module for i86xpv 48 todinfo_t tod; local 88 tod = utc_to_tod(ts.tv_sec); 89 if (tod.tod_year < 69) { 104 if (tod.tod_year > 38) 110 tod.tod_year += 100; 111 ts.tv_sec = tod_to_utc(tod);
|
/illumos-gate/usr/src/cmd/valtools/ |
H A D | cktime.c | 126 char *tod; local 241 tod = (char *)malloc(len); 242 if (!tod) { 247 n = cktime(tod, fmt, deflt, error, help, prompt); 253 (void) fputs(tod, stdout);
|
/illumos-gate/usr/src/cmd/krb5/kwarn/ |
H A D | kwarnd_send.c | 80 time_t tod; local 132 time(&tod); 133 cftime(time_buf, "%c", &tod);
|
/illumos-gate/usr/src/lib/smbsrv/libmlsvc/common/ |
H A D | srvsvc_clnt.c | 492 struct mslm_TIME_OF_DAY_INFO *tod; local 527 tod = arg.bufptr; 530 tv->tv_sec = tod->tod_elapsedt; 531 tv->tv_usec = tod->tod_msecs; 535 tm->tm_sec = tod->tod_secs; 536 tm->tm_min = tod->tod_mins; 537 tm->tm_hour = tod->tod_hours; 538 tm->tm_mday = tod->tod_day; 539 tm->tm_mon = tod->tod_month - 1; 540 tm->tm_year = tod [all...] |
/illumos-gate/usr/src/cmd/fm/fmd/common/ |
H A D | fmd_event.c | 58 uint64_t *tod; local 69 FMD_EVN_TOD, &tod, &n) == 0 && n >= 2) 70 ep->ev_time = *(const fmd_timeval_t *)tod; 81 fmd_timeval_t tod; local 117 fmd_time_sync(&tod, &hr0, 1); 118 fmd_time_tod2hrt(hr0, &tod, &ep->ev_time, &ep->ev_hrt); 129 fmd_timeval_t tod; local 152 fmd_time_sync(&tod, &hr0, 1); 167 fmd_time_hrt2tod(hr0, &tod, hrt, &ep->ev_time);
|
H A D | fmd_protocol.c | 147 int64_t tod[2]; local 153 tod[0] = tvp->tv_sec; 154 tod[1] = tvp->tv_usec; 163 err |= nvlist_add_int64_array(nvl, FM_SUSPECT_DIAG_TIME, tod, 2); 217 int64_t tod[2]; local 220 tod[0] = tvp->tv_sec; 221 tod[1] = tvp->tv_usec; 244 err |= nvlist_add_int64_array(nvl, FM_SUSPECT_DIAG_TIME, tod, 2);
|
H A D | fmd_sysevent.c | 284 fmd_timeval_t ftv, tod; local 378 tod.ftv_sec = ed.ed_tod_base.sec; 379 tod.ftv_nsec = ed.ed_tod_base.nsec; 380 fmd_time_hrt2tod(ed.ed_hrt_base, &tod, hrt, &ftv);
|
H A D | fmd_time.c | 87 struct timeval tod; local 90 (void) ftop->fto_gettimeofday(&tod, NULL); 97 todbase = tod; 239 fmd_dprintf(FMD_DBG_TMR, "simulator tod base tv_sec=%lx hrt=%llx\n", 257 hrtime_t tod, hrt, sec, rem; local 261 tod = fts->fts_tod; 266 sec = tod / NANOSEC + hrt / NANOSEC; 267 rem = tod % NANOSEC + hrt % NANOSEC;
|
/illumos-gate/usr/src/lib/fm/libfmevent/common/ |
H A D | fmev_evaccess.c | 72 uint64_t *tod; local 97 if (nvlist_lookup_uint64_array(iep->ei_nvl, "__tod", &tod, 105 iep->ei_fmtime[FM_TIME_SEC] = tod[0]; 106 iep->ei_fmtime[FM_TIME_NSEC] = tod[1];
|
/illumos-gate/usr/src/lib/fm/topo/libtopo/common/ |
H A D | topo_2xml.c | 49 time_t tod = time(NULL); local 57 (void) strftime(buf, sizeof (buf), "%b %d %T", localtime(&tod));
|
/illumos-gate/usr/src/cmd/write/ |
H A D | write.c | 100 time_t tod; local 358 time(&tod); 360 dcgettext(NULL, DATE_FMT, LC_TIME), localtime(&tod));
|
/illumos-gate/usr/src/cmd/fm/modules/sun4v/etm/ |
H A D | etm_ckpt.c | 113 uint64_t *tod; local 138 /* tod[1]: fractional of a second */ 139 if (nvlist_lookup_uint64_array(erpt, ETM_ATTR_TOD, &tod, &sz) == 0) { 141 id->ei_tod1 = (uint32_t)tod[1];
|
/illumos-gate/usr/src/uts/i86pc/io/ |
H A D | todpc_subr.c | 131 todinfo_t tod = utc_to_tod(ts.tv_sec - ggmtl()); local 144 tod.tod_year -= YRBASE; 145 if (tod.tod_year >= 100) { 146 tod.tod_year -= 100; 150 rtc.rtc_yr = BYTE_TO_BCD(tod.tod_year); 151 rtc.rtc_mon = BYTE_TO_BCD(tod.tod_month); 152 rtc.rtc_dom = BYTE_TO_BCD(tod.tod_day); 154 rtc.rtc_dow = (unsigned char)tod.tod_dow; 155 rtc.rtc_hr = BYTE_TO_BCD(tod.tod_hour); 156 rtc.rtc_min = BYTE_TO_BCD(tod 172 todinfo_t tod; local [all...] |
/illumos-gate/usr/src/lib/libadm/common/ |
H A D | cktime.c | 349 cktime(char *tod, char *fmt, char *defstr, char *error, char *help, argument 371 (void) strcpy(tod, defstr); 388 (void) strcpy(tod, input);
|
/illumos-gate/usr/src/uts/sun4u/snowbird/io/todds1307/ |
H A D | todds1307.c | 146 "tod driver for DS1307 v1.12", /* Name of the module */ 218 * cyclical call to get tod. 374 todinfo_t tod; local 393 tod.tod_year = rtc.rtc_year; 395 tod.tod_year += 100; 396 tod.tod_month = rtc.rtc_mon; 397 tod.tod_day = rtc.rtc_dom; 398 tod.tod_dow = rtc.rtc_dow; 399 tod.tod_hour = rtc.rtc_hrs; 400 tod 421 todinfo_t tod = utc_to_tod(ts.tv_sec); local [all...] |
/illumos-gate/usr/src/uts/common/os/ |
H A D | timers.c | 1373 todinfo_t tod; local 1393 tod.tod_sec = utc % 60; 1394 tod.tod_min = (utc % 3600) / 60; 1395 tod.tod_hour = (utc % 86400) / 3600; 1396 tod.tod_dow = (dse + 4) % 7 + 1; /* epoch was a Thursday */ 1408 tod.tod_day = day - days_thru_month[month] + 1; 1409 tod.tod_month = month & 15; 1410 tod.tod_year = year; 1412 saved_tod = tod; 1413 return (tod); 1417 tod_to_utc(todinfo_t tod) argument [all...] |