/illumos-gate/usr/src/contrib/ast/src/lib/libast/tm/ |
H A D | tmxfmt.c | 128 format = tm_info.deformat; in tmxfmt() 130 flags = tm_info.flags; in tmxfmt() 241 if (tm_info.deformat != tm_info.format[TM_DEFAULT]) in tmxfmt() 242 format = tm_info.deformat; in tmxfmt() 244 format = tm_info.format[TM_DEFAULT]; in tmxfmt() 260 p = tm_info.format[TM_CTIME]; in tmxfmt() 269 p = tm_info.format[TM_DATE]; in tmxfmt() 363 p = tm_info.format[TM_MERIDIAN + (tm->tm_hour >= 12)]; in tmxfmt() 379 p = tm_info.format[TM_DISTANT]; in tmxfmt() 382 p = tm_info.format[TM_DATE_1]; in tmxfmt() [all …]
|
H A D | tminit.c | 186 …tm_info.deformat = (n && (n = strlen(v)) > 0 && (n < 2 || v[n-2] != '%' || v[n-1] != '?')) ? strdu… in tmopt() 189 tm_info.local->type = (n && *v) ? ((zp = tmtype(v, NiL)) ? zp->type : strdup(v)) : 0; in tmopt() 193 tm_info.flags |= ((Namval_t*)p)->value; in tmopt() 195 tm_info.flags &= ~((Namval_t*)p)->value; in tmopt() 261 tm_info.zone = tm_info.local = &local; in tmlocal() 359 tmpoff(s, e - s, tm_info.format[TM_DT], m, TM_DST); in tmlocal() 374 s = tmpoff(s, e - s, tm_info.format[TM_UT], n, 0); in tmlocal() 379 tmpoff(s, e - s, tm_info.format[TM_UT], m, TM_DST); in tmlocal() 415 if (!(tm_info.flags & TM_ADJUST)) in tmlocal() 420 tm_info.flags |= TM_ADJUST; in tmlocal() [all …]
|
H A D | tmlocale.c | 116 tm_info.deformat = b[TM_UT]; in fixup() 121 tm_info.deformat = b[TM_DEFAULT]; in fixup() 122 tm_info.format = b; in fixup() 123 if (!(tm_info.deformat = state.format)) in fixup() 124 tm_info.deformat = tm_info.format[TM_DEFAULT]; in fixup() 543 #define native_lc_time(li) ((li->data=(void*)(tm_info.format=tm_data.format)),(tm_info.deformat=tm_… 569 tm_info.format = b; in load() 570 if (!(tm_info.deformat = state.format)) in load() 571 tm_info.deformat = tm_info.format[TM_DEFAULT]; in load() 574 tm_info.format = tm_data.format; in load() [all …]
|
H A D | tmlex.c | 57 if (tm_info.format != tm_data.format && tab >= tm_info.format && tab < tm_info.format + TM_NFORM) in tmlex() 59 tab = tm_data.format + (tab - tm_info.format); in tmlex() 60 if (suf && tab >= tm_info.format && tab < tm_info.format + TM_NFORM) in tmlex() 61 suf = tm_data.format + (suf - tm_info.format); in tmlex()
|
H A D | tmxtime.c | 61 tmset(tm_info.zone); in tmxtime() 80 if (west != TM_UTCZONE && !(tm_info.flags & TM_UTC)) in tmxtime() 88 t += tm_info.zone->west * 60; in tmxtime() 89 if (!tm_info.zone->daylight) in tmxtime() 95 now = tmxsec(tmxtime(tm, tm_info.zone->west)); in tmxtime() 100 t += tm_info.zone->dst * 60; in tmxtime() 106 if (!tm_info.zone->daylight) in tmxtime() 113 now = tmxsec(tmxtime(tm, tm_info.zone->west)); in tmxtime() 124 if (tm_info.flags & TM_LEAP) in tmxtime()
|
H A D | tmtype.c | 48 tmset(tm_info.zone); in tmtype() 49 zp = tm_info.local; in tmtype() 53 if (zp == tm_info.local) zp = tm_data.zone; in tmtype()
|
H A D | tmzone.c | 58 tmset(tm_info.zone); in tmzone() 68 zp = tm_info.local; in tmzone() 89 if (zp == tm_info.local) in tmzone()
|
H A D | tmxmake.c | 55 tmset(tm_info.zone); in tmxtm() 57 if ((tm_info.flags & (TM_ADJUST|TM_LEAP)) == (TM_ADJUST|TM_LEAP) && (n = tmxsec(t))) in tmxtm() 70 if (tm_info.flags & TM_UTC) in tmxtm() 73 tm->tm_zone = tm_info.zone; in tmxtm()
|
H A D | tmxleap.c | 43 tmset(tm_info.zone); in tmxleap() 44 if (tm_info.flags & TM_ADJUST) in tmxleap()
|
H A D | tmxscan.c | 225 if ((n = tmlex(s, &u, tm_info.format + lo, hi - lo, NiL, 0)) < 0) in scan() 240 if ((n = tmlex(s, &u, tm_info.format + lo, hi - lo, NiL, 0)) < 0) in scan() 310 if ((n = tmlex(s, &u, tm_info.format + TM_MERIDIAN, TM_UT - TM_MERIDIAN, NiL, 0)) < 0) in scan() 357 p = tm_info.format[TM_DATE]; in scan() 360 p = tm_info.format[TM_TIME]; in scan() 389 tm_info.date = zp; in scan()
|
H A D | tmxdate.c | 210 tm_info.date = tm->tm_zone; in tmxdate() 808 …else if (f == -1 && isalpha(*t) && tmlex(t, &t, tm_info.format + TM_ORDINAL, TM_ORDINALS - TM_ORDI… in tmxdate() 836 …if ((j = tmlex(u, NiL, tm_info.format, TM_NFORM, tm_info.format + TM_SUFFIXES, TM_PARTS - TM_SUFFI… in tmxdate() 899 …|| m > 31 || dig2(x, m) > 24 || dig2(x, m) > 60 || dig2(x, m) <= 60 && !(tm_info.flags & TM_DATEST… in tmxdate() 1019 switch (tmlex(s, &t, tm_info.format, TM_NFORM, tm_info.format + TM_MERIDIAN, 2)) in tmxdate() 1102 if (tmlex(s, &t, tm_info.format + TM_SUFFIXES, TM_PARTS - TM_SUFFIXES, NiL, 0) >= 0) in tmxdate() 1198 …if ((j = tmlex(s, &t, tm_info.format, TM_NFORM, tm_info.format + TM_SUFFIXES, TM_PARTS - TM_SUFFIX… in tmxdate() 1300 if ((k = tmlex(s, &t, tm_info.format + TM_LAST, TM_NOISE - TM_LAST, NiL, 0)) >= 0) in tmxdate() 1345 …if ((k = tmlex(s, &t, tm_info.format + TM_NEXT, TM_EXACT - TM_NEXT, NiL, 0)) >= 0 || (k = tmlex(s,… in tmxdate() 1454 if (isdigit(*s) || tmlex(s, &t, tm_info.format, TM_DAY_ABBREV, NiL, 0) >= 0) in tmxdate() [all …]
|
/illumos-gate/usr/src/lib/fm/topo/libtopo/common/ |
H A D | topo_mod.c | 132 if (mod->tm_info->tmi_version != version) { in topo_mod_load() 166 if (mod->tm_info != NULL) in set_register_error() 187 if ((mod->tm_info = topo_mod_zalloc(mod, sizeof (topo_imodinfo_t))) in topo_mod_register() 190 if ((mod->tm_info->tmi_ops = topo_mod_alloc(mod, in topo_mod_register() 194 mod->tm_info->tmi_desc = topo_mod_strdup(mod, mip->tmi_desc); in topo_mod_register() 195 if (mod->tm_info->tmi_desc == NULL) in topo_mod_register() 198 mod->tm_info->tmi_scheme = topo_mod_strdup(mod, mip->tmi_scheme); in topo_mod_register() 199 if (mod->tm_info->tmi_scheme == NULL) in topo_mod_register() 203 mod->tm_info->tmi_version = (topo_version_t)mip->tmi_version; in topo_mod_register() 204 mod->tm_info->tmi_ops->tmo_enum = mip->tmi_ops->tmo_enum; in topo_mod_register() [all …]
|
H A D | topo_builtin.c | 72 if ((*bp->bltin_init)(mp, version) != 0 || mp->tm_info == NULL) { in bltin_init() 89 if (mp->tm_info != NULL) { in bltin_fini()
|
H A D | topo_module.h | 75 topo_imodinfo_t *tm_info; /* Module info registered with handle */ member
|
H A D | topo_module.c | 56 if (mod->tm_info->tmi_ops->tmo_release != NULL) in topo_mod_release() 57 mod->tm_info->tmi_ops->tmo_release(mod, node); in topo_mod_release()
|
H A D | topo_node.c | 177 if (mod->tm_info->tmi_ops->tmo_release != NULL) in topo_node_destroy() 178 mod->tm_info->tmi_ops->tmo_release(mod, node); in topo_node_destroy()
|
H A D | topo_digraph.c | 147 return (topo_digraph_get(mod->tm_hdl, mod->tm_info->tmi_scheme)); in find_digraph() 266 " scheme %s", __func__, mod->tm_info->tmi_scheme); in topo_vertex_new()
|
H A D | topo_digraph_xml.c | 1447 tdg = topo_digraph_get(mod->tm_hdl, mod->tm_info->tmi_scheme); in topo_digraph_deserialize()
|
/illumos-gate/usr/src/contrib/ast/src/lib/libcmd/ |
H A D | date.c | 244 if (tm_info.flags & TM_UTC) in settime() 306 tm_info.flags = TM_DATESTYLE; in b_date() 336 tm_info.flags |= TM_LEAP; in b_date() 372 tm_info.flags |= TM_UTC; in b_date() 511 tm_info.flags = 0; in b_date()
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/include/ |
H A D | tm.h | 162 #define tm_info (*_tm_infop_) macro
|
/illumos-gate/usr/src/cmd/mdb/common/modules/libtopo/ |
H A D | libtopo.c | 237 mdb_printf("%-12s 0x%-34p %-30s\n", "tm_info", tm.tm_info, in topo_module()
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/ |
H A D | RELEASE | 1289 tmlex: check tm_info.format and tm_data.format 1800 95-01-11 change tm/*.c tmset(0) to tmset(tm_info.zone) to keep user setting
|