| /openbsd-src/gnu/llvm/compiler-rt/lib/sanitizer_common/ |
| H A D | sanitizer_procmaps_linux.cpp | 35 if (data_.current >= last) return false; in Next() 37 (char *)internal_memchr(data_.current, '\n', last - data_.current); in Next() 41 segment->start = ParseHex(&data_.current); in Next() 42 CHECK_EQ(*data_.current++, '-'); in Next() 43 segment->end = ParseHex(&data_.current); in Next() 44 CHECK_EQ(*data_.current++, ' '); in Next() 45 CHECK(IsOneOf(*data_.current, '-', 'r')); in Next() 47 if (*data_.current++ == 'r') segment->protection |= kProtectionRead; in Next() 48 CHECK(IsOneOf(*data_.current, '-', 'w')); in Next() 49 if (*data_.current++ == 'w') segment->protection |= kProtectionWrite; in Next() [all …]
|
| /openbsd-src/gnu/usr.bin/cvs/diff/ |
| H A D | io.c | 82 sip (current, skip_test) in sip() argument 83 struct file_data *current; in sip() 87 if (current->desc < 0) 90 current->bufsize = sizeof (word); 91 current->buffer = xmalloc (current->bufsize); 95 current->bufsize = STAT_BLOCKSIZE (current->stat); 96 current->buffer = xmalloc (current->bufsize); 102 int oldmode = setmode (current->desc, O_BINARY); 104 size_t n = read (current->desc, current->buffer, current->bufsize); 106 pfatal_with_name (current->name); [all …]
|
| /openbsd-src/usr.bin/make/ |
| H A D | lowparse.c | 67 static struct input_stream *current; /* the input_stream being parsed. */ variable 92 current->ptr < current->end ? *current->ptr++ : grab_new_line_and_readchar() 201 origin.fname = current->origin.fname; in Parse_FromString() 206 Lst_Push(&input_stack, current); in Parse_FromString() 207 assert(current != NULL); in Parse_FromString() 208 current = new_input_string(str, &origin); in Parse_FromString() 215 if (current != NULL) in Parse_FromFile() 216 Lst_Push(&input_stack, current); in Parse_FromFile() 217 current = new_input_file(name, stream); in Parse_FromFile() 223 if (current != NULL) in Parse_NextFile() [all …]
|
| /openbsd-src/gnu/usr.bin/binutils-2.17/binutils/ |
| H A D | nlmheader.y | 531 static struct input current; variable 541 current.next = NULL; in nlmlex_file() 553 *push = current; in nlmlex_file_push() 555 current.next = push; in nlmlex_file_push() 558 current = *push; in nlmlex_file_push() 568 current.file = fopen (name, "r"); in nlmlex_file_open() 569 if (current.file == NULL) in nlmlex_file_open() 575 current.name = xstrdup (name); in nlmlex_file_open() 576 current.lineno = 1; in nlmlex_file_open() 577 current.state = BEGINNING_OF_LINE; in nlmlex_file_open() [all …]
|
| /openbsd-src/gnu/usr.bin/binutils/binutils/ |
| H A D | nlmheader.y | 531 static struct input current; variable 541 current.next = NULL; in nlmlex_file() 553 *push = current; in nlmlex_file_push() 555 current.next = push; in nlmlex_file_push() 558 current = *push; in nlmlex_file_push() 568 current.file = fopen (name, "r"); in nlmlex_file_open() 569 if (current.file == NULL) in nlmlex_file_open() 575 current.name = xstrdup (name); in nlmlex_file_open() 576 current.lineno = 1; in nlmlex_file_open() 577 current.state = BEGINNING_OF_LINE; in nlmlex_file_open() [all …]
|
| H A D | nlmheader.c | 1742 static struct input current; variable 1752 current.next = NULL; in nlmlex_file() 1764 *push = current; in nlmlex_file_push() 1766 current.next = push; in nlmlex_file_push() 1769 current = *push; in nlmlex_file_push() 1779 current.file = fopen (name, "r"); in nlmlex_file_open() 1780 if (current.file == NULL) in nlmlex_file_open() 1786 current.name = xstrdup (name); in nlmlex_file_open() 1787 current.lineno = 1; in nlmlex_file_open() 1788 current.state = BEGINNING_OF_LINE; in nlmlex_file_open() [all …]
|
| /openbsd-src/share/snmp/ |
| H A D | OPENBSD-RELAYD-MIB.txt | 57 STATUS current 65 STATUS current 88 STATUS current 96 STATUS current 105 STATUS current 113 STATUS current 121 STATUS current 129 STATUS current 131 "Number of packets passed via this redirect in the current statistics interval" 137 STATUS current [all …]
|
| H A D | OPENBSD-PF-MIB.txt | 84 STATUS current 93 STATUS current 113 STATUS current 121 STATUS current 132 STATUS current 140 STATUS current 148 STATUS current 156 STATUS current 164 STATUS current 172 STATUS current [all …]
|
| H A D | OPENBSD-CARP-MIB.txt | 62 STATUS current 70 STATUS current 78 STATUS current 89 STATUS current 97 STATUS current 106 STATUS current 127 STATUS current 135 STATUS current 143 STATUS current 151 STATUS current [all …]
|
| /openbsd-src/libexec/tradcpp/ |
| H A D | directive.c | 202 ifstate_push(&lp->current, val); in d_if() 206 debuglog(&lp->current, "#if: %s", in d_if() 221 ifstate_push(&lp->current, macro_isdefined(line)); in d_ifdef() 224 debuglog(&lp->current, "#ifdef %s: %s", in d_ifdef() 239 ifstate_push(&lp->current, !macro_isdefined(line)); in d_ifndef() 242 debuglog(&lp->current, "#ifndef %s: %s", in d_ifndef() 257 complain(&lp->current, "#elif after #else"); in d_elif() 279 debuglog2(&lp->current, &ifstate->startplace, "#elif: %s", in d_elif() 294 complain(&lp->current, in d_else() 306 debuglog2(&lp->current, &ifstate->startplace, "#else: %s", in d_else() [all …]
|
| /openbsd-src/usr.sbin/mopd/common/ |
| H A D | nma.c | 187 struct commDev *current; in nmaGetShort() local 189 current = nmaCommDev; in nmaGetShort() 191 while (current->sname != NULL) { in nmaGetShort() 192 if (current->val == devno) in nmaGetShort() 194 current++; in nmaGetShort() 197 return (current->sname); in nmaGetShort() 203 struct commDev *current; in nmaGetDevice() local 205 current = nmaCommDev; in nmaGetDevice() 207 while (current->name != NULL) { in nmaGetDevice() 208 if (current->val == devno) in nmaGetDevice() [all …]
|
| /openbsd-src/games/boggle/mkdict/ |
| H A D | mkdict.c | 60 int current, len, prev, qcount; in main() local 67 current = 1; in main() 76 fgets(buf[current], MAXWORDLEN + 1, stdin) != NULL; ++nwords) { in main() 77 if ((p = strchr(buf[current], '\n')) == NULL) { in main() 78 warnx("word too long: %s", buf[current]); in main() 86 for (p = buf[current]; *p != '\n'; p++) { in main() 107 p = buf[current]; in main() 113 common = p - buf[current] - 1; in main() 116 current = !current; in main()
|
| /openbsd-src/lib/libc/rpc/ |
| H A D | xdr_rec.c | 274 int current; in xdrrec_getbytes() local 277 current = rstrm->fbtbc; in xdrrec_getbytes() 278 if (current == 0) { in xdrrec_getbytes() 285 current = (len < current) ? len : current; in xdrrec_getbytes() 286 if (! get_input_bytes(rstrm, addr, current)) in xdrrec_getbytes() 288 addr += current; in xdrrec_getbytes() 289 rstrm->fbtbc -= current; in xdrrec_getbytes() 290 len -= current; in xdrrec_getbytes() 299 long current; in xdrrec_putbytes() local 302 current = (u_long)rstrm->out_boundry - in xdrrec_putbytes() [all …]
|
| /openbsd-src/gnu/usr.bin/binutils/bfd/ |
| H A D | archive.c | 254 struct ar_cache *current; in _bfd_look_for_bfd_in_cache() local 256 for (current = bfd_ardata (arch_bfd)->cache; current != NULL; in _bfd_look_for_bfd_in_cache() 257 current = current->next) in _bfd_look_for_bfd_in_cache() 258 if (current->ptr == filepos) in _bfd_look_for_bfd_in_cache() 259 return current->arelt; in _bfd_look_for_bfd_in_cache() 281 struct ar_cache *current = bfd_ardata (arch_bfd)->cache; in _bfd_add_bfd_to_archive_cache() local 283 while (current->next != NULL) in _bfd_add_bfd_to_archive_cache() 284 current = current->next; in _bfd_add_bfd_to_archive_cache() 285 current->next = new_cache; in _bfd_add_bfd_to_archive_cache() 1195 bfd *current; in _bfd_construct_extended_name_table() local [all …]
|
| H A D | coffcode.h | 2980 asection *current; local 3067 for (current = abfd->sections; current != NULL; current = current->next) 3068 if (current->reloc_count >= 0xffff || current->lineno_count >= 0xffff) 3087 for (current = abfd->sections; current != NULL; current = current->next) 3097 for (current = abfd->sections; current != NULL; current = current->next) 3099 section_list[i] = current; 3112 current = section_list[i]; 3113 current->next = section_list[i + 1]; 3120 if (current->_raw_size == 0) 3127 current->target_index = 1; [all …]
|
| /openbsd-src/usr.bin/tmux/ |
| H A D | mode-tree.c | 74 u_int current; 174 * If the current line would now be off screen reset the offset to the 177 if (mtd->current > mtd->height - 1) in mode_tree_clear_lines() 178 mtd->offset = mtd->current - mtd->height + 1; in mode_tree_clear_lines() 257 if (mtd->current == 0) { in mode_tree_up() 259 mtd->current = mtd->line_size - 1; in mode_tree_up() 264 mtd->current--; 265 if (mtd->current < mtd->offset) in mode_tree_down() 273 if (mtd->current == mtd->line_size - 1) { in mode_tree_down() 275 mtd->current in mode_tree_down() 68 u_int current; global() member 373 mode_tree_each_tagged(struct mode_tree_data * mtd,mode_tree_each_cb cb,struct client * c,key_code key,int current) mode_tree_each_tagged() argument 1026 struct mode_tree_item *current, *parent, *mti; mode_tree_key() local [all...] |
| /openbsd-src/usr.bin/tftp/ |
| H A D | tftpsubs.c | 70 static int current; /* index of buffer in use */ variable 97 current = 0; in rw_init() 113 bfs[current].counter = BF_FREE; /* free old one */ in readit() 114 current = !current; /* "incr" current */ in readit() 116 b = &bfs[current]; /* look at new buffer */ in readit() 181 bfs[current].counter = ct; /* set size of data to write */ in writeit() 182 current = !current; /* switch to other buffer */ in writeit() 183 if (bfs[current].counter != BF_FREE) /* if not free */ in writeit() 186 bfs[current].counter = BF_ALLOC; /* mark as alloc'd */ in writeit() 187 *dpp = (struct tftphdr *)bfs[current].buf; in writeit()
|
| /openbsd-src/gnu/llvm/clang/tools/scan-build-py/lib/libscanbuild/ |
| H A D | shell.py | 26 for current in word: 27 if state == 0 and current in reserved: 29 elif state == 0 and current == '\\': 31 elif state == 1 and current in reserved | {'\\'}: 33 elif state == 0 and current == '"': 35 elif state == 2 and current == '"': 37 elif state == 0 and current == "'": 39 elif state == 3 and current == "'":
|
| /openbsd-src/gnu/usr.bin/binutils-2.17/bfd/ |
| H A D | coffcode.h | 2932 asection *current; in coff_compute_section_file_positions() local 3018 for (current = abfd->sections; current != NULL; current = current->next) in coff_compute_section_file_positions() 3019 if (current->reloc_count >= 0xffff || current->lineno_count >= 0xffff) in coff_compute_section_file_positions() 3038 for (current = abfd->sections; current != NULL; current = current->next) in coff_compute_section_file_positions() 3048 for (current = abfd->sections; current != NULL; current = current->next) in coff_compute_section_file_positions() 3050 section_list[i] = current; in coff_compute_section_file_positions() 3064 current = section_list[i]; in coff_compute_section_file_positions() 3065 bfd_section_list_append (abfd, current); in coff_compute_section_file_positions() 3072 if (current->size == 0) in coff_compute_section_file_positions() 3079 current->target_index = 1; in coff_compute_section_file_positions() [all …]
|
| H A D | archive.c | 1250 bfd *current; in _bfd_construct_extended_name_table() local 1256 for (current = abfd->archive_head; current != NULL; current = current->next) in _bfd_construct_extended_name_table() 1261 normal = normalize (current, current->filename); in _bfd_construct_extended_name_table() 1283 struct ar_hdr *hdr = arch_hdr (current); in _bfd_construct_extended_name_table() 1286 && hdr->ar_name[thislen] != ar_padchar (current))) in _bfd_construct_extended_name_table() 1293 hdr->ar_name[thislen] = ar_padchar (current); in _bfd_construct_extended_name_table() 1308 for (current = abfd->archive_head; current != NULL; current = in _bfd_construct_extended_name_table() 1309 current->next) in _bfd_construct_extended_name_table() 1314 normal = normalize (current, current->filename); in _bfd_construct_extended_name_table() 1324 struct ar_hdr *hdr = arch_hdr (current); in _bfd_construct_extended_name_table() [all …]
|
| /openbsd-src/libexec/security/ |
| H A D | security | 138 my $curr = BACKUP_DIR . "$base.current"; 631 my $current = BACKUP_DIR . "$mode.current"; 639 my %current; 640 if (-s $current) { 641 nag !(open my $fh, '<', $current), "open: $current: $!" 647 $current{$file} = \%f; 654 if (my $old = delete $current{$f}) { 668 foreach my $f (sort keys %current) { [all...] |
| /openbsd-src/gnu/gcc/gcc/ |
| H A D | bitmap.c | 87 if (head->current == elt) in bitmap_element_free() 89 head->current = next != 0 ? next : prev; in bitmap_element_free() 90 if (head->current) in bitmap_element_free() 91 head->indx = head->current->indx; in bitmap_element_free() 161 if (head->current->indx > prev->indx) in bitmap_elt_clear_from() 163 head->current = prev; in bitmap_elt_clear_from() 170 head->current = NULL; in bitmap_elt_clear_from() 315 for (ptr = head->current; in bitmap_element_link() 333 for (ptr = head->current; in bitmap_element_link() 347 head->current = element; in bitmap_element_link() [all …]
|
| /openbsd-src/usr.bin/dig/lib/isc/include/isc/ |
| H A D | buffer.h | 126 ((void *)((unsigned char *)(b)->base + (b)->current)) /*b*/ 139 #define isc_buffer_consumedlength(b) ((b)->current) /* b-a */ 140 #define isc_buffer_remaininglength(b) ((b)->used - (b)->current) /* d-b */ 141 #define isc_buffer_activelength(b) ((b)->active - (b)->current) /* c-b */ 157 unsigned int current; member 573 (_b)->current = 0; \ 583 (_b)->current = 0; \ 607 if ((_b)->current > (_b)->used) \ 608 (_b)->current = (_b)->used; \ 616 (_b)->current = 0; \ [all …]
|
| /openbsd-src/gnu/llvm/clang/tools/clang-format/ |
| H A D | clang-format.py | 67 return vim.current.buffer 68 return [ line.decode(encoding) for line in vim.current.buffer ] 81 os.path.exists(vim.current.buffer.name): 82 with open(vim.current.buffer.name, 'r') as f: 84 sequence = difflib.SequenceMatcher(None, ondisk, vim.current.buffer) 92 lines = ['-lines', '%s:%s' % (vim.current.range.start + 1, 93 vim.current.range.end + 1)] 121 if vim.current.buffer.name: 122 command.extend(['-assume-filename', vim.current.buffer.name]) 147 vim.current.buffer[op[1]:op[2]] = lines[op[3]:op[4]]
|
| /openbsd-src/usr.sbin/makefs/cd9660/ |
| H A D | iso9660_rrip.c | 371 struct ISO_SUSP_ATTRIBUTES *current = NULL; in cd9660_rrip_initialize_node() local 387 current = cd9660node_susp_create_node(SUSP_TYPE_RRIP, in cd9660_rrip_initialize_node() 389 cd9660node_rrip_px(current, parent->node); in cd9660_rrip_initialize_node() 390 TAILQ_INSERT_TAIL(&node->head, current, rr_ll); in cd9660_rrip_initialize_node() 396 current = cd9660node_susp_create_node(SUSP_TYPE_RRIP, in cd9660_rrip_initialize_node() 398 cd9660node_rrip_px(current, grandparent->node); in cd9660_rrip_initialize_node() 399 TAILQ_INSERT_TAIL(&node->head, current, rr_ll); in cd9660_rrip_initialize_node() 403 current = cd9660node_susp_create_node(SUSP_TYPE_RRIP, in cd9660_rrip_initialize_node() 405 cd9660_rrip_PL(current,node); in cd9660_rrip_initialize_node() 406 TAILQ_INSERT_TAIL(&node->head, current, rr_ll); in cd9660_rrip_initialize_node() [all …]
|