| /freebsd-9-stable/sys/libkern/ |
| D | inet_ntop.c | 103 struct { int base, len; } best, cur; in inet_ntop6() local 117 best.base = -1; in inet_ntop6() 118 best.len = 0; in inet_ntop6() 129 if (best.base == -1 || cur.len > best.len) in inet_ntop6() 130 best = cur; in inet_ntop6() 136 if (best.base == -1 || cur.len > best.len) in inet_ntop6() 137 best = cur; in inet_ntop6() 139 if (best.base != -1 && best.len < 2) in inet_ntop6() 140 best.base = -1; in inet_ntop6() 148 if (best.base != -1 && i >= best.base && in inet_ntop6() [all …]
|
| /freebsd-9-stable/contrib/ntp/lib/isc/ |
| D | inet_ntop.c | 124 struct { int base, len; } best, cur; in inet_ntop6() local 136 best.base = -1; in inet_ntop6() 138 best.len = cur.len = 0; in inet_ntop6() 147 if (best.base == -1 || cur.len > best.len) in inet_ntop6() 148 best = cur; in inet_ntop6() 154 if (best.base == -1 || cur.len > best.len) in inet_ntop6() 155 best = cur; in inet_ntop6() 157 if (best.base != -1 && best.len < 2) in inet_ntop6() 158 best.base = -1; in inet_ntop6() 166 if (best.base != -1 && i >= best.base && in inet_ntop6() [all …]
|
| /freebsd-9-stable/lib/libc/inet/ |
| D | inet_ntop.c | 116 struct { int base, len; } best, cur; in inet_ntop6() local 128 best.base = -1; in inet_ntop6() 129 best.len = 0; in inet_ntop6() 140 if (best.base == -1 || cur.len > best.len) in inet_ntop6() 141 best = cur; in inet_ntop6() 147 if (best.base == -1 || cur.len > best.len) in inet_ntop6() 148 best = cur; in inet_ntop6() 150 if (best.base != -1 && best.len < 2) in inet_ntop6() 151 best.base = -1; in inet_ntop6() 159 if (best.base != -1 && i >= best.base && in inet_ntop6() [all …]
|
| D | inet_cidr_ntop.c | 165 struct { int base, len; } best, cur; in inet_cidr_ntop_ipv6() local 182 best.base = -1; in inet_cidr_ntop_ipv6() 183 best.len = 0; in inet_cidr_ntop_ipv6() 194 if (best.base == -1 || cur.len > best.len) in inet_cidr_ntop_ipv6() 195 best = cur; in inet_cidr_ntop_ipv6() 201 if (best.base == -1 || cur.len > best.len) in inet_cidr_ntop_ipv6() 202 best = cur; in inet_cidr_ntop_ipv6() 204 if (best.base != -1 && best.len < 2) in inet_cidr_ntop_ipv6() 205 best.base = -1; in inet_cidr_ntop_ipv6() 213 if (best.base != -1 && i >= best.base && in inet_cidr_ntop_ipv6() [all …]
|
| /freebsd-9-stable/contrib/bind9/lib/lwres/ |
| D | lwinetntop.c | 118 struct { int base, len; } best, cur; in inet_ntop6() local 130 best.base = -1; in inet_ntop6() 131 best.len = 0; in inet_ntop6() 142 if (best.base == -1 || cur.len > best.len) in inet_ntop6() 143 best = cur; in inet_ntop6() 149 if (best.base == -1 || cur.len > best.len) in inet_ntop6() 150 best = cur; in inet_ntop6() 152 if (best.base != -1 && best.len < 2) in inet_ntop6() 153 best.base = -1; in inet_ntop6() 161 if (best.base != -1 && i >= best.base && in inet_ntop6() [all …]
|
| /freebsd-9-stable/contrib/bind9/lib/isc/ |
| D | inet_ntop.c | 121 struct { int base, len; } best, cur; in inet_ntop6() local 133 best.base = -1; in inet_ntop6() 143 if (best.base == -1 || cur.len > best.len) in inet_ntop6() 144 best = cur; in inet_ntop6() 150 if (best.base == -1 || cur.len > best.len) in inet_ntop6() 151 best = cur; in inet_ntop6() 153 if (best.base != -1 && best.len < 2) in inet_ntop6() 154 best.base = -1; in inet_ntop6() 162 if (best.base != -1 && i >= best.base && in inet_ntop6() 163 i < (best.base + best.len)) { in inet_ntop6() [all …]
|
| /freebsd-9-stable/contrib/tcpdump/missing/ |
| D | inet_ntop.c | 117 } best, cur; in inet_ntop_v6() local 129 best.base = -1; in inet_ntop_v6() 141 if (best.base == -1 || cur.len > best.len) in inet_ntop_v6() 142 best = cur; in inet_ntop_v6() 146 if ((cur.base != -1) && (best.base == -1 || cur.len > best.len)) in inet_ntop_v6() 147 best = cur; in inet_ntop_v6() 148 if (best.base != -1 && best.len < 2) in inet_ntop_v6() 149 best.base = -1; in inet_ntop_v6() 158 if (best.base != -1 && i >= best.base && i < (best.base + best.len)) in inet_ntop_v6() 160 if (i == best.base) in inet_ntop_v6() [all …]
|
| /freebsd-9-stable/crypto/openssh/openbsd-compat/ |
| D | inet_ntop.c | 119 struct { int base, len; } best, cur; in inet_ntop6() local 132 best.base = -1; in inet_ntop6() 142 if (best.base == -1 || cur.len > best.len) in inet_ntop6() 143 best = cur; in inet_ntop6() 149 if (best.base == -1 || cur.len > best.len) in inet_ntop6() 150 best = cur; in inet_ntop6() 152 if (best.base != -1 && best.len < 2) in inet_ntop6() 153 best.base = -1; in inet_ntop6() 162 if (best.base != -1 && i >= best.base && in inet_ntop6() 163 i < (best.base + best.len)) { in inet_ntop6() [all …]
|
| /freebsd-9-stable/contrib/gcc/ |
| D | tracer.c | 121 edge best = NULL; in find_best_successor() local 125 if (!best || better_p (e, best)) in find_best_successor() 126 best = e; in find_best_successor() 127 if (!best || ignore_bb_p (best->dest)) in find_best_successor() 129 if (best->probability <= probability_cutoff) in find_best_successor() 131 return best; in find_best_successor() 140 edge best = NULL; in find_best_predecessor() local 144 if (!best || better_p (e, best)) in find_best_predecessor() 145 best = e; in find_best_predecessor() 146 if (!best || ignore_bb_p (best->src)) in find_best_predecessor() [all …]
|
| D | bb-reorder.c | 930 edge e, best; in connect_traces() local 958 best = NULL; in connect_traces() 970 && (!best in connect_traces() 971 || e->probability > best->probability in connect_traces() 972 || (e->probability == best->probability in connect_traces() 975 best = e; in connect_traces() 979 if (best) in connect_traces() 981 best->src->aux = best->dest; in connect_traces() 982 t2 = bbd[best->src->index].end_of_trace; in connect_traces() 988 best->src->index, best->dest->index); in connect_traces() [all …]
|
| /freebsd-9-stable/contrib/groff/src/devices/xditview/ |
| D | font.c | 58 DviFontSizeList *fs, *best = 0, *smallest = 0; in LookupFontSizeBySize() local 67 for (best = f->sizes; best; best = best->next) in LookupFontSizeBySize() 68 if (best->size == decipointsize) in LookupFontSizeBySize() 69 return best; in LookupFontSizeBySize() 70 best = (DviFontSizeList *) XtMalloc(sizeof *best); in LookupFontSizeBySize() 71 best->next = f->sizes; in LookupFontSizeBySize() 72 best->size = decipointsize; in LookupFontSizeBySize() 73 f->sizes = best; in LookupFontSizeBySize() 83 best->x_name = savestr (fontNameString); in LookupFontSizeBySize() 84 best->doesnt_exist = 0; in LookupFontSizeBySize() [all …]
|
| /freebsd-9-stable/crypto/openssh/ |
| D | dh.c | 149 int best, bestcount, which; in choose_dh() local 161 best = bestcount = 0; in choose_dh() 172 if ((dhg.size > wantbits && dhg.size < best) || in choose_dh() 173 (dhg.size > best && best < wantbits)) { in choose_dh() 174 best = dhg.size; in choose_dh() 177 if (dhg.size == best) in choose_dh() 194 dhg.size != best || in choose_dh()
|
| /freebsd-9-stable/sys/geom/raid/ |
| D | tr_raid1e.c | 438 int disk, copy, best; in g_raid_tr_raid1e_rebuild_some() local 462 best = g_raid_tr_raid1e_select_read_disk(vol, disk, in g_raid_tr_raid1e_rebuild_some() 464 if (best < 0) { in g_raid_tr_raid1e_rebuild_some() 468 } else if (best != copy) { in g_raid_tr_raid1e_rebuild_some() 481 ((disk + best >= vol->v_disks_count) ? vol->v_strip_size : 0); in g_raid_tr_raid1e_rebuild_some() 486 bp->bio_caller1 = &vol->v_subdisks[(disk + best) % vol->v_disks_count]; in g_raid_tr_raid1e_rebuild_some() 645 int i, best, prio, bestprio; in g_raid_tr_raid1e_select_read_disk() local 647 best = -1; in g_raid_tr_raid1e_select_read_disk() 686 best = i; in g_raid_tr_raid1e_select_read_disk() 689 return (best); in g_raid_tr_raid1e_select_read_disk() [all …]
|
| /freebsd-9-stable/libexec/talkd/ |
| D | process.c | 194 time_t best = 0; in find_user() local 203 if (*tty == '\0' || best != 0) { in find_user() 204 if (best == 0) in find_user() 212 if (statb.st_atime > best) { in find_user() 213 best = statb.st_atime; in find_user()
|
| /freebsd-9-stable/sys/x86/acpica/ |
| D | madt.c | 364 int i, best; in madt_find_interrupt() local 366 best = -1; in madt_find_interrupt() 371 if (best == -1 || in madt_find_interrupt() 372 ioapics[best].io_vector < ioapics[i].io_vector) in madt_find_interrupt() 373 best = i; in madt_find_interrupt() 375 if (best == -1) in madt_find_interrupt() 377 *apic = ioapics[best].io_apic; in madt_find_interrupt() 378 *pin = intr - ioapics[best].io_vector; in madt_find_interrupt()
|
| /freebsd-9-stable/sys/opencrypto/ |
| D | crypto.c | 339 struct cryptocap *cap, *best; in crypto_select_driver() local 351 best = NULL; in crypto_select_driver() 367 if (best == NULL || in crypto_select_driver() 368 cap->cc_sessions < best->cc_sessions) in crypto_select_driver() 369 best = cap; in crypto_select_driver() 372 if (best != NULL) in crypto_select_driver() 373 return best; in crypto_select_driver() 379 return best; in crypto_select_driver() 868 struct cryptocap *cap, *best, *blocked; in crypto_select_kdriver() local 880 best = NULL; in crypto_select_kdriver() [all …]
|
| /freebsd-9-stable/contrib/ncurses/ncurses/tinfo/ |
| D | lib_termcap.c | 131 int best = 0; in tgetent() local 134 if (LAST_SEQ < MyCache[best].sequence) { in tgetent() 135 best = CacheInx; in tgetent() 138 CacheInx = best; in tgetent()
|
| /freebsd-9-stable/sys/dev/drm2/ |
| D | drm_mm.c | 335 struct drm_mm_node *best; in drm_mm_search_free() local 338 best = NULL; in drm_mm_search_free() 352 best = entry; in drm_mm_search_free() 357 return best; in drm_mm_search_free() 368 struct drm_mm_node *best; in drm_mm_search_free_in_range() local 373 best = NULL; in drm_mm_search_free_in_range() 390 best = entry; in drm_mm_search_free_in_range() 395 return best; in drm_mm_search_free_in_range()
|
| /freebsd-9-stable/contrib/sendmail/cf/feature/ |
| D | bestmx_is_local.m4 | 30 # If we are the best MX for a site, then we want to accept 33 # listed us as their best MX. 36 # lower cost method is to list all the expected best MX hosts
|
| /freebsd-9-stable/usr.sbin/IPXrouted/ |
| D | sap_tables.c | 128 register struct sap_entry *best = NULL; in sap_nearestserver() local 139 best = sap; in sap_nearestserver() 140 besthops = ntohs(best->sap.hops); in sap_nearestserver() 143 return best; in sap_nearestserver()
|
| /freebsd-9-stable/contrib/bsnmp/snmp_mibII/ |
| D | mibII_route.c | 308 struct sroute *best; in sroute_getnext() local 352 best = NULL; in sroute_getnext() 366 if (best == NULL || sroute_compare(s, best) < 0) in sroute_getnext() 368 best = s; in sroute_getnext() 372 return (best); in sroute_getnext()
|
| /freebsd-9-stable/contrib/gperf/src/ |
| D | search.cc | 342 Positions best; in find_positions() local 359 best = tryal; in find_positions() 368 current = best; in find_positions() 376 Positions best; in find_positions() local 393 best = tryal; in find_positions() 402 current = best; in find_positions() 410 Positions best; in find_positions() local 434 best = tryal; in find_positions() 443 current = best; in find_positions() 662 DYNAMIC_ARRAY (best, unsigned int, _max_key_len); in find_alpha_inc() [all …]
|
| /freebsd-9-stable/contrib/gdb/gdb/ |
| D | symtab.c | 783 struct partial_symbol *best = NULL, *p, **pp; in find_pc_sect_psymbol() local 817 best = p; in find_pc_sect_psymbol() 841 best = p; in find_pc_sect_psymbol() 845 return best; in find_pc_sect_psymbol() 1875 struct linetable_entry *best = NULL; in find_pc_sect_line() local 2044 if (prev && prev->line && (!best || prev->pc > best->pc)) in find_pc_sect_line() 2046 best = prev; in find_pc_sect_line() 2050 if (best_end <= best->pc) in find_pc_sect_line() 2057 if (best && i < len && item->pc > best->pc in find_pc_sect_line() 2082 else if (best->line == 0) in find_pc_sect_line() [all …]
|
| /freebsd-9-stable/sys/boot/common/ |
| D | module.c | 542 struct kernel_module *mp, *best; in file_findmodule() local 553 best = NULL; in file_findmodule() 565 best = mp; in file_findmodule() 570 return (best); in file_findmodule() 714 u_char *cp, *recptr, *bufend, *best; in mod_search_hints() local 728 best = cp = NULL; in mod_search_hints() 752 best = cp; in mod_search_hints() 766 else if (best) in mod_search_hints() 767 result = file_lookup(mdp->d_path, best, blen, NULL); in mod_search_hints()
|
| /freebsd-9-stable/contrib/cvs/diff/ |
| D | analyze.c | 191 int best; local 193 best = 0; 202 if (v > best 213 best = v; 221 if (best > 0) 228 best = 0; 237 if (v > best 248 best = v; 256 if (best > 0)
|