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

1234567891011>>

/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/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/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/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)
H A Dacquire_cred_with_pw.c152 0, /* start time (now) */
159 /* Got a TGT, now make a MEMORY ccache, stuff in the TGT */
357 /* if the princ wasn't filled in already, fill it in now */
380 krb5_timestamp now; local
382 if ((code = krb5_timeofday(context, &now))) {
396 *time_rec = (cred->tgt_expire > now) ?
397 (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/lvm/libmeta/common/
H A Dmeta_devstamp.c85 time_t now = time(NULL); local
103 *stamp = vtocbuf.timestamp[partno] = 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/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/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/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/rpc/sec/
H A Dauthu_prot.c121 time_t now; local
135 now = gethrestime_sec();
136 if (xdr_uint32(xdrs, (uint32_t *)&now) &&
159 time_t now; local
169 now = gethrestime_sec();
170 if (xdr_uint32(xdrs, (uint32_t *)&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/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/cmd/lvm/metassist/common/
H A Dvolume_output.c167 time_t now = time(NULL); local
168 struct tm *time = localtime(&now);
/illumos-gate/usr/src/boot/sys/boot/i386/libi386/
H A Dspinconsole.c91 time_t now; local
93 now = time(NULL);
94 if (now < (lasttime + 1))
96 lasttime = now;
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);

Completed in 54 milliseconds

1234567891011>>