/ast/src/lib/libast/sfio/ |
H A D | sfreserve.c | 38 reg ssize_t n, now, sz, iosz; local 104 if((n = now = f->endb - f->next) < 0) 127 now = n; 157 if(n == now || sferror(f) || sfeof(f)) /* no progress */
|
/ast/src/lib/libast/tm/ |
H A D | tmxduration.c | 38 Time_t now; local 45 now = TMX_NOW; 49 ns = tmxdate(s, &last, now) - now; 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 | 53 time_t now; local 95 now = tmxsec(tmxtime(tm, tm_info.zone->west)); 97 if (!(tl = tmlocaltime(&now))) 113 now = tmxsec(tmxtime(tm, tm_info.zone->west)); 115 if (!(tl = tmlocaltime(&now)))
|
H A D | tmxmake.c | 45 time_t now; local 111 now = tmxsec(t); 118 now = tmxsec(tmxtime(&te, tm->tm_zone->west)); 120 if ((tp = tmlocaltime(&now)) && ((tm->tm_isdst = tp->tm_isdst) || o))
|
H A D | tvtouch.c | 94 Tv_t now; local 169 tvgettime(&now); 171 av = (const Tv_t*)&now; 173 mv = (const Tv_t*)&now; 198 if (errno != ENOENT && av == (const Tv_t*)&now && mv == (const Tv_t*)&now && !utimets(path, NiL)) 227 if (errno != ENOENT && av == (const Tv_t*)&now && mv == (const Tv_t*)&now && !utimes(path, NiL)) 239 if (errno != ENOENT && av == (const Tv_t*)&now && mv == (const Tv_t*)&now [all...] |
H A D | tminit.c | 217 time_t now; local 262 time(&now); 263 n = tzwest(&now, &isdst); 272 now -= 31 * 24 * 60 * 60; 273 if ((m = tzwest(&now, &isdst)) != n) 289 * now get the time zone names 417 now = (time_t)78811200; /* Jun 30 1972 23:59:60 */ 418 tp = tmlocaltime(&now);
|
H A D | tmxfmt.c | 118 Time_t now; local 396 now = tmxgettime(); 397 if (warped(t, now)) 491 now = tmxgettime(); 492 p = warped(t, now) ? (char*)0 : (char*)format; 519 now = t; 527 cp += sfsprintf(cp, ep - cp, fmt, tmxsec(now)); 530 n = sfsprintf(cp, ep - cp, ".%09I*u", sizeof(Tmxnsec_t), tmxnsec(now));
|
H A D | tmxdate.c | 153 * now provides default values 157 tmxdate(register const char* s, char** e, Time_t now) argument 194 fix = tmxscan(s, &last, NiL, &t, now, 0); 206 * use now for defaults 209 tm = tmxtm(&ts, now, NiL); 256 now = strtoull(s, &t, 0); 264 now = tmxsns(now, fix); 266 else if (now <= 0x7fffffff) 267 now [all...] |
/ast/src/cmd/3d/ |
H A D | touch.c | 80 time_t now; local 101 time(&now); 102 if (!atime) atime = now; 103 if (!mtime) mtime = now; 154 return((atime != now || mtime != now) ? utime(file, ut) : 0); 162 if (atime == now && mtime == now && (fd = open(file, O_RDWR|O_cloexec)) >= 0)
|
/ast/src/cmd/cs/vcs_src/ |
H A D | vcs_dir.c | 26 static time_t now; variable 118 now = cs.time; 137 if (R_ISMARKER(dp->tag) && dp->tag->stat.st_mtime < now)
|
/ast/src/lib/libtksh/tcl/ |
H A D | tclUnixTime.c | 43 TclpGetTimeZone(now) 44 unsigned long now; 113 unsigned long now; 122 now = (unsigned long) times(&dummy); 125 now = date.tv_sec*1000000 + date.tv_usec; 128 return now; 111 unsigned long now; local
|
/ast/src/lib/libpz/ |
H A D | pzopen.c | 239 Tv_t now; local 291 tvgettime(&now); 292 if (!(e = ((unsigned long)now.tv_sec - (unsigned long)pz->start.tv_sec) * 100 + ((long)now.tv_nsec - (long)pz->start.tv_nsec) / 10000000L))
|
/ast/src/lib/libcmd/ |
H A D | date.c | 219 settime(Shbltin_t* context, const char* cmd, Time_t now, int adjust, int network) argument 227 return tmxsettime(now); 235 tmxfmt(buf, sizeof(buf), "%m%d%H" "%M%Y.%S", now); 241 tmxfmt(buf, sizeof(buf), "%Y%m%d%H" "%M.%S", now); 260 convert(register Fmt_t* f, char* s, Time_t now) argument 267 now = tmxscan(s, &t, f->format, &u, now, 0); 273 return now; 284 Time_t now; local 392 now [all...] |
/ast/src/cmd/ksh93/bltins/ |
H A D | sleep.c | 73 Time_t now,ns; local 75 now = TMX_NOW; 77 ns = tmxdate(cp, &last, now); 90 ns = tmxdate(pp, &last, now); 92 ns = tmxdate(pp, &last, now); 96 d = ns - now; 114 time_t now; local 121 if(tloc < (now=time(NIL(time_t*)))) 123 d = (double)(tloc-now);
|
H A D | alarm.c | 190 double now; local 194 now = tmp.tv_sec + 1.e-6*tmp.tv_usec; 196 now = (double)time(NIL(time_t*)); 202 double x = d + now; 206 d -= now;
|
/ast/src/cmd/ksh93/sh/ |
H A D | timers.c | 49 register double now; local 53 now = tp.tv_sec + 1.e-6*tp.tv_usec; 56 now = (double)time((time_t*)0); 58 return(now+.001); 90 double now; local 109 now = getnow(); 116 if(tp->wakeup <=now) 140 while((tp->wakeup += tp->incr) <= now); 144 if(tpmin && (left==0 || (tp && tpmin->wakeup < (now+left)))) 148 left = setalarm(tpmin->wakeup-now); [all...] |
/ast/src/cmd/nmake/ |
H A D | trap.c | 121 register Seconds_t now; local 124 now = CURSECS; 127 else if (trap.alarms->time <= now) 130 t = trap.alarms->time - now; 132 sfsprintf(tmpname, MAXNAME, "%lu", t ? (now + t) : t); 143 error(level, "%6s %s %s", fmtelapsed((a->time >= now) ? (a->time - now) : 0, 1), timestr(tmxsns(a->time, 0)), a->rule->name); 163 Seconds_t now; local 166 now = CURSECS; 169 t += now; [all...] |
H A D | rule.c | 616 Time_t now; local 621 now = CURTIME; 630 if (tm >= now) 638 if (tm >= now) 1628 * expand some dynamic values now for efficiency
|
/ast/src/cmd/std/ |
H A D | pss-ps.c | 44 unsigned long now; member in struct:State_s 74 state->now = (unsigned long)time(NiL) + 60; 296 if ((unsigned long)pe->start > state->now)
|
/ast/src/cmd/mailx/ |
H A D | send.c | 299 time_t now; local 309 time(&now); 310 fprintf(nfo, "From %s %s", state.var.user, ctime(&now));
|
H A D | local.c | 835 time_t now; local 837 now = time(NiL); 842 st.st_mtime = st.st_atime = now; 847 atime = now; 851 mtime = now;
|
/ast/src/cmd/at/ |
H A D | at.c | 66 " \bevery Monday\b.]:[time:=now]" 166 time_t now; local 193 date = "now"; 374 now = time(NiL); 375 start = tmdate(s, &t, &now); 376 if (!every && (unsigned long)start <= (unsigned long)now) 377 start = tmdate(s - 3, &t, &now);
|
/ast/src/cmd/dsslib/time_t/ |
H A D | time_t.c | 182 Time_t now = TMX_NOW; local 188 t = tmxscan(buf, &e, details, &f, now, 0); 190 t = tmxdate(buf, &e, now); 193 t = tmxdate(buf, &e, now);
|
/ast/src/lib/libtk/generic/ |
H A D | tkCanvPs.c | 151 time_t now; 332 * There's no need to report the error now; it can be 334 * happen now, so we still have to check for errors later 359 time(&now); 361 ctime(&now), (char *) NULL); 150 time_t now; local
|
/ast/src/cmd/ss/ |
H A D | ssd.c | 42 #define since(t) ((now>((unsigned long)t))?(now-((unsigned long)t)):0L) 240 update(char* data, unsigned long now, int delay, CSSTAT* ss) argument 256 if (now) 258 if (now > next || ss->idle < idle) 260 next = now + delay; 261 now = 0; 265 if (!now && csnote(data, ss) || stat(data, &st)) finish(1); 293 unsigned long now; local 462 now [all...] |