/ast/src/lib/libast/comp/ |
H A D | mktime.c | 50 mktime(struct tm* ts) 55 tm.tm_sec = ts->tm_sec; 56 tm.tm_min = ts->tm_min; 57 tm.tm_hour = ts->tm_hour; 58 tm.tm_mday = ts->tm_mday; 59 tm.tm_mon = ts->tm_mon; 60 tm.tm_year = ts->tm_year; 61 tm.tm_wday = ts->tm_wday; 62 tm.tm_yday = ts->tm_yday; 63 tm.tm_isdst = ts [all...] |
H A D | strptime.c | 48 strptime(const char* s, const char* format, struct tm* ts) 56 tm.tm_sec = ts->tm_sec; 57 tm.tm_min = ts->tm_min; 58 tm.tm_hour = ts->tm_hour; 59 tm.tm_mday = ts->tm_mday; 60 tm.tm_mon = ts->tm_mon; 61 tm.tm_year = ts->tm_year; 62 tm.tm_wday = ts->tm_wday; 63 tm.tm_yday = ts->tm_yday; 64 tm.tm_isdst = ts [all...] |
H A D | getdate.c | 61 static struct tm ts; 71 ts.tm_sec = tm->tm_sec; 72 ts.tm_min = tm->tm_min; 73 ts.tm_hour = tm->tm_hour; 74 ts.tm_mday = tm->tm_mday; 75 ts.tm_mon = tm->tm_mon; 76 ts.tm_year = tm->tm_year; 77 ts.tm_wday = tm->tm_wday; 78 ts.tm_yday = tm->tm_yday; 79 ts [all...] |
H A D | iconv.c | 1346 char* ts; local 1376 ts = tb; 1378 error(DEBUG_TRACE, "AHA#%d iconv_write ts=%p tn=%d", __LINE__, ts, tn); 1381 while (*fn > 0 && _ast_iconv(cd, fb, fn, &ts, &tn) == (size_t)(-1)) 1387 _r = _ast_iconv(cd, fb, fn, &ts, &tn); 1409 *ts++ = (disc->fill >= 0) ? disc->fill : **fb; 1422 error(DEBUG_TRACE, "AHA#%d iconv_write %d", __LINE__, ts - tb); 1424 sfwrite(op, tb, ts - tb); 1425 r += ts 1442 char* ts; local [all...] |
/ast/src/lib/libast/aso/ |
H A D | asorelax.c | 48 struct timespec ts; 50 ts.tv_sec = 0; 51 ts.tv_nsec = nsec; 52 return nanosleep(&ts, 0);
|
/ast/src/lib/libast/tm/ |
H A D | tvtouch.c | 96 struct timespec ts[2]; local 112 ts[0].tv_sec = 0; 113 ts[0].tv_nsec = UTIME_NOW; 117 ts[0].tv_sec = 0; 118 ts[0].tv_nsec = UTIME_OMIT; 122 ts[0].tv_sec = av->tv_sec; 123 ts[0].tv_nsec = NS(av->tv_nsec); 127 ts[1].tv_sec = 0; 128 ts[1].tv_nsec = UTIME_NOW; 132 ts[ [all...] |
H A D | tmxduration.c | 37 Time_t ts; local 57 ts = tmxdate(t, &x, now); 61 ns = ts - now; 67 ts = tmxdate(t, &x, now); 71 ns = ts - now;
|
H A D | tmxtime.c | 56 Tm_t ts; local 58 ts = *tm; 60 tm = &ts;
|
H A D | tmxmake.c | 137 static Tm_t ts; local 139 return tmxtm(&ts, t, NiL);
|
H A D | tmxscan.c | 185 Tm_t ts; local 194 tm = tmxtm(&ts, t, NiL);
|
H A D | tmxfmt.c | 121 Tm_t ts; local 126 tm = tmxtm(&ts, t, NiL);
|
H A D | tmxdate.c | 186 Tm_t ts; local 209 tm = tmxtm(&ts, now, NiL);
|
/ast/src/lib/libast/port/ |
H A D | astwinsize.c | 87 struct ttysize ts; 89 if (!ttctl(fd, TIOCGSIZE, &ts) && ts.ts_lines > 0 && ts.ts_cols > 0) 91 if (rows) *rows = ts.ts_lines; 92 if (cols) *cols = ts.ts_cols;
|
/ast/src/lib/libvcodex/ |
H A D | vclzparse.c | 134 Vcchar_t *ms, *ts, *et, *mstr; local 156 ts = vcpa->tar + (m = mt->tpos - vcpa->nsrc); 157 et = ts + (n <= (m = vcpa->ntar-m) ? n : m); 160 ts += mt->size; ms += (type ? -mt->size : mt->size); 161 for(; ts < et; ts += n, ms += (type ? -n : n)) 162 { for(u = mmin, n = 0, en = et-ts; n < en; ) 166 if(ms[type ? -m : m] == (cmap ? cmap[ts[m]] : ts[m])) 173 if(ms[type ? -m : m] != (cmap ? cmap[ts[ 204 Vcchar_t *ks, *ns, *ts, *et, *sm, *em; local [all...] |
/ast/src/lib/libcmd/ |
H A D | date.c | 285 Time_t ts; local 415 ts = convert(fmts, s, now); 417 if (te > ts) 418 e += te - ts; 420 e += ts - te;
|
/ast/src/cmd/coshell/ |
H A D | main.c | 290 struct stat ts; local 566 else if (!fstat(state.con[fd].info.user.fds[1], &st) && !fstat(state.con[fd].info.user.fds[2], &ts) && st.st_ino == ts.st_ino && st.st_dev == ts.st_dev) 913 struct stat ts; local 917 if (!fstat(1, &st) && !fstat(2, &ts) && st.st_ino == ts.st_ino && st.st_dev == ts.st_dev)
|
/ast/src/cmd/INIT/ |
H A D | mamake.c | 652 Stat_t ts; local 658 if ((s = (char*)search(state.vars, "PWD", NiL)) && !stat(s, &ts) && 659 ts.st_dev == st.st_dev && ts.st_ino == st.st_ino) 684 if (stat(state.pwd, &ts)) 686 if (ts.st_dev == st.st_dev && ts.st_ino == st.st_ino) 697 if (stat(state.pwd, &ts)) 700 if (ts.st_dev == st.st_dev && ts [all...] |
/ast/src/lib/libast/misc/ |
H A D | optget.c | 2379 int ts; local 3731 ts = 0; 3734 ts = OPT_USAGE + m; 3757 if ((rm = margin - ts) < OPT_MARGIN) 3776 ts = ip->stop; 3886 ts = ip->stop; 3887 if (co >= ts) 3892 ts = ip->stop; 3895 while (co < ts) 4035 for (co = 0; co < ts; c [all...] |
/ast/src/cmd/html/ |
H A D | troff2html.c | 4994 int ts; local 5727 ta = state.ta[ts = 0]; 5730 if (state.ta[ts+1]) 5731 ts++; 5732 ta += state.ta[ts];
|
/ast/src/cmd/nmake/ |
H A D | object.c | 1460 unsigned long ts; local 1850 ts = sfgetu(sp); 1863 r->time = tmxsns(ts, tn); 1887 ts = sfgetu(sp); 1888 r->event = tmxsns(ts, tn);
|
/ast/src/cmd/re/ |
H A D | testregex.c | 1075 #define TABS(n) &ts[7-((n)&7)] 1077 static char ts[] = "\t\t\t\t\t\t\t"; variable
|