/illumos-gate/usr/src/lib/libbc/libc/compat/sys5/ |
H A D | mkepoch.c | 46 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 D | vexpire.c | 44 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 D | delay.c | 37 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 D | context_time.c | 39 krb5_timestamp now; local 55 if ((code = krb5_timeofday(ctx->k5_context, &now))) { 61 if ((lifetime = ctx->endtime - now) <= 0) {
|
H A D | inq_cred.c | 89 krb5_timestamp now; local 128 if ((code = krb5_timeofday(context, &now))) { 141 if ((lifetime = cred->tgt_expire - now) < 0)
|
H A D | acquire_cred_with_pw.c | 152 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 D | os_fid.c | 41 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 D | ao_poll.c | 48 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 D | umem_update_thread.c | 38 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 D | meta_devstamp.c | 85 time_t now = time(NULL); local 103 *stamp = vtocbuf.timestamp[partno] = now;
|
/illumos-gate/usr/src/lib/libnisdb/ |
H A D | nis_ldap.c | 115 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 D | getdate.c | 72 time_t now; local 147 (void) time(&now); 148 tmp = localtime(&now);
|
/illumos-gate/usr/src/lib/libc/port/sys/ |
H A D | time_util.c | 74 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 D | db_apprec.c | 49 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 D | dispatch.c | 52 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 D | c_ustime.c | 72 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 D | objfs_odir.c | 69 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 D | authu_prot.c | 121 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 D | tokenmt.c | 79 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 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 */
|
/illumos-gate/usr/src/lib/libast/common/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)))
|
/illumos-gate/usr/src/cmd/lvm/metassist/common/ |
H A D | volume_output.c | 167 time_t now = time(NULL); local 168 struct tm *time = localtime(&now);
|
/illumos-gate/usr/src/boot/sys/boot/i386/libi386/ |
H A D | spinconsole.c | 91 time_t now; local 93 now = time(NULL); 94 if (now < (lasttime + 1)) 96 lasttime = now;
|
H A D | time.c | 73 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);
|