Searched defs:now (Results 1 - 25 of 446) sorted by relevance

1234567891011>>

/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/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) {
H A Dinq_cred.c89 krb5_timestamp now; local
128 if ((code = krb5_timeofday(context, &now))) {
141 if ((lifetime = cred->tgt_expire - now) < 0)
/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/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/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/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/libc/port/locale/
H A Dgetdate.c72 time_t now; local
147 (void) time(&now);
148 tmp = localtime(&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/sendmail/db/db/
H A Ddb_apprec.c49 time_t now; local
217 (void)time(&now);
219 dbenv->tx_info->region->time_ckp = (u_int32_t)now;
225 __db_err(lp->dbenv, "Recovery complete at %.24s", ctime(&now));
/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/uts/common/fs/objfs/
H A Dobjfs_odir.c69 timestruc_t now; local
76 gethrestime(&now);
77 vap->va_atime = vap->va_ctime = vap->va_mtime = 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/lib/libast/common/sfio/
H A Dsfreserve.c38 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 */
/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;
H A Dtmxtime.c53 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)))
/illumos-gate/usr/src/uts/common/ipp/meters/
H A Dtokenmt.c79 hrtime_t now; local
124 now = gethrtime();
128 tokenmt_update_tokens(tokenmt_data, now);
234 tokenmt_update_tokens(tokenmt_data_t *tokenmt_data, hrtime_t now) argument
237 hrtime_t diff = now - tokenmt_data->last_seen;
283 tokenmt_data->last_seen = 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.c107 time_t now; local
109 now = time(NULL);
110 if (now < (lasttime + 1))
112 lasttime = now;
/illumos-gate/usr/src/uts/common/rpc/sec/
H A Dauthu_prot.c120 time_t now; local
133 now = gethrestime_sec();
134 if (xdr_uint32(xdrs, (uint32_t *)&now) &&
155 time_t now; local
164 now = gethrestime_sec();
165 if (xdr_uint32(xdrs, (uint32_t *)&now) &&
/illumos-gate/usr/src/lib/libnisdb/yptol/
H A Dyptol_utils.c170 struct timeval now; local
172 if (0 != gettimeofday(&now, NULL)) {
176 sprintf(time_string, "%010ld", (long)now.tv_sec);
/illumos-gate/usr/src/cmd/sendmail/libmilter/
H A Dmonitor.c85 time_t now, end; local
102 now = time(NULL); \
104 if (now > end) \
107 "WARNING: monitor timeout triggered, now=%ld, end=%ld, tid=%ld, state=0x%x",\
108 (long) now, (long) end, \
/illumos-gate/usr/src/cmd/drd/
H A Ddrd_log.c64 struct timeval now; local
71 if (gettimeofday(&now, NULL) != 0) {
77 if (localtime_r(&now.tv_sec, &ltime) == NULL) {
/illumos-gate/usr/src/cmd/dtrace/test/cmd/badioctl/
H A Dbadioctl.c64 hrtime_t now, last = 0, end; local
76 if ((now = gethrtime()) - last > NANOSEC) {
96 last = now;
/illumos-gate/usr/src/cmd/bnu/
H A Dlogent.c191 time_t now, rval; local
198 now = times(&tbuf);
199 if (now - past > MAXLONG / 1000) /* would overflow */
200 rval = (now - past) / HZ * 1000;
202 rval = (now - past) * 1000 / HZ;
203 past = now;

Completed in 123 milliseconds

1234567891011>>