| /netbsd/src/external/ibm-public/postfix/dist/src/util/ |
| D | sane_basename.c | 75 const char *last; in sane_basename() local 96 last = path + strlen(path) - 1; in sane_basename() 97 while (*last == '/') { in sane_basename() 98 if (last == path) in sane_basename() 100 last--; in sane_basename() 106 first = last - 1; in sane_basename() 110 return (STR(vstring_strncpy(bp, first + 1, last - first))); in sane_basename() 118 const char *last; in sane_dirname() local 139 last = path + strlen(path) - 1; in sane_dirname() 140 while (*last == '/') { in sane_dirname() [all …]
|
| /netbsd/src/usr.bin/vmstat/ |
| D | drvstats.c | 51 struct _drive cur, last; variable 82 cur.fld -= last.fld; \ in drvswap() 83 last.fld = tmp; \ in drvswap() 89 timersub(&tmp_timer, &(last.x), &(cur.x)); \ in drvswap() 90 timerclear(&(last.x)); \ in drvswap() 91 timerset(&tmp_timer, &(last.x)); \ in drvswap() 106 || cur.rxfer[i] - last.rxfer[i] > INT64_MAX in drvswap() 107 || cur.wxfer[i] - last.wxfer[i] > INT64_MAX in drvswap() 108 || cur.seek[i] - last.seek[i] > INT64_MAX in drvswap() 112 last.rxfer[i] = cur.rxfer[i]; in drvswap() [all …]
|
| /netbsd/src/sys/lib/libkern/ |
| D | rngtest.c | 174 endrun(rngtest_t *const rc, const int last, int run) in endrun() argument 178 "Run of %d %ds found\n", rc->rt_name, run, last); in endrun() 183 ++rc->rt_runs[last][run]; in endrun() 193 int last; in rngtest() local 227 last = (rc->rt_b[0] >> 7) & 1; in rngtest() 232 if (((c >> i) & 1) != last) { in rngtest() 233 endrun(rc, last, run); in rngtest() 235 last = (c >> i) & 1; in rngtest() 240 endrun(rc, last, run); in rngtest() 243 for (last = 0; last <= 1; ++last) { in rngtest() [all …]
|
| /netbsd/src/external/bsd/mdocml/dist/ |
| D | man_macro.c | 98 n = man->last; in man_unscope() 117 man->last = n; in man_unscope() 119 roff_node_delete(man, man->last); in man_unscope() 136 man->last = n; in man_unscope() 138 man->last->flags |= NODE_VALID; in man_unscope() 148 man->next = (man->last == to) ? in man_unscope() 164 n = man->last; in rew_scope() 190 n = man->last; in rew_scope() 213 for (nn = man->last->parent; nn; nn = nn->parent) in blk_close() 244 for (nn = man->last->parent; nn; nn = nn->parent) in blk_close() [all …]
|
| D | mdoc_validate.c | 302 n = mdoc->last; in mdoc_validate() 320 mdoc->last = mdoc->last->child; in mdoc_validate() 321 while (mdoc->last != NULL) { in mdoc_validate() 323 if (mdoc->last == n) in mdoc_validate() 324 mdoc->last = mdoc->last->child; in mdoc_validate() 326 mdoc->last = mdoc->last->next; in mdoc_validate() 331 mdoc->last = n; in mdoc_validate() 355 check_args(mdoc, mdoc->last); in mdoc_validate() 365 if (n->last != NULL) in mdoc_validate() 366 n->last->flags &= ~NODE_DELIMO; in mdoc_validate() [all …]
|
| D | man.c | 47 if (man->last->type != ROFFT_EQN || ln > man->last->line) in man_parseln() 88 while (man->last->parent->type != ROFFT_ROOT && in man_descope() 89 man_macro(man->last->parent->tok)->flags & MAN_ESCOPED) in man_descope() 90 man_unscope(man, man->last->parent); in man_descope() 95 man_unscope(man, man->last->parent); in man_descope() 96 roff_body_alloc(man, line, offs, man->last->tok); in man_descope() 128 if (man->last->tok == MAN_SH || man->last->tok == MAN_SS) in man_ptext() 130 if (man->last->type == ROFFT_TEXT && in man_ptext() 131 ((ep = man_hasc(man->last->string)) != NULL)) { in man_ptext() 170 man->last->flags |= NODE_EOS; in man_ptext() [all …]
|
| /netbsd/src/external/gpl3/gdb/dist/sim/ppc/ |
| D | ld-insn.c | 90 fields->first->last = -1; in parse_insn_format() 94 fields->last = ZALLOC(insn_field); in parse_insn_format() 95 fields->last->first = insn_bit_size; in parse_insn_format() 96 fields->last->last = insn_bit_size; in parse_insn_format() 97 fields->last->width = 0; in parse_insn_format() 100 fields->first->next = fields->last; in parse_insn_format() 101 fields->last->prev = fields->first; in parse_insn_format() 149 new_field->next = fields->last; in parse_insn_format() 150 new_field->prev = fields->last->prev; in parse_insn_format() 172 new_field->last = new_field->next->first - 1; /* guess */ in parse_insn_format() [all …]
|
| /netbsd/src/external/bsd/tmux/dist/ |
| D | image-sixel.c | 126 const char *last; in sixel_parse_attributes() local 130 last = cp; in sixel_parse_attributes() 131 while (last != end) { in sixel_parse_attributes() 132 if (*last != ';' && (*last < '0' || *last > '9')) in sixel_parse_attributes() 134 last++; in sixel_parse_attributes() 137 if (endptr == last || *endptr != ';') in sixel_parse_attributes() 138 return (last); in sixel_parse_attributes() 140 if (endptr == last) in sixel_parse_attributes() 141 return (last); in sixel_parse_attributes() 148 if (endptr == last || *endptr != ';') { in sixel_parse_attributes() [all …]
|
| /netbsd/src/external/gpl3/binutils/dist/binutils/ |
| D | bfdtest1.c | 35 bfd *last, *next; in main() local 51 for (count = 0, last = bfd_openr_next_archived_file (archive, NULL); in main() 52 last; in main() 53 last = next) in main() 55 next = bfd_openr_next_archived_file (archive, last); in main() 56 bfd_close (last); in main() 60 for (last = bfd_openr_next_archived_file (archive, NULL); in main() 61 last; in main() 62 last = next) in main() 64 next = bfd_openr_next_archived_file (archive, last); in main() [all …]
|
| /netbsd/src/crypto/external/bsd/heimdal/dist/lib/wind/ |
| D | stringprep.py | 80 last = 0 82 if last: 83 if last[0] == x[0]: 84 last = (last[0], last[1], last[2], last[3] + x[3]) 86 ret.append(last) 87 last = x 89 last = x 90 if last: 91 ret.append(last)
|
| /netbsd/src/sys/external/bsd/drm2/include/linux/ |
| D | interval_tree.h | 48 unsigned long last; /* inclusive */ member 61 if (na->last < nb->last) in interval_tree_compare_nodes() 63 if (na->last > nb->last) in interval_tree_compare_nodes() 114 unsigned long last) in interval_tree_iter_first() argument 121 if (last < node->start) in interval_tree_iter_first() 123 KASSERT(node->start <= last); in interval_tree_iter_first() 124 KASSERT(node->last >= start); in interval_tree_iter_first() 136 struct interval_tree_node *node, unsigned long start, unsigned long last) in interval_tree_iter_next() argument 144 if (last < next->start) in interval_tree_iter_next() 146 KASSERT(next->start <= last); in interval_tree_iter_next() [all …]
|
| /netbsd/src/external/gpl3/gcc/dist/gcc/ |
| D | gimple-iterator.cc | 66 update_bb_for_stmts (gimple_seq_node first, gimple_seq_node last, in update_bb_for_stmts() argument 74 if (n == last) in update_bb_for_stmts() 116 gimple_seq_node last, in gsi_insert_seq_nodes_before() argument 125 update_bb_for_stmts (first, last, bb); in gsi_insert_seq_nodes_before() 135 last->next = cur; in gsi_insert_seq_nodes_before() 136 cur->prev = last; in gsi_insert_seq_nodes_before() 147 last->next = NULL; in gsi_insert_seq_nodes_before() 155 gimple_seq_set_last (i->seq, last); in gsi_insert_seq_nodes_before() 166 i->ptr = last; in gsi_insert_seq_nodes_before() 189 gimple_seq_node first, last; in gsi_insert_seq_before_without_update() local [all …]
|
| D | ipa-ref.cc | 35 struct ipa_ref *last; in remove_reference() local 39 last = list->referring.last (); in remove_reference() 40 if (this != last) in remove_reference() 50 && last_alias != last) in remove_reference() 63 list->referring[referred_index] = list->referring.last (); in remove_reference() 68 last = &list2->references.last (); in remove_reference() 72 if (ref != last) in remove_reference() 74 *ref = *last; in remove_reference()
|
| /netbsd/src/external/gpl3/gdb/dist/sim/common/ |
| D | sim-module.c | 295 MODULE_INIT_LIST **last; in sim_module_add_init_fn() local 300 last = &modules->init_list; in sim_module_add_init_fn() 301 while (*last != NULL) in sim_module_add_init_fn() 302 last = &((*last)->next); in sim_module_add_init_fn() 306 *last = l; in sim_module_add_init_fn() 317 MODULE_RESUME_LIST **last; in sim_module_add_resume_fn() local 322 last = &modules->resume_list; in sim_module_add_resume_fn() 323 while (*last != NULL) in sim_module_add_resume_fn() 324 last = &((*last)->next); in sim_module_add_resume_fn() 328 *last = l; in sim_module_add_resume_fn() [all …]
|
| /netbsd/src/external/gpl2/xcvs/dist/src/ |
| D | log.c | 37 char *last; member 55 char *last; member 377 if (rp->last != NULL) in cvslog() 378 send_to_server (rp->last, 0); in cvslog() 383 if (rp->last) in cvslog() 384 free (rp->last); in cvslog() 439 if (log_data.revlist->last) in cvslog() 440 free (log_data.revlist->last); in cvslog() 603 r->last = strchr (copy, ':'); in log_parse_revlist() 604 if (r->last != NULL) in log_parse_revlist() [all …]
|
| D | buffer.c | 54 buf->last = NULL; in buf_initialize() 170 && (((buf->last->text + BUFFER_DATA_SIZE) in buf_output() 171 - (buf->last->bufp + buf->last->size)) in buf_output() 174 memcpy (buf->last->bufp + buf->last->size, data, len); in buf_output() 175 buf->last->size += len; in buf_output() 193 buf->last->next = newdata; in buf_output() 195 buf->last = newdata; in buf_output() 232 && (buf->last->text + BUFFER_DATA_SIZE in buf_append_char() 233 != buf->last->bufp + buf->last->size)) in buf_append_char() 235 *(buf->last->bufp + buf->last->size) = ch; in buf_append_char() [all …]
|
| /netbsd/src/external/gpl3/gdb/dist/gdb/ |
| D | cp-name-parser.y | 59 struct demangle_component **last; 62 struct demangle_component *comp, *last; 65 struct demangle_component *comp, **last; 488 $$.last = &d_left ($2); 492 $$.last = &d_left ($1); 497 $$.last = &d_left ($3); 501 $$.last = &d_left ($2); 553 $$.last = $$.comp; 558 $$.last = d_right ($1.last); 562 $$.last = $$.comp; [all …]
|
| /netbsd/src/external/gpl3/gcc/dist/libstdc++-v3/include/ext/pb_ds/ |
| D | assoc_container.hpp | 253 cc_hash_table(It first, It last) in cc_hash_table() argument 254 { base_type::copy_from_range(first, last); } in cc_hash_table() 260 cc_hash_table(It first, It last, const hash_fn& h) in cc_hash_table() argument 262 { this->copy_from_range(first, last); } in cc_hash_table() 271 cc_hash_table(It first, It last, const hash_fn& h, const eq_fn& e) in cc_hash_table() argument 273 { this->copy_from_range(first, last); } in cc_hash_table() 283 cc_hash_table(It first, It last, const hash_fn& h, const eq_fn& e, in cc_hash_table() argument 286 { this->copy_from_range(first, last); } in cc_hash_table() 297 cc_hash_table(It first, It last, const hash_fn& h, const eq_fn& e, in cc_hash_table() argument 300 { this->copy_from_range(first, last); } in cc_hash_table() [all …]
|
| /netbsd/src/external/gpl3/gdb/dist/sim/igen/ |
| D | gen.c | 228 if (l->last < r->last) in opcode_bit_cmp() 230 if (l->last > r->last) in opcode_bit_cmp() 263 int last, insn_field_entry *field, opcode_field *opcode) in new_opcode_bits() argument 269 new_bits->last = last; in new_opcode_bits() 275 opcode_bits **last = &new_list; in new_opcode_bits() local 279 old_bits->last, in new_opcode_bits() 281 while (*last != NULL) in new_opcode_bits() 283 int cmp = opcode_bit_cmp (new_bits, *last); in new_opcode_bits() 292 last = &(*last)->next; in new_opcode_bits() 294 new_bits->next = *last; in new_opcode_bits() [all …]
|
| D | ld-decode.c | 156 new_rule->last = target_a2i (options.hi_bit_nr, in load_decode_table() 158 if (new_rule->last < 0 || new_rule->last >= options.insn_bit_size) in load_decode_table() 162 new_rule->last = options.insn_bit_size - 1; in load_decode_table() 163 if (new_rule->first > new_rule->last) in load_decode_table() 175 || new_rule->force_first > new_rule->last + 1) in load_decode_table() 179 new_rule->force_first = new_rule->last + 1; in load_decode_table() 186 if (new_rule->force_last > new_rule->last in load_decode_table() 216 decode_path_list **last = &new_rule->paths; in load_decode_table() local 220 (*last) = ZALLOC (decode_path_list); in load_decode_table() 222 (*last)->path = ZALLOC (decode_path); in load_decode_table() [all …]
|
| /netbsd/src/games/hack/ |
| D | hack.o_init.c | 92 int i, j, first, last, sum, end; in init_objects() local 103 last = first + 1; in init_objects() 104 while (last < end && objects[last].oc_olet == let in init_objects() 105 && objects[last].oc_name != NULL) in init_objects() 106 last++; in init_objects() 116 for (j = first; j < last; j++) in init_objects() 119 for (j = first; j < last; j++) in init_objects() 120 objects[j].oc_prob = (100 + j - first) / (last - first); in init_objects() 128 while (last < end && objects[last].oc_olet == let) in init_objects() 129 last++; in init_objects() [all …]
|
| /netbsd/src/usr.bin/make/ |
| D | lst.c | 104 list->last = ln; in Lst_Prepend() 119 ln = LstNodeNew(list->last, NULL, datum); in Lst_Append() 121 if (list->last == NULL) { in Lst_Append() 123 list->last = ln; in Lst_Append() 125 list->last->next = ln; in Lst_Append() 126 list->last = ln; in Lst_Append() 146 if (list->last == ln) in Lst_Remove() 147 list->last = ln->prev; in Lst_Remove() 198 src->first->prev = dst->last; in Lst_MoveAll() 199 if (dst->last != NULL) in Lst_MoveAll() [all …]
|
| /netbsd/src/common/dist/zlib/examples/ |
| D | gun.c | 156 last = have ? (have--, (int)(*next++)) : -1) 203 int last; /* last byte read by NEXT(), or -1 if EOF */ in lunpipe() local 227 if (last == -1) in lunpipe() 251 final = prev = (unsigned)last; /* low 8 bits of code */ in lunpipe() 254 if (last & 1) { /* code must be < 256 */ in lunpipe() 258 rem = (unsigned)last >> 1; /* remaining 7 bits */ in lunpipe() 287 code += (unsigned)last << left; /* middle (or high) bits of code */ in lunpipe() 293 code += (unsigned)last << left; /* high bits of code */ in lunpipe() 299 rem = (unsigned)last >> (8 - left); /* unused bits from last byte */ in lunpipe() 385 int ret, first, last; in gunpipe() local [all …]
|
| /netbsd/src/external/bsd/libbind/dist/isc/ |
| D | ev_waits.c | 65 if (wl->last != NULL) in evWaitFor() 66 wl->last->next = new; in evWaitFor() 69 wl->last = new; in evWaitFor() 94 if (ctx->waitDone.last != NULL) in evDo() 95 ctx->waitDone.last->next = first; in evDo() 98 ctx->waitDone.last = wl->last; in evDo() 127 if (wl->last == this) in evUnwait() 128 wl->last = prev; in evUnwait() 146 if (ctx->waitDone.last == this) in evUnwait() 147 ctx->waitDone.last = prev; in evUnwait() [all …]
|
| /netbsd/src/usr.bin/seq/ |
| D | seq.c | 106 double last = 0.0; in main() local 164 last = e_atof(argv[argc - 1]); in main() 177 errx(1, "zero %screment", (first < last)? "in" : "de"); in main() 182 incr = (first < last) ? 1.0 : -1.0; in main() 184 if (incr <= 0.0 && first < last) in main() 187 if (incr >= 0.0 && first > last) in main() 207 fmt = generate_format(first, incr, last, equalize, pad, fmt); in main() 213 for (first += incr; first <= last; first += incr) { in main() 223 for (first += incr; first >= last; first += incr) { in main() 476 generate_format(double first, double incr, double last, in generate_format() argument [all …]
|