Home
last modified time | relevance | path

Searched refs:time_offset (Results 1 – 25 of 31) sorted by relevance

12

/src/contrib/ntp/util/
H A Dkern.c48 long time_offset = 0; /* time adjustment (us) */ variable
107 time_offset, time_freq, time_adj); in main()
127 time_offset = offset << SHIFT_UPDATE; in hardupdate()
187 if (time_offset < 0) { in second_overflow()
188 ltemp = -time_offset >> in second_overflow()
190 time_offset += ltemp; in second_overflow()
194 ltemp = time_offset >> in second_overflow()
196 time_offset -= ltemp; in second_overflow()
/src/crypto/krb5/src/lib/krb5/os/
H A Dtoffset.c51 os_ctx->time_offset = ts_delta(seconds, sec); in krb5_set_real_time()
69 os_ctx->time_offset = seconds; in krb5_set_debugging_time()
99 *seconds = os_ctx->time_offset; in krb5_get_time_offsets()
114 os_ctx->time_offset = seconds; in krb5_set_time_offsets()
H A Dtimeofday.c42 *timeret = os_ctx->time_offset; in krb5_timeofday()
49 tval += os_ctx->time_offset; in krb5_timeofday()
H A Dustime.c73 *seconds = os_ctx->time_offset; in krb5_us_timeofday()
77 return k5_time_with_offset(os_ctx->time_offset, os_ctx->usec_offset, in krb5_us_timeofday()
H A Dinit_os_ctx.c425 os_ctx->time_offset = 0; in k5_os_init_context()
/src/contrib/ntp/parseutil/
H A Ddcfd.c964 struct timeval time_offset; in adj_time() local
969 time_offset.tv_sec = offset / 1000000; in adj_time()
970 time_offset.tv_usec = offset % 1000000; in adj_time()
973 if (adjtime(&time_offset, 0L) == -1) in adj_time()
1516 struct timeval time_offset; in main() local
1789 time_offset.tv_sec = lasterror / 1000000; in main()
1790 time_offset.tv_usec = lasterror % 1000000; in main()
1791 adjust_clock(&time_offset, drift_file, utc_time); in main()
1796 time_offset.tv_sec = utc_time + i; in main()
1797 time_offset.tv_usec = 0; in main()
[all …]
/src/crypto/krb5/src/ccapi/test/
H A Dtest_ccapi_ccache.c1646 cc_time_t time_offset = 0; in check_cc_ccache_get_kdc_time_offset() local
1664 time_offset = 0; in check_cc_ccache_get_kdc_time_offset()
1665 …check_once_cc_ccache_get_kdc_time_offset(ccache, cc_credentials_v5, &time_offset, ccErrTimeOffsetN… in check_cc_ccache_get_kdc_time_offset()
1667 time_offset = 10; in check_cc_ccache_get_kdc_time_offset()
1669 err = cc_ccache_set_kdc_time_offset(ccache, cc_credentials_v5, time_offset); in check_cc_ccache_get_kdc_time_offset()
1672 …check_once_cc_ccache_get_kdc_time_offset(ccache, cc_credentials_v5, &time_offset, ccNoError, "offs… in check_cc_ccache_get_kdc_time_offset()
1689 …me_offset(cc_ccache_t ccache, cc_int32 credentials_version, cc_time_t *time_offset, cc_int32 expec… in check_once_cc_ccache_get_kdc_time_offset() argument
1709 if (time_offset) { in check_once_cc_ccache_get_kdc_time_offset()
1710 expected_offset = *time_offset; in check_once_cc_ccache_get_kdc_time_offset()
1713 err = cc_ccache_get_kdc_time_offset(ccache, credentials_version, time_offset); in check_once_cc_ccache_get_kdc_time_offset()
[all …]
H A Dtest_ccapi_ccache.h41 …me_offset(cc_ccache_t ccache, cc_int32 credentials_version, cc_time_t *time_offset, cc_int32 expec…
44 …ime_offset(cc_ccache_t ccache, cc_int32 credentials_version, cc_time_t time_offset, cc_int32 expec…
/src/sys/kern/
H A Dkern_ntptime.c163 static l_fp time_offset; /* time offset (ns) */ variable
441 ntv->offset = L_GINT(time_offset); in kern_ntp_adjtime()
443 ntv->offset = L_GINT(time_offset) / 1000; /* XXX rounding ? */ in kern_ntp_adjtime()
591 ftemp = time_offset; in ntp_update_second()
603 L_SUB(time_offset, ftemp); in ntp_update_second()
684 L_LINT(time_offset, time_monitor); in hardupdate()
837 L_LINT(time_offset, time_monitor); in hardpps()
/src/libexec/bootpd/
H A Dbootpd.h115 time_offset :1, member
183 int32 time_offset; member
H A Ddovend.c63 if (hp->flags.time_offset) { in dovend_rfc1497()
67 insert_u_long(htonl(hp->time_offset), &vp); /* -4 bytes */ in dovend_rfc1497()
H A Ddumptab.c245 if (hp->flags.time_offset) { in dump_host()
246 fprintf(fp, "\\\n\t:to=%ld:", (long)hp->time_offset); in dump_host()
H A Dreadfile.c955 hp->flags.time_offset = FALSE; in eval_symbol()
960 hp->time_offset = secondswest; in eval_symbol()
964 hp->time_offset = timeoff; in eval_symbol()
966 hp->flags.time_offset = TRUE; in eval_symbol()
1434 DUP_COPY(time_offset); in fill_defaults()
/src/crypto/krb5/src/lib/krb5/ccache/
H A Dcc_memory.c113 krb5_int32 time_offset; member
179 d->time_offset = os_ctx->time_offset; in init_mcc_cache()
346 os_ctx->time_offset = d->time_offset; in krb5_mcc_resolve()
506 d->time_offset = 0; in new_mcc_data()
H A Dcc_keyring.c270 int32_t time_offset,
274 int32_t *time_offset,
806 ret = save_time_offsets(context, id, os_ctx->time_offset, in krcc_initialize()
925 if (get_time_offsets(context, ccache, &os_ctx->time_offset, in make_cache()
1425 save_time_offsets(krb5_context context, krb5_ccache id, int32_t time_offset, in save_time_offsets() argument
1435 store_32_be(time_offset, payload); in save_time_offsets()
1448 get_time_offsets(krb5_context context, krb5_ccache id, int32_t *time_offset, in get_time_offsets() argument
1483 *time_offset = load_32_be(payload); in get_time_offsets()
H A Dcc_kcm.c686 int32_t time_offset; in get_kdc_offset() local
691 time_offset = k5_input_get_uint32_be(&req.reply); in get_kdc_offset()
694 context->os_context.time_offset = time_offset; in get_kdc_offset()
711 k5_buf_add_uint32_be(&req.reqbuf, context->os_context.time_offset); in set_kdc_offset()
1292 offset = (octx->os_flags & KRB5_OS_TOFFSET_VALID) ? octx->time_offset : 0; in kcm_replace()
H A Dt_marshal.c337 context->os_context.time_offset = 300; in main()
394 assert(context->os_context.time_offset == 300); in main()
H A Dcc_file.c389 uint32_t time_offset, usec_offset; in read_header() local
418 read32(context, fp, version, NULL, &time_offset) || in read_header()
426 os_ctx->time_offset = time_offset; in read_header()
461 k5_buf_add_uint32_be(buf, os_ctx->time_offset); in marshal_header()
/src/crypto/krb5/src/include/
H A DCredentialsCache.h1477 #define cc_ccache_get_kdc_time_offset(ccache, version, time_offset) \ argument
1478 ((ccache) -> functions -> get_kdc_time_offset (ccache, version, time_offset))
1480 #define cc_ccache_set_kdc_time_offset(ccache, version, time_offset) \ argument
1481 ((ccache) -> functions -> set_kdc_time_offset (ccache, version, time_offset))
/src/crypto/krb5/src/lib/krb5/krb/
H A Dt_copy_context.c74 check(c->os_context.time_offset == r->os_context.time_offset); in check_context()
H A Dser_ctx.c366 (void) krb5_ser_pack_int32(os_ctx->time_offset, &bp, &remain); in externalize_oscontext()
409 (void) krb5_ser_unpack_int32(&os_ctx->time_offset, &bp, &remain); in internalize_oscontext()
/src/crypto/krb5/src/lib/krb5/ccache/ccapi/
H A Dstdcc.c184 cc_time_t time_offset = 0; in stdccv3_get_timeoffset() local
187 &time_offset); in stdccv3_get_timeoffset()
190 os_ctx->time_offset = time_offset; in stdccv3_get_timeoffset()
215 os_ctx->time_offset); in stdccv3_set_timeoffset()
/src/contrib/ntp/html/hints/
H A Dsolaris.xtra.409584910 the clock routine as soon as the time_offset becomes non-zero.
70 the clock routine as soon as the time_offset becomes non-zero.
/src/crypto/krb5/src/kdc/
H A Dmain.c62 static int time_offset = 0; variable
243 if (time_offset != 0) in init_realm()
244 (void)krb5_set_time_offsets(rdp->realm_context, time_offset, 0); in init_realm()
776 time_offset = atoi(optarg); in initialize_realms()
/src/contrib/wpa/src/ap/
H A Dwpa_auth_i.h277 struct os_reltime time_offset; /* local time - offset = remote time */ member

12