Home
last modified time | relevance | path

Searched refs:tm_info (Results 1 – 24 of 24) sorted by relevance

/titanic_41/usr/src/lib/libast/common/tm/
H A Dtminit.c185tm_info.deformat = (n && (n = strlen(v)) > 0 && (n < 2 || v[n-2] != '%' || v[n-1] != '?')) ? strdu… in tmopt()
188 tm_info.local->type = (n && *v) ? ((zp = tmtype(v, NiL)) ? zp->type : strdup(v)) : 0; in tmopt()
192 tm_info.flags |= ((Namval_t*)p)->value; in tmopt()
194 tm_info.flags &= ~((Namval_t*)p)->value; in tmopt()
260 tm_info.zone = tm_info.local = &local; in tmlocal()
358 tmpoff(s, e - s, tm_info.format[TM_DT], m, TM_DST); in tmlocal()
373 s = tmpoff(s, e - s, tm_info.format[TM_UT], n, 0); in tmlocal()
378 tmpoff(s, e - s, tm_info.format[TM_UT], m, TM_DST); in tmlocal()
414 if (!(tm_info.flags & TM_ADJUST)) in tmlocal()
419 tm_info.flags |= TM_ADJUST; in tmlocal()
[all …]
H A Dtmxfmt.c128 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()
278 p = tm_info.deformat; in tmxfmt()
309 p = tm_info.format[TM_INTERNATIONAL]; in tmxfmt()
323 p = tm_info.format[TM_DATE_1]; in tmxfmt()
[all …]
H A Dtmlocale.c100 tm_info.deformat = b[TM_UT]; in fixup()
105 tm_info.deformat = b[TM_DEFAULT]; in fixup()
106 tm_info.format = b; in fixup()
107 if (!(tm_info.deformat = state.format)) in fixup()
108 tm_info.deformat = tm_info.format[TM_DEFAULT]; in fixup()
527 #define native_lc_time(li) ((li->data=(void*)(tm_info.format=tm_data.format)),(tm_info.deformat=tm_…
553 tm_info.format = b; in load()
554 if (!(tm_info.deformat = state.format)) in load()
555 tm_info.deformat = tm_info.format[TM_DEFAULT]; in load()
558 tm_info.format = tm_data.format; in load()
[all …]
H A Dtmlex.c57 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 Dtmxtime.c61 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 Dtmtype.c48 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 Dtmzone.c58 tmset(tm_info.zone); in tmzone()
68 zp = tm_info.local; in tmzone()
89 if (zp == tm_info.local) in tmzone()
H A Dtmxmake.c55 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 Dtmxleap.c43 tmset(tm_info.zone); in tmxleap()
44 if (tm_info.flags & TM_ADJUST) in tmxleap()
H A Dtmxscan.c225 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()
388 tm_info.date = zp; in scan()
H A Dtmxdate.c210 tm_info.date = tm->tm_zone; in tmxdate()
807 …else if (f == -1 && isalpha(*t) && tmlex(t, &t, tm_info.format + TM_ORDINAL, TM_ORDINALS - TM_ORDI… in tmxdate()
890 …|| m > 31 || dig2(x, m) > 24 || dig2(x, m) > 60 || dig2(x, m) <= 60 && !(tm_info.flags & TM_DATEST… in tmxdate()
1009 switch (tmlex(s, &t, tm_info.format, TM_NFORM, tm_info.format + TM_MERIDIAN, 2)) in tmxdate()
1089 if (tmlex(s, &t, tm_info.format + TM_SUFFIXES, TM_PARTS - TM_SUFFIXES, NiL, 0) >= 0) in tmxdate()
1187 …if ((j = tmlex(s, &t, tm_info.format, TM_NFORM, tm_info.format + TM_SUFFIXES, TM_PARTS - TM_SUFFIX… in tmxdate()
1287 if ((k = tmlex(s, &t, tm_info.format + TM_LAST, TM_NOISE - TM_LAST, NiL, 0)) >= 0) in tmxdate()
1332 …if ((k = tmlex(s, &t, tm_info.format + TM_NEXT, TM_EXACT - TM_NEXT, NiL, 0)) >= 0 || (k = tmlex(s,… in tmxdate()
1441 if (isdigit(*s) || tmlex(s, &t, tm_info.format, TM_DAY_ABBREV, NiL, 0) >= 0) in tmxdate()
1534 tm_info.date = zp; in tmxdate()
[all …]
/titanic_41/usr/src/lib/fm/topo/libtopo/common/
H A Dtopo_mod.c126 if (mod->tm_info->tmi_version != version) { in topo_mod_load()
160 if (mod->tm_info != NULL) in set_register_error()
181 if ((mod->tm_info = topo_mod_zalloc(mod, sizeof (topo_imodinfo_t))) in topo_mod_register()
184 if ((mod->tm_info->tmi_ops = topo_mod_alloc(mod, in topo_mod_register()
188 mod->tm_info->tmi_desc = topo_mod_strdup(mod, mip->tmi_desc); in topo_mod_register()
189 if (mod->tm_info->tmi_desc == NULL) in topo_mod_register()
192 mod->tm_info->tmi_scheme = topo_mod_strdup(mod, mip->tmi_scheme); in topo_mod_register()
193 if (mod->tm_info->tmi_scheme == NULL) in topo_mod_register()
197 mod->tm_info->tmi_version = (topo_version_t)mip->tmi_version; in topo_mod_register()
198 mod->tm_info->tmi_ops->tmo_enum = mip->tmi_ops->tmo_enum; in topo_mod_register()
[all …]
H A Dtopo_builtin.c70 if ((*bp->bltin_init)(mp, version) != 0 || mp->tm_info == NULL) { in bltin_init()
87 if (mp->tm_info != NULL) { in bltin_fini()
H A Dtopo_module.h77 topo_imodinfo_t *tm_info; /* Module info registered with handle */ member
H A Dtopo_module.c53 if (mod->tm_info->tmi_ops->tmo_release != NULL) in topo_mod_release()
54 mod->tm_info->tmi_ops->tmo_release(mod, node); in topo_mod_release()
H A Dtopo_node.c173 if (mod->tm_info->tmi_ops->tmo_release != NULL) in topo_node_destroy()
174 mod->tm_info->tmi_ops->tmo_release(mod, node); in topo_node_destroy()
/titanic_41/usr/src/lib/libcmd/common/
H A Ddate.c235 if (tm_info.flags & TM_UTC) in settime()
297 tm_info.flags = TM_DATESTYLE; in b_date()
327 tm_info.flags |= TM_LEAP; in b_date()
346 tm_info.flags |= TM_UTC; in b_date()
485 tm_info.flags = 0; in b_date()
/titanic_41/usr/src/lib/libast/common/include/
H A Dtm.h162 #define tm_info (*_tm_infop_) macro
/titanic_41/usr/src/lib/libast/amd64/include/ast/
H A Dtm.h173 #define tm_info (*_tm_infop_) macro
/titanic_41/usr/src/lib/libast/i386/include/ast/
H A Dtm.h173 #define tm_info (*_tm_infop_) macro
/titanic_41/usr/src/lib/libast/sparcv9/include/ast/
H A Dtm.h173 #define tm_info (*_tm_infop_) macro
/titanic_41/usr/src/lib/libast/sparc/include/ast/
H A Dtm.h173 #define tm_info (*_tm_infop_) macro
/titanic_41/usr/src/cmd/mdb/common/modules/libtopo/
H A Dlibtopo.c236 mdb_printf("%-12s 0x%-34p %-30s\n", "tm_info", tm.tm_info, in topo_module()
/titanic_41/usr/src/lib/libast/common/
H A DRELEASE1101 tmlex: check tm_info.format and tm_data.format
1612 95-01-11 change tm/*.c tmset(0) to tmset(tm_info.zone) to keep user setting