Home
last modified time | relevance | path

Searched refs:cur (Results 1 – 25 of 416) sorted by relevance

12345678910>>...17

/openbsd/usr.bin/vmstat/
H A Ddkstats.c222 cur.dk_select[i] = cur.dk_select[j]; in dkreadstats()
237 cur.dk_seek = reallocarray(cur.dk_seek, in dkreadstats()
243 cur.dk_time = reallocarray(cur.dk_time, in dkreadstats()
258 if (!cur.dk_select || !cur.dk_rxfer || in dkreadstats()
259 !cur.dk_wxfer || !cur.dk_seek || in dkreadstats()
260 !cur.dk_rbytes || !cur.dk_wbytes || in dkreadstats()
273 cur.dk_seek = reallocarray(cur.dk_seek, in dkreadstats()
294 if (!cur.dk_select || !cur.dk_rxfer || in dkreadstats()
295 !cur.dk_wxfer || !cur.dk_seek || in dkreadstats()
500 if (!cur.dk_time || !cur.dk_rxfer || !cur.dk_wxfer || !cur.dk_seek || in dkinit()
[all …]
/openbsd/usr.sbin/makefs/
H A Dwalk.c88 cur = cur->next; in walk_dir()
120 if (cur == NULL || strcmp(cur->name, name) == 0) in walk_dir()
126 cur = cur->next; in walk_dir()
131 cur->child = walk_dir(root, rp, cur, in walk_dir()
159 cur->child = walk_dir(root, rp, cur, NULL); in walk_dir()
186 for (cur = first->next; cur != NULL; cur = cur->next) in walk_dir()
199 cur = ecalloc(1, sizeof(*cur)); in create_fsnode()
202 cur->inode = ecalloc(1, sizeof(*cur->inode)); in create_fsnode()
210 cur->inode->st.st_mtim = cur->inode->st.st_ctim = in create_fsnode()
239 for (cur = node->first; cur->next; cur = cur->next) { in free_fsnodes()
[all …]
H A Dffs.c623 } else if (S_ISBLK(cur->type) || S_ISCHR(cur->type)) { in ffs_build_dinode1()
665 } else if (S_ISBLK(cur->type) || S_ISCHR(cur->type)) { in ffs_build_dinode2()
682 fsnode *cur; in ffs_populate_dir() local
699 for (cur = root; cur != NULL; cur = cur->next) { in ffs_populate_dir()
702 if (cur == root && cur->parent != NULL) in ffs_populate_dir()
703 cur->inode->ino = cur->parent->inode->ino; in ffs_populate_dir()
709 ffs_make_dirbuf(&dirbuf, cur->name, cur); in ffs_populate_dir()
712 cur->parent == NULL ? cur : cur->parent->first); in ffs_populate_dir()
728 for (cur = root; cur != NULL; cur = cur->next) { in ffs_populate_dir()
734 cur->path, cur->name) >= sizeof(path)) in ffs_populate_dir()
[all …]
H A Dmsdos.c169 fsnode *cur; in msdos_populate_dir() local
176 for (cur = root->next; cur != NULL; cur = cur->next) { in msdos_populate_dir()
178 cur->name) >= sizeof(pbuf)) { in msdos_populate_dir()
184 cur->inode->flags |= FI_ALLOCATED; in msdos_populate_dir()
185 if (cur != root) { in msdos_populate_dir()
188 cur->parent = parent; in msdos_populate_dir()
195 cur->inode->flags |= FI_WRITTEN; in msdos_populate_dir()
197 if (cur->child) { in msdos_populate_dir()
203 if (msdos_populate_dir(pbuf, de, cur->child, cur, in msdos_populate_dir()
209 } else if (!S_ISREG(cur->type)) { in msdos_populate_dir()
[all …]
/openbsd/usr.sbin/npppd/common/
H A Dradish.c260 cur = cur->rd_r; in rd_insert()
268 cur = cur->rd_l; in rd_insert()
431 cur = cur->rd_r; in rd_match_next()
433 cur = cur->rd_l; in rd_match_next()
509 cur = cur->rd_r; in rd_lookup()
511 cur = cur->rd_l; in rd_lookup()
596 cur = cur->rd_r; in rd_delete()
602 cur = cur->rd_l; in rd_delete()
677 cur = cur->rd_l; in rd_walktree()
682 cur = cur->rd_p; in rd_walktree()
[all …]
H A Daddr_range.c112 cur = *list; in in_addr_range_list_remove_all()
114 cur0 = cur; in in_addr_range_list_remove_all()
115 cur = cur->next; in in_addr_range_list_remove_all()
128 for (cur = list; *cur != NULL; cur = &(*cur)->next) { in in_addr_range_list_uniq()
131 a = *cur; in in_addr_range_list_uniq()
151 *cur = b; in in_addr_range_list_uniq()
177 for (cur = *list; cur != NULL; cur = cur->next) { in in_addr_range_list_includes()
178 if ((addr0 & cur->mask) == (cur->addr & cur->mask)) in in_addr_range_list_includes()
196 for (cur = list; *cur != NULL; cur = &(*cur)->next) { in in_addr_range_list_add0()
198 ((*cur)->addr & (*cur)->mask)) { in in_addr_range_list_add0()
[all …]
/openbsd/sys/dev/pci/drm/amd/amdgpu/
H A Damdgpu_res_cursor.h90 cur->node = block; in amdgpu_res_first()
101 cur->node = node; in amdgpu_res_first()
110 cur->start = start; in amdgpu_res_first()
111 cur->size = size; in amdgpu_res_first()
113 cur->node = NULL; in amdgpu_res_first()
138 cur->size -= size; in amdgpu_res_next()
139 if (cur->size) { in amdgpu_res_next()
146 block = cur->node; in amdgpu_res_next()
153 cur->size = min(amdgpu_vram_mgr_block_size(block), cur->remaining); in amdgpu_res_next()
157 node = cur->node; in amdgpu_res_next()
[all …]
/openbsd/gnu/usr.bin/gcc/gcc/
H A Dcpptrad.c137 if (cur[0] + cur[1] == '\r' + '\n')
154 while (*cur == '\\' && is_vspace (cur[1]))
155 cur = handle_newline (pfile, cur + 1);
196 if (*cur == '*' && cur[1] != '/'
203 cur = handle_newline (pfile, cur - 1);
315 cur = skip_escaped_newlines (pfile, cur);
494 cur = handle_newline (pfile, cur - 1);
535 if (*cur == '\\' || *cur == '"' || *cur == '\'')
725 pfile->buffer->cur = cur;
769 pfile->buffer->cur = cur;
[all …]
H A Dsched-vis.c498 cur = safe_concat (buf, cur, "/v");
499 cur = safe_concat (buf, cur, "[");
508 cur = safe_concat (buf, cur, "] ");
510 cur = safe_concat (buf, cur, tmp);
529 cur = safe_concat (buf, cur, st[i]);
537 cur = safe_concat (buf, cur, tmp);
542 cur = safe_concat (buf, cur, ")");
561 cur = safe_concat (buf, cur, t);
568 cur = safe_concat (buf, cur, t);
582 cur = safe_concat (buf, cur, t);
[all …]
H A Dcpplex.c116 if (buffer->cur[-1] + buffer->cur[0] == '\r' + '\n')
447 cur = pfile->buffer->cur;
449 cur++;
452 if (*cur == '?' || *cur == '\\' || *cur == '$')
463 pfile->buffer->cur = cur;
518 buffer->cur = cur;
576 cur = pfile->buffer->cur;
577 while (ISIDNUM (*cur) || *cur == '.' || VALID_SIGN (*cur, cur[-1]))
578 cur++;
581 if (*cur == '?' || *cur == '\\' || *cur == '$')
[all …]
/openbsd/gnu/gcc/gcc/
H A Dsched-vis.c367 cur = safe_concat (buf, cur, "/v"); in print_exp()
368 cur = safe_concat (buf, cur, "["); in print_exp()
377 cur = safe_concat (buf, cur, "] "); in print_exp()
379 cur = safe_concat (buf, cur, tmp); in print_exp()
398 cur = safe_concat (buf, cur, st[i]); in print_exp()
406 cur = safe_concat (buf, cur, tmp); in print_exp()
411 cur = safe_concat (buf, cur, ")"); in print_exp()
427 cur = safe_concat (buf, cur, t); in print_value()
434 cur = safe_concat (buf, cur, t); in print_value()
474 cur = safe_concat (buf, cur, t); in print_value()
[all …]
H A Dtree-iterator.c102 cur = i->ptr; in tsi_link_before()
105 if (cur) in tsi_link_before()
178 cur = i->ptr; in tsi_link_after()
181 if (cur) in tsi_link_after()
223 cur = i->ptr; in tsi_delink()
224 next = cur->next; in tsi_delink()
225 prev = cur->prev; in tsi_delink()
251 cur = i->ptr; in tsi_split_statement_list_after()
253 gcc_assert (cur); in tsi_split_statement_list_after()
254 next = cur->next; in tsi_split_statement_list_after()
[all …]
H A Dstruct-equiv.c238 *p = info->cur; in struct_equiv_make_checkpoint()
261 : info->cur.ninsns > p->ninsns && !info->cur.input_count) in struct_equiv_improve_checkpoint()
1025 info->cur.ninsns = info->cur.version = 0; in struct_equiv_init()
1026 info->cur.local_count = info->cur.input_count = 0; in struct_equiv_init()
1027 info->cur.x_start = info->cur.y_start = NULL_RTX; in struct_equiv_init()
1122 info->cur.ninsns++; in struct_equiv_block_eq()
1130 gcc_assert (!info->cur.x_start == !info->cur.y_start); in struct_equiv_block_eq()
1135 : !insns_match_p (info->cur.x_start, info->cur.y_start, info)) in struct_equiv_block_eq()
1149 struct_equiv_merge (info->cur.x_start, info->cur.y_start, info); in struct_equiv_block_eq()
1184 info->cur.ninsns++; in struct_equiv_block_eq()
[all …]
/openbsd/gnu/gcc/libcpp/
H A Dtraditional.c121 const uchar *cur = pfile->buffer->cur; in skip_macro_block_comment() local
123 cur++; in skip_macro_block_comment()
129 while(! (*cur++ == '/' && cur[-2] == '*') ) in skip_macro_block_comment()
132 pfile->buffer->cur = cur; in skip_macro_block_comment()
154 buffer->cur = cur; in copy_comment()
187 memcpy (pfile->out.cur, cur, len); in copy_comment()
377 pfile->buffer->cur = cur; in _cpp_scan_out_logical_line()
405 pfile->buffer->cur = cur; in _cpp_scan_out_logical_line()
417 cur = pfile->buffer->cur; in _cpp_scan_out_logical_line()
441 if (*cur == '\\' || *cur == '"' || *cur == '\'') in _cpp_scan_out_logical_line()
[all …]
H A Dlex.c317 const uchar *cur = buffer->cur; in _cpp_skip_block_comment() local
341 buffer->cur = cur; in _cpp_skip_block_comment()
350 buffer->cur = cur - 1; in _cpp_skip_block_comment()
359 cur = buffer->cur; in _cpp_skip_block_comment()
363 buffer->cur = cur; in _cpp_skip_block_comment()
503 cur = pfile->buffer->cur; in lex_identifier()
510 pfile->buffer->cur = cur; in lex_identifier()
566 cur = pfile->buffer->cur; in lex_number()
569 while (ISIDNUM (*cur) || *cur == '.' || VALID_SIGN (*cur, cur[-1])) in lex_number()
575 pfile->buffer->cur = cur; in lex_number()
[all …]
/openbsd/usr.sbin/iostat/
H A Diostat.c247 if (cur.dk_select[i]) in header()
272 if (cur.dk_select[i]) in header()
291 if (cur.dk_rxfer[dn] + cur.dk_wxfer[dn]) in disk_stats()
292 mbps = ((cur.dk_rbytes[dn] + cur.dk_wbytes[dn]) / in disk_stats()
293 (1024.0)) / (cur.dk_rxfer[dn] + cur.dk_wxfer[dn]); in disk_stats()
301 printf(" %5.0f", (cur.dk_rxfer[dn] + cur.dk_wxfer[dn]) / etime); in disk_stats()
303 printf(" %4.0f", (cur.dk_rxfer[dn] + cur.dk_wxfer[dn]) / etime); in disk_stats()
311 mbps = (cur.dk_rbytes[dn] + cur.dk_wbytes[dn]) / in disk_stats()
334 (cur.dk_rbytes[dn] + cur.dk_wbytes[dn]) / (1024.0) / etime); in disk_stats2()
337 printf(" %4.0f", (cur.dk_rxfer[dn] + cur.dk_wxfer[dn]) / etime); in disk_stats2()
[all …]
/openbsd/gnu/llvm/llvm/utils/
H A Dchunk-print-before-all.py29 cur = [] variable
32 if len(cur) != 0:
34 cur = [] variable
35 cur.append("; " + line)
38 if len(cur) != 0:
40 cur = [] variable
41 cur.append("; " + line)
45 cur = [] variable
46 cur.append(line)
49 cur.append(line)
[all …]
/openbsd/lib/libc/gen/
H A Dpopen.c74 free(cur); in popen()
84 free(cur); in popen()
124 cur->fp = iop; in popen()
125 cur->pid = pid; in popen()
127 cur->next = pidlist; in popen()
128 pidlist = cur; in popen()
156 for (last = NULL, cur = pidlist; cur; last = cur, cur = cur->next) in pclose()
157 if (cur->fp == iop) in pclose()
160 if (cur == NULL) { in pclose()
167 pidlist = cur->next; in pclose()
[all …]
/openbsd/gnu/usr.bin/binutils-2.17/opcodes/
H A Dor32-opc.c690 cur--; in parse_params()
692 debug (9, ">%08lX %08lX\n", cur->type, cur->data); in parse_params()
693 cur++; in parse_params()
700 cur--; in parse_params()
701 cur->type = type | cur->type | OPTYPE_OP; in parse_params()
703 cur++; in parse_params()
713 cur++; in parse_params()
727 cur--; in parse_params()
729 debug (9, "#%08lX %08lX\n", cur->type, cur->data); in parse_params()
730 cur++; in parse_params()
[all …]
/openbsd/gnu/usr.bin/binutils/opcodes/
H A Dor32-opc.c711 cur--;
713 debug (9, ">%08X %08X\n", cur->type, cur->data);
714 cur++;
721 cur--;
722 cur->type = type | cur->type | OPTYPE_OP;
724 cur++;
734 cur++;
748 cur--;
750 debug (9, "#%08X %08X\n", cur->type, cur->data);
751 cur++;
[all …]
/openbsd/usr.sbin/ypserv/revnetgroup/
H A Dhash.c114 struct group_entry *cur; in lookup() local
116 cur = table[hashkey(key)]; in lookup()
118 while (cur) { in lookup()
120 return(cur->data); in lookup()
121 cur = cur->next; in lookup()
179 cur = table[i]; in mstore()
186 while (cur) { in mstore()
187 if (!strcmp(cur->key, key) && !strcmp(cur->domain, domain)) { in mstore()
188 p = cur->groups; in mstore()
198 cur->groups = tmp; in mstore()
[all …]
/openbsd/gnu/llvm/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_printf.cpp138 for (; *cur; cur++) { in VSNPrintf()
143 cur++; in VSNPrintf()
146 cur++; in VSNPrintf()
147 bool have_width = (*cur >= '0' && *cur <= '9'); in VSNPrintf()
151 while (*cur >= '0' && *cur <= '9') { in VSNPrintf()
155 bool have_precision = (cur[0] == '.' && cur[1] == '*'); in VSNPrintf()
158 cur += 2; in VSNPrintf()
162 cur += have_z; in VSNPrintf()
163 bool have_l = cur[0] == 'l' && cur[1] != 'l'; in VSNPrintf()
164 cur += have_l; in VSNPrintf()
[all …]
/openbsd/sbin/pdisk/
H A Dpartition_map.c299 struct entry *cur; in add_partition_to_map() local
315 (cur->dpme_pblock_start + cur->dpme_pblocks)) in add_partition_to_map()
318 if (cur == NULL) { in add_partition_to_map()
351 delete_entry(cur); in add_partition_to_map()
359 if (cur == NULL) in add_partition_to_map()
364 if (cur == NULL) in add_partition_to_map()
372 if (cur == NULL) in add_partition_to_map()
436 struct entry *cur; in renumber_disk_addresses() local
593 return cur; in find_entry_by_disk_address()
606 return cur; in find_entry_by_type()
[all …]
/openbsd/etc/etc.arm64/
H A Dlogin.conf45 :datasize-cur=1536M:\
47 :maxproc-cur=128:\
49 :openfiles-cur=512:\
50 :stacksize-cur=4M:\
65 :openfiles-cur=128:\
66 :stacksize-cur=8M:\
74 :datasize-cur=1536M:\
77 :maxproc-cur=128:\
95 :datasize-cur=1843M:\
105 :maxproc-cur=512:\
[all …]
/openbsd/etc/etc.armv7/
H A Dlogin.conf45 :datasize-cur=1536M:\
47 :maxproc-cur=128:\
49 :openfiles-cur=512:\
50 :stacksize-cur=4M:\
65 :openfiles-cur=128:\
66 :stacksize-cur=8M:\
74 :datasize-cur=1536M:\
77 :maxproc-cur=128:\
95 :datasize-cur=1843M:\
105 :maxproc-cur=256:\
[all …]

12345678910>>...17