Searched refs:now (Results 1 - 25 of 536) sorted by relevance

1234567891011>>

/illumos-gate/usr/src/boot/sys/boot/arm/at91/libat91/
H A Ddelay.c37 unsigned later, now; local
39 now = AT91C_BASE_ST->ST_CRTR;
40 later = (now + us / 25 + 1) & AT91C_ST_CRTV;
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/vars/
H A Dtst.walltimestamp.d31 uint64_t now;
35 now = 18252813184; /* Jan 1, 2004 00:00:00 */
46 /walltimestamp < now/
48 printf("%d (%Y) is before %Y", walltimestamp, walltimestamp, now);
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/krb5/os/
H A Dc_ustime.c72 timestruc_t now; local
74 gethrestime(&now);
75 tv.tv_sec = now.tv_sec;
76 tv.tv_usec = now.tv_nsec / (NANOSEC / MICROSEC);
94 struct time_now now; local
97 err = get_time_now(&now);
112 if ((now.sec == last_time.sec) && (now.usec <= last_time.usec)) {
114 now.usec = ++last_time.usec;
115 if (now
[all...]
/illumos-gate/usr/src/cmd/oamuser/lib/
H A Dvexpire.c44 time_t tmp, now; local
50 now = time( (time_t *)0 );
53 tm = localtime( &now );
54 now -= tm->tm_hour * 60*60 + tm->tm_min * 60 + tm->tm_sec;
55 now += 24 * 60 * 60;
57 if( tmp < now ) return( INVALID );
59 if( expire ) *expire = now;
/illumos-gate/usr/src/lib/libbc/libc/compat/sys5/
H A Dmkepoch.c46 struct timeval now; local
48 if (gettimeofday(&now, (struct timezone *)NULL) < 0) {
53 if (printf("static long epoch = %ld;\n", now.tv_sec) == EOF) {
/illumos-gate/usr/src/grub/grub-0.97/netboot/
H A Di386_timer.c158 unsigned long long now; local
159 rdtscll(now);
160 return now < timer_timeout;
165 unsigned long long now; local
166 rdtscll(now);
167 timer_timeout = now + usecs * ((clocks_per_tick * TICKS_PER_SEC)/(1000*1000));
172 unsigned long long now; local
173 rdtscll(now);
174 timer_timeout = now + nsecs * ((clocks_per_tick * TICKS_PER_SEC)/(1000*1000*1000));
180 unsigned long long now; local
[all...]
/illumos-gate/usr/src/psm/stand/boot/sparc/common/
H A Dsparc.il30 ! stub function for now
/illumos-gate/usr/src/lib/libast/common/tm/
H A Dtmxduration.c38 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;
/illumos-gate/usr/src/boot/sys/boot/i386/libi386/
H A Dtime.c73 time_t now, check; local
79 now = check;
81 if (check != now)
85 if (now < lasttime)
86 now += 24 * 3600;
87 lasttime = now;
90 *t = now;
91 return(now);
H A Dspinconsole.c91 time_t now; local
93 now = time(NULL);
94 if (now < (lasttime + 1))
96 lasttime = now;
/illumos-gate/usr/src/lib/libnisdb/
H A Dnis_ldap.c115 struct timeval now; local
117 (void) gettimeofday(&now, 0);
119 if (rootDirExpire >= now.tv_sec)
126 * Update the expiration time of the root dir to be now plus the TTL.
131 struct timeval now; local
134 (void) gettimeofday(&now, 0);
147 srand48(now.tv_sec);
161 rootDirExpire = now.tv_sec + ttl;
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/mech/
H A Dcontext_time.c39 krb5_timestamp now; local
55 if ((code = krb5_timeofday(ctx->k5_context, &now))) {
61 if ((lifetime = ctx->endtime - now) <= 0) {
/illumos-gate/usr/src/uts/i86pc/cpu/amd_opteron/
H A Dao_poll.c48 hrtime_t now = gethrtime_waitfree(); local
52 if (now - last > 2 * pintvl || last == 0) {
68 ao->ao_ms_shared->aos_nb_poll_timestamp = now;
/illumos-gate/usr/src/lib/libc/port/sys/
H A Dtime_util.c74 timespec_t now; local
77 hrt2ts(gethrtime(), &now); local
79 (void) __clock_gettime(clock_id, &now);
80 if (abstime->tv_nsec >= now.tv_nsec) {
81 reltime->tv_sec = abstime->tv_sec - now.tv_sec;
82 reltime->tv_nsec = abstime->tv_nsec - now.tv_nsec;
84 reltime->tv_sec = abstime->tv_sec - now.tv_sec - 1;
85 reltime->tv_nsec = abstime->tv_nsec - now.tv_nsec + NANOSEC;
/illumos-gate/usr/src/cmd/stat/common/
H A Dcommon.c66 hrtime_t now, pause, pause_left; local
70 now = gethrtime();
71 pause = *wakeup + interval - now;
76 *wakeup = now + interval;
107 now = gethrtime();
108 pause_left = *wakeup - now;
/illumos-gate/usr/src/lib/libcmd/common/
H A Ddate.c210 settime(void* context, const char* cmd, Time_t now, int adjust, int network) argument
218 return tmxsettime(now);
226 tmxfmt(buf, sizeof(buf), "%m%d%H" "%M%Y.%S", now);
232 tmxfmt(buf, sizeof(buf), "%Y%m%d%H" "%M.%S", now);
251 convert(register Fmt_t* f, char* s, Time_t now) argument
258 now = tmxscan(s, &t, f->format, &u, now, 0);
264 return now;
275 Time_t now; local
366 now
[all...]
/illumos-gate/usr/src/cmd/lms/SyncLib/src/
H A DThreadUnix.cpp101 timeval now; local
104 gettimeofday(&now, NULL);
107 timeout.tv_sec = now.tv_sec + time.tv_sec;
108 timeout.tv_nsec = now.tv_usec + time.tv_nsec;
137 timeval now; local
140 gettimeofday(&now, &tz);
141 _startTime = now.tv_sec;
186 timeval now; local
188 gettimeofday(&now, &tz);
189 return ((now
[all...]
/illumos-gate/usr/src/uts/common/syscall/
H A Dlwp_timer.c58 timespec_t now, delta; local
61 gethrestime(&now);
67 (lwptp->lwpt_rqtime.tv_sec > now.tv_sec ||
68 (lwptp->lwpt_rqtime.tv_sec == now.tv_sec &&
69 lwptp->lwpt_rqtime.tv_nsec > now.tv_nsec))) {
72 timespecsub(&delta, &now);
97 timespec_t now; local
103 gethrestime(&now); /* do this before copyin() */
136 timespecadd(&lwptp->lwpt_rqtime, &now);
148 timespec_t now, delt local
199 timespec_t now; local
[all...]
/illumos-gate/usr/src/cmd/sendmail/db/os/
H A Dos_fid.c41 time_t now; local
70 (void)time(&now);
71 for (p = (u_int8_t *)&now +
72 sizeof(now), i = 0; i < sizeof(now); ++i)
/illumos-gate/usr/src/cmd/krb5/krb5kdc/
H A Ddispatch.c52 krb5_int32 now, now_usec; local
75 retval = krb5_crypto_us_timeofday(&now, &now_usec);
80 last_os_random = now;
82 if(now-last_os_random >= 60*60) {
84 last_os_random = now;
/illumos-gate/usr/src/cmd/sendmail/libsm/
H A Dclock.c97 auto struct timeval now, nowi, ival; local
100 auto time_t now, nowi; local
112 (void) gettimeofday(&now, NULL);
113 nowi = now;
114 timeradd(&now, &ival, &nowi);
116 now = time(NULL);
117 nowi = now + (time_t)(intvl / 1000);
168 timersub(&SmEventQueue->ev_time, &now, &itime.it_value);
177 intvl = SmEventQueue->ev_time - now;
220 /* now remov
329 struct timeval now; local
331 register time_t now; local
[all...]
/illumos-gate/usr/src/uts/common/os/
H A Dclock_realtime.c77 timespec_t now, interval2nth; local
127 gethrestime(&now);
128 if (timerspeccmp(val, &now) > 0)
137 ticks = timespectohz(val, now);
150 timespec_t now; local
155 gethrestime(&now);
157 if ((val->tv_sec > now.tv_sec) ||
158 (val->tv_sec == now.tv_sec && val->tv_nsec > now.tv_nsec)) {
188 timespec_t now; local
250 timespec_t now; local
[all...]
/illumos-gate/usr/src/lib/libumem/common/
H A Dumem_update_thread.c38 struct timeval now; local
52 * we wait until now to set the next update time
77 (void) gettimeofday(&now, NULL);
78 if (now.tv_sec > umem_update_next.tv_sec ||
79 (now.tv_sec == umem_update_next.tv_sec &&
80 now.tv_usec >= umem_update_next.tv_usec)) {
/illumos-gate/usr/src/lib/libshell/common/bltins/
H A Dsleep.c73 Time_t now,ns; local
75 now = TMX_NOW;
77 ns = tmxdate(cp, &last, now);
81 ns = tmxdate(pp, &last, now);
83 ns = tmxdate(pp, &last, now);
87 d = ns - now;
104 time_t now; local
111 if(tloc < (now=time(NIL(time_t*))))
113 d = (double)(tloc-now);
/illumos-gate/usr/src/uts/common/inet/sctp/
H A Dsctp_heartbeat.c123 int64_t now; local
160 now = ddi_get_lbolt64();
162 bcopy(&now, t, sizeof (now));
188 fp->sf_lastactive = now;
207 int64_t now; local
211 now = ddi_get_lbolt64();
226 fp->sf_hb_expiry = now + fp->sf_rto;
230 * If we cannot send now, be more aggressive
235 fp->sf_hb_expiry = now
280 int64_t now; local
[all...]

Completed in 133 milliseconds

1234567891011>>