/dragonfly/sys/dev/drm/include/linux/ |
H A D | time.h | 45 ns_to_timeval(const int64_t nsec) in ns_to_timeval() argument 50 if (nsec == 0) { in ns_to_timeval() 56 tv.tv_sec = nsec / NSEC_PER_SEC; in ns_to_timeval() 57 rem = nsec % NSEC_PER_SEC; in ns_to_timeval() 86 set_normalized_timespec(struct timespec *ts, time_t sec, int64_t nsec) in set_normalized_timespec() argument 90 ts->tv_nsec = nsec; in set_normalized_timespec() 100 ns_to_timespec(const int64_t nsec) in ns_to_timespec() argument 105 if (nsec == 0) { in ns_to_timespec() 111 ts.tv_sec = nsec / NSEC_PER_SEC; in ns_to_timespec() 112 rem = nsec % NSEC_PER_SEC; in ns_to_timespec()
|
/dragonfly/contrib/ldns/drill/ |
H A D | dnssec.c | 311 ldns_rr *nsec; in ldns_nsec3_exact_match() local 337 nsec = ldns_rr_list_rr(nsec3s, 0); in ldns_nsec3_exact_match() 338 algorithm = ldns_nsec3_algorithm(nsec); in ldns_nsec3_exact_match() 340 salt = ldns_nsec3_salt_data(nsec); in ldns_nsec3_exact_match() 341 iterations = ldns_nsec3_iterations(nsec); in ldns_nsec3_exact_match() 371 nsec = ldns_rr_list_rr(nsec3s, nsec_i); in ldns_nsec3_exact_match() 377 result = nsec; in ldns_nsec3_exact_match() 419 ldns_rr *nsec; in ldns_nsec3_closest_encloser() local 432 nsec = ldns_rr_list_rr(nsec3s, 0); in ldns_nsec3_closest_encloser() 433 algorithm = ldns_nsec3_algorithm(nsec); in ldns_nsec3_closest_encloser() [all …]
|
/dragonfly/contrib/ldns/ |
H A D | dnssec.c | 91 return ldns_rr_rdf(nsec, 1); in ldns_nsec_get_bitmap() 93 return ldns_rr_rdf(nsec, 5); in ldns_nsec_get_bitmap() 122 ldns_rr *nsec; in ldns_dnssec_nsec3_closest_encloser() local 972 ldns_rr *nsec = NULL; in ldns_create_nsec() local 976 nsec = ldns_rr_new(); in ldns_create_nsec() 1000 ldns_rr_push_rdf(nsec, in ldns_create_nsec() 1004 return nsec; in ldns_create_nsec() 1192 ldns_rr *nsec = NULL; in ldns_create_nsec3() local 1211 if(!nsec) { in ldns_create_nsec3() 1252 ldns_rr_push_rdf(nsec, in ldns_create_nsec3() [all …]
|
H A D | higher.c | 308 ldns_nsec_type_check(const ldns_rr *nsec, ldns_rr_type t) in ldns_nsec_type_check() argument 310 switch (ldns_rr_get_type(nsec)) { in ldns_nsec_type_check() 311 case LDNS_RR_TYPE_NSEC : if (ldns_rr_rd_count(nsec) < 2) { in ldns_nsec_type_check() 315 ldns_rr_rdf(nsec, 1), t); in ldns_nsec_type_check() 317 case LDNS_RR_TYPE_NSEC3 : if (ldns_rr_rd_count(nsec) < 6) { in ldns_nsec_type_check() 321 ldns_rr_rdf(nsec, 5), t); in ldns_nsec_type_check()
|
H A D | dnssec_zone.c | 366 if (name->nsec && deep) { in ldns_dnssec_name_free_internal() 367 ldns_rr_free(name->nsec); in ldns_dnssec_name_free_internal() 425 if (rrset && nsec) { in ldns_dnssec_name_set_nsec() 426 rrset->nsec = nsec; in ldns_dnssec_name_set_nsec() 471 name->nsec = rr; in ldns_dnssec_name_add_rr() 542 if(name->nsec) { in ldns_dnssec_name_print_soa_fmt() 1419 if (i->name->nsec && ldns_rr_get_type(i->name->nsec) 1470 return i->name->nsec; 1783 if (zone->soa->nsec) { 1785 zone->soa->nsec), [all …]
|
/dragonfly/lib/libc/stdio/ |
H A D | xprintf_time.c | 69 int i, prec, nsec; in __printf_render_time() local 75 nsec = tv->tv_usec * 1000; in __printf_render_time() 80 nsec = ts->tv_nsec; in __printf_render_time() 115 nsec /= 10; in __printf_render_time() 116 p += sprintf(p, ".%.*d", prec, nsec); in __printf_render_time()
|
/dragonfly/contrib/libarchive/libarchive/ |
H A D | archive_match.c | 919 long nsec) in archive_match_include_time() argument 927 sec, nsec, sec, nsec); in archive_match_include_time() 1469 long nsec; in time_excluded() local 1487 if (nsec < a->newer_ctime_nsec) in time_excluded() 1489 if (nsec == a->newer_ctime_nsec && in time_excluded() 1508 if (nsec > a->older_ctime_nsec) in time_excluded() 1510 if (nsec == a->older_ctime_nsec && in time_excluded() 1522 if (nsec < a->newer_mtime_nsec) in time_excluded() 1536 if (nsec > a->older_mtime_nsec) in time_excluded() 1576 if (f->ctime_nsec > nsec) { in time_excluded() [all …]
|
/dragonfly/sys/vfs/smbfs/ |
H A D | smbfs_subr.c | 132 smb_time_NT2local(int64_t nsec, int tzoff, struct timespec *tsp) in smb_time_NT2local() argument 134 smb_time_server2local(nsec / 10000000 - DIFF1970TO1601, 0, tsp); in smb_time_NT2local() 138 smb_time_local2NT(struct timespec *tsp, int tzoff, int64_t *nsec) in smb_time_local2NT() argument 143 *nsec = (((int64_t)(seconds) & ~1) + DIFF1970TO1601) * (int64_t)10000000; in smb_time_local2NT()
|
H A D | smbfs_subr.h | 182 void smb_time_NT2local(int64_t nsec, int tzoff, struct timespec *tsp); 183 void smb_time_local2NT(struct timespec *tsp, int tzoff, int64_t *nsec);
|
/dragonfly/contrib/diffutils/src/ |
H A D | context.c | 54 int nsec = get_stat_mtime_ns (&inf->stat); in print_context_label() local 55 if (! (tm && nstrftime (buf, sizeof buf, time_format, tm, 0, nsec))) in print_context_label() 62 sprintf (buf, "%ld.%.9d", sec, nsec); in print_context_label() 67 sprintf (buf, "%"PRIdMAX".%.9d", sec, nsec); in print_context_label() 72 sprintf (buf, "%"PRIuMAX".%.9d", sec, nsec); in print_context_label()
|
/dragonfly/sys/kern/ |
H A D | subr_diskslice.c | 97 long nsec; in dscheck() local 136 nsec = bp->b_bcount >> shift; in dscheck() 143 nsec = bp->b_bcount / ssp->dss_secsize; in dscheck() 227 if (slicerel_secno < sp->ds_reserved && nsec && in dscheck() 253 if (secno + nsec > endsecno) { in dscheck() 275 nsec = endsecno - secno; in dscheck() 276 bp->b_bcount = nsec * ssp->dss_secsize; in dscheck()
|
H A D | kern_nrandom.c | 937 int nsec; in NANOUP_EVENT() local 943 nsec = now.tv_nsec - last->tv_nsec; in NANOUP_EVENT() 949 nsec ^= rand_thread_value; in NANOUP_EVENT() 956 nsec ^= (rdtsc() & 255) << 8; in NANOUP_EVENT() 962 (const uint8_t *)&nsec, sizeof(nsec), in NANOUP_EVENT()
|
H A D | kern_clock.c | 1207 long sec, nsec; in tstohz_high() local 1210 nsec = ts->tv_nsec; in tstohz_high() 1211 if (nsec < 0) { in tstohz_high() 1213 nsec += 1000000000; in tstohz_high() 1217 if (nsec > 0) { in tstohz_high() 1219 nsec -= 1000000000; in tstohz_high() 1223 sec, nsec); in tstohz_high() 1227 ticks = (int)(sec * hz + howmany((u_long)nsec, nstick)) + 1; in tstohz_high()
|
/dragonfly/contrib/ldns/ldns/ |
H A D | dnssec.h | 84 ldns_rdf *ldns_nsec_get_bitmap(const ldns_rr *nsec); 382 ldns_rdf *ldns_nsec3_hash_name_frm_nsec3(const ldns_rr *nsec, const ldns_rdf *name); 420 bool ldns_nsec_covers_name(const ldns_rr *nsec, const ldns_rdf *name);
|
H A D | dnssec_zone.h | 67 ldns_rr *nsec; member 296 void ldns_dnssec_name_set_nsec(ldns_dnssec_name *name, ldns_rr *nsec);
|
H A D | higher.h | 97 bool ldns_nsec_type_check(const ldns_rr *nsec, ldns_rr_type t);
|
/dragonfly/sys/dev/disk/md/ |
H A D | md.c | 207 unsigned secno, nsec, secval, uc; in mdstrategy_malloc() local 252 nsec = bp->b_bcount >> DEV_BSHIFT; in mdstrategy_malloc() 255 while (nsec--) { in mdstrategy_malloc() 303 secpp = kmalloc((secno + nsec + 1) * sizeof(u_char *), in mdstrategy_malloc() 309 sc->nsecp = secno + nsec + 1; in mdstrategy_malloc()
|
/dragonfly/sbin/fsdb/ |
H A D | fsdb.c | 811 int32_t nsec; in dotime() local 815 nsec = strtoul(++p, &val, 0); in dotime() 816 if (val == p || *val != '\0' || nsec >= 1000000000 || nsec < 0) { in dotime() 821 nsec = 0; in dotime() 856 rts[1] = nsec; in dotime()
|
/dragonfly/sys/vfs/ext2fs/ |
H A D | ext2_inode_cnv.c | 97 ext2_decode_extra_time(ext_time_t *sec, int32_t *nsec, uint32_t extra) in ext2_decode_extra_time() argument 102 *nsec = (le32toh(extra) & EXT3_NSEC_MASK) >> EXT3_EPOCH_BITS; in ext2_decode_extra_time() 200 ext2_encode_extra_time(int64_t sec, int32_t nsec) in ext2_encode_extra_time() argument 206 return (htole32(extra | (nsec << EXT3_EPOCH_BITS))); in ext2_encode_extra_time()
|
/dragonfly/crypto/libressl/crypto/ocsp/ |
H A D | ocsp_cl.c | 377 ASN1_GENERALIZEDTIME *nextupd, long nsec, long maxsec) in OCSP_check_validity() argument 396 t_tmp = t_now + nsec; in OCSP_check_validity() 428 t_tmp = t_now - nsec; in OCSP_check_validity()
|
/dragonfly/usr.sbin/vidcontrol/ |
H A D | vidcontrol.c | 470 int nsec; in set_screensaver_timeout() local 473 nsec = 0; in set_screensaver_timeout() 475 nsec = atoi(arg); in set_screensaver_timeout() 477 if ((*arg == '\0') || (nsec < 1)) { in set_screensaver_timeout() 483 if (ioctl(0, CONS_BLANKTIME, &nsec) == -1) { in set_screensaver_timeout()
|
/dragonfly/contrib/binutils-2.27/ld/ |
H A D | ldmain.c | 914 asection *nsec, in multiple_definition() argument 945 && bfd_is_abs_section (nsec) in multiple_definition() 957 || (nsec->output_section != NULL in multiple_definition() 958 && !bfd_is_abs_section (nsec) in multiple_definition() 959 && bfd_is_abs_section (nsec->output_section))) in multiple_definition() 966 nsec = osec; in multiple_definition() 971 nbfd, nsec, nval, name); in multiple_definition()
|
/dragonfly/contrib/binutils-2.34/ld/ |
H A D | ldmain.c | 948 asection *nsec, in multiple_definition() argument 979 && bfd_is_abs_section (nsec) in multiple_definition() 992 || (nsec->output_section != NULL in multiple_definition() 993 && !bfd_is_abs_section (nsec) in multiple_definition() 994 && bfd_is_abs_section (nsec->output_section)))) in multiple_definition() 1001 nsec = osec; in multiple_definition() 1006 nbfd, nsec, nval, name); in multiple_definition()
|
/dragonfly/crypto/libressl/apps/openssl/ |
H A D | ocsp.c | 87 STACK_OF(OPENSSL_STRING) *names, STACK_OF(OCSP_CERTID) *ids, long nsec, 121 long nsec; member 362 ocsp_config.nsec = strtonum(arg, 0, LONG_MAX, &errstr); in ocsp_opt_validity_period() 767 ocsp_config.nsec = MAX_VALIDITY_PERIOD; in ocsp_main() 1036 ocsp_config.ids, ocsp_config.nsec, ocsp_config.maxage)) in ocsp_main() 1138 STACK_OF(OPENSSL_STRING) *names, STACK_OF(OCSP_CERTID) *ids, long nsec, in print_ocsp_summary() argument 1166 if (!OCSP_check_validity(thisupd, nextupd, nsec, maxage)) { in print_ocsp_summary()
|
/dragonfly/stand/lib/ |
H A D | dosfs.c | 537 u_int nsec, lsec, xdn, chk, sec, ent, x; in lookup() local 548 nsec = !clus ? entsec(fs->dirents) : fs->spc; in lookup() 558 for (sec = 0; sec < nsec; sec++) { in lookup() 789 ioget(struct open_file *fd, u_int lsec, void *buf, u_int nsec) in ioget() argument 795 secbyt(nsec), buf, NULL))) in ioget()
|