Lines Matching defs:tm
31 struct lc_time tm;
36 (void) memset(&tm, 0, sizeof (tm));
52 tm.c_fmt = str;
55 tm.x_fmt = str;
58 tm.X_fmt = str;
61 tm.ampm_fmt = str;
68 tm.date_fmt = str;
108 add_list(tm.mon, str, 12);
111 add_list(tm.month, str, 12);
114 add_list(tm.wday, str, 7);
117 add_list(tm.weekday, str, 7);
120 if (tm.am == NULL) {
121 tm.am = str;
122 } else if (tm.pm == NULL) {
123 tm.pm = str;
144 if (tm.mon[11] != NULL)
148 if (tm.month[11] != NULL)
152 if (tm.wday[6] != NULL)
156 if (tm.weekday[6] != NULL)
160 if (tm.pm != NULL)
181 free((char *)tm.mon[i]);
182 tm.mon[i] = NULL;
187 free((char *)tm.month[i]);
188 tm.month[i] = NULL;
193 free((char *)tm.wday[i]);
194 tm.wday[i] = NULL;
199 free((char *)tm.weekday[i]);
200 tm.weekday[i] = NULL;
204 free((char *)tm.am);
205 tm.am = NULL;
206 free((char *)tm.pm);
207 tm.pm = NULL;
224 if (putl_category(tm.mon[i], f) == EOF) {
229 if (putl_category(tm.month[i], f) == EOF) {
234 if (putl_category(tm.wday[i], f) == EOF) {
239 if (putl_category(tm.weekday[i], f) == EOF) {
250 if ((putl_category(tm.X_fmt, f) == EOF) ||
251 (putl_category(tm.x_fmt, f) == EOF) ||
252 (putl_category(tm.c_fmt, f) == EOF) ||
253 (putl_category(tm.am, f) == EOF) ||
254 (putl_category(tm.pm, f) == EOF) ||
255 (putl_category(tm.date_fmt ? tm.date_fmt : tm.c_fmt, f) == EOF) ||
256 (putl_category(tm.ampm_fmt, f) == EOF)) {