Home
last modified time | relevance | path

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

12345678910>>...13

/illumos-gate/usr/src/common/lzma/
H A DLzHash.h15 #define HASH2_CALC hashValue = cur[0] | ((UInt32)cur[1] << 8);
18 UInt32 temp = p->crc[cur[0]] ^ cur[1]; \
23 UInt32 temp = p->crc[cur[0]] ^ cur[1]; \
26 hashValue = (temp ^ ((UInt32)cur[2] << 8) ^ (p->crc[cur[3]] << 5)) & p->hashMask; }
29 UInt32 temp = p->crc[cur[0]] ^ cur[1]; \
32 hash4Value = (temp ^ ((UInt32)cur[2] << 8) ^ (p->crc[cur[3]] << 5)); \
37 #define HASH_ZIP_CALC hashValue = ((cur[2] | ((UInt32)cur[0] << 8)) ^ p->crc[cur[1]]) & 0xFFFF;
41 hash2Value = (p->crc[cur[0]] ^ cur[1]) & (kHash2Size - 1);
44 UInt32 temp = p->crc[cur[0]] ^ cur[1]; \
49 UInt32 temp = p->crc[cur[0]] ^ cur[1]; \
[all …]
/illumos-gate/usr/src/tools/protocmp/
H A Dlist.c58 elem *cur; in examine_list() local
63 for (cur = list->list[i]; cur; cur = cur->next) in examine_list()
80 elem *cur; in print_list() local
83 for (cur = list->list[i]; cur; cur = cur->next) in print_list()
98 elem *cur; in print_type_list() local
101 for (cur = list->list[i]; cur; cur = cur->next) { in print_type_list()
208 for (cur = head; cur; cur = cur->next) { in add_pkg()
221 if (!cur) { in add_pkg()
233 cur = new; in add_pkg()
248 elem *cur; in add_elem() local
[all …]
/illumos-gate/usr/src/cmd/sgs/demo_rdb/common/
H A Dbpt.c69 (cur && (cur->bl_addr < addr)); in set_breakpoint()
70 prev = cur, cur = cur->bl_next) in set_breakpoint()
72 if (cur && (cur->bl_addr == addr)) { in set_breakpoint()
103 (cur && (cur->bl_addr != addr)); in find_bp()
104 cur = cur->bl_next) in find_bp()
118 (cur && (cur->bl_addr < addr)); in delete_bp()
119 prev = cur, cur = cur->bl_next) in delete_bp()
144 for (cur = ph->pp_breakpoints; cur; cur = cur->bl_next) { in list_breakpoints()
157 for (cur = ph->pp_breakpoints; cur; cur = cur->bl_next) { in set_breaks()
181 for (cur = ph->pp_breakpoints; cur; cur = cur->bl_next) in clear_breaks()
[all …]
/illumos-gate/usr/src/lib/libdwarf/common/
H A Dmalloc_check.c207 struct mc_data_s *cur = base; in balanced_by_alloc_p() local
209 for (; cur; cur = cur->mc_prev) { in balanced_by_alloc_p()
211 if (cur->mc_type == MC_TYPE_ALLOC) { in balanced_by_alloc_p()
213 *addr_match = cur; in balanced_by_alloc_p()
218 *addr_match = cur; in balanced_by_alloc_p()
224 *addr_match = cur; in balanced_by_alloc_p()
293 if (cur == 0) in dwarf_malloc_check_complete()
296 for (; cur; cur = cur->mc_prev) { in dwarf_malloc_check_complete()
299 if (cur->mc_dealloc_noted) { in dwarf_malloc_check_complete()
310 cur->mc_alloc_number); in dwarf_malloc_check_complete()
[all …]
H A Ddwarf_dnames.c664 for(n = 0,cur = inhdr_first; cur; ++n ) { in dwarf_debugnames_header()
669 cur = tmp; in dwarf_debugnames_header()
712 *version = cur->din_version; in dwarf_debugnames_sizes()
780 ptr, cur->din_offset_size, in dwarf_debugnames_cu_entry()
823 ptr, cur->din_offset_size, in dwarf_debugnames_local_tu_entry()
1087 abbrev = cur->din_abbrev_list; in _dwarf_internal_abbrev_by_code()
1213 endentrypool = cur->din_entry_pool +cur->din_entry_pool_size; in dwarf_debugnames_entrypool()
1274 endpool = cur->din_entry_pool + cur->din_entry_pool_size; in dwarf_debugnames_entrypool_values()
1282 abcount = cur->din_abbrev_list_count; in dwarf_debugnames_entrypool_values()
1352 cur = h->dn_inhdr_first; in _dwarf_debugnames_destructor()
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libast/string/
H A Dfmtversion.c35 register char* cur; in fmtversion() local
40 buf = cur = fmtbuf(n = 18); in fmtversion()
41 end = cur + n; in fmtversion()
43 sfsprintf(cur, end - cur, "%04lu-%02lu-%02lu", (v / 10000) % 10000, (v / 100) % 100, v % 100); in fmtversion()
47 cur += sfsprintf(cur, end - cur, "%d.", n); in fmtversion()
49 cur += sfsprintf(cur, end - cur, "%d.", n); in fmtversion()
50 sfsprintf(cur, end - cur, "%ld.%ld", (v >> 8) & 0xff, v & 0xff); in fmtversion()
/illumos-gate/usr/src/lib/smbsrv/libsmb/common/
H A Dsmb_ht.c328 while (cur) { in ht_remove_item()
347 free(cur); in ht_remove_item()
355 prev = cur; in ht_remove_item()
356 cur = cur->hi_next; in ht_remove_item()
375 HT_ITEM *cur; in ht_find_item() local
389 while (cur) { in ht_find_item()
394 cur = cur->hi_next; in ht_find_item()
452 while (cur) { in ht_clean_table()
470 free(cur); in ht_clean_table()
482 prev = cur; in ht_clean_table()
[all …]
/illumos-gate/usr/src/cmd/mailx/
H A Dmyfopen.c106 register NODE *cur, *prev; in del1() local
108 for (prev = cur = fplist; cur != (NODE *)NULL; cur = cur->next) { in del1()
109 if (cur == oldcur) { in del1()
110 if (cur == fplist) { in del1()
111 cur = fplist = cur->next; in del1()
113 prev->next = cur->next; in del1()
121 prev = cur; in del1()
123 return(cur); in del1()
143 register NODE *cur; in my_fclose() local
147 cur = search(iop); in my_fclose()
[all …]
/illumos-gate/usr/src/tools/smatch/src/smatch_data/db/
H A Dsmdb.py37 cur = con.cursor()
39 for row in cur:
337 for txt in cur:
368 for txt in cur:
389 for txt in cur:
397 for txt in cur:
460 for txt in cur:
473 for txt in cur:
485 for txt in cur:
490 for txt in cur:
[all …]
/illumos-gate/usr/src/cmd/mdb/common/modules/svc.configd/
H A Dconfigd.c178 request_log_entry_t cur; in request_log() local
216 if (mdb_vread(&cur, sizeof (cur), addr) == -1) { in request_log()
244 if (cur.rl_end != 0) { in request_log()
248 dur = cur.rl_end - cur.rl_start; in request_log()
296 cur.rl_client, cur.rl_clientid, cur.rl_num_ptrs, in request_log()
297 cur.rl_start); in request_log()
302 cur.rl_ptrs[idx].rlp_id, cur.rl_ptrs[idx].rlp_ptr, in request_log()
387 request_log_entry_t cur; in request_log_walk_init() local
418 if (mdb_vread(&cur, sizeof (cur), addr) == -1) { in request_log_walk_init()
454 request_log_entry_t cur; in request_log_walk_step() local
[all …]
/illumos-gate/usr/src/lib/libzonecfg/common/
H A Dlibzonecfg.c1790 for (cur = cur->xmlChildrenNode; cur != NULL; cur = cur->next) { in zonecfg_delete_filesystem_core()
1874 for (cur = cur->xmlChildrenNode; cur != NULL; cur = cur->next) { in zonecfg_lookup_filesystem()
2137 for (cur = cur->xmlChildrenNode; cur != NULL; cur = cur->next) { in zonecfg_lookup_nwif()
2257 for (cur = cur->xmlChildrenNode; cur != NULL; cur = cur->next) { in zonecfg_delete_nwif_core()
2478 for (cur = cur->xmlChildrenNode; cur != NULL; cur = cur->next) { in zonecfg_lookup_dev()
2552 for (cur = cur->xmlChildrenNode; cur != NULL; cur = cur->next) { in zonecfg_delete_dev_core()
2655 for (cur = cur->xmlChildrenNode; cur != NULL; cur = cur->next) { in zonecfg_delete_auth_core()
2729 for (cur = cur->xmlChildrenNode; cur != NULL; cur = cur->next) { in zonecfg_lookup_admin()
2805 for (cur = cur->xmlChildrenNode; cur != NULL; cur = cur->next) { in zonecfg_delete_secflags_core()
2882 for (cur = cur->xmlChildrenNode; cur != NULL; cur = cur->next) { in zonecfg_lookup_secflags()
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libpp/
H A Dppinput.c91 PUSH(t, cur); in pppush()
100 cur->fd = n; in pppush()
102 cur->symbol = 0; in pppush()
153 cur->fd = -1; in pppush()
158 if (lseek(cur->fd, 0L, SEEK_END) > 0 && !lseek(cur->fd, 0L, SEEK_SET)) in pppush()
167 cur->fd = -1; in pppush()
208 switch (cur->type) in pppush()
248 cur->buffer = p; in pppush()
251 cur->nextchr = p; in pppush()
286 struct ppinstk* cur; in ppexpand() local
[all …]
H A Dpplib.h561 PUSH(IN_COPY, cur); \
564 cur->nextchr = p; \
577 cur->buffer = cur->nextchr = ppexpand(p); \
594 cur->symbol = p; \
607 cur->symbol = p; \
608 cur->nextchr = v; \
620 cur->symbol = p; \
642 cur->nextchr = p; \
657 cur->nextchr = p; \
669 cur->nextchr = p; \
[all …]
/illumos-gate/usr/src/cmd/truss/
H A Dhtbl.c72 hashb_t *cur; in destroy_hash() local
75 cur = &htp->tbl[i]; in destroy_hash()
77 tmp = cur->first; in destroy_hash()
124 hashb_t *cur; in add_fcall() local
131 tmp = cur->first; in add_fcall()
162 cur->first = new; in add_fcall()
179 hashb_t *cur; in iterate_hash() local
186 cur = &tbl->tbl[i]; in iterate_hash()
189 tmp = cur->first; in iterate_hash()
204 hashb_t *cur; in iter_free() local
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libsum/
H A Dsum-ast4.c46 Ast4_sum_t cur; member
56 a->tot.sum0 ^= a->cur.sum0; in ast4_init()
57 a->cur.sum0 = 0; in ast4_init()
58 a->tot.sum1 ^= a->cur.sum1; in ast4_init()
59 a->cur.sum1 = 0; in ast4_init()
60 a->tot.sum2 ^= a->cur.sum2; in ast4_init()
61 a->cur.sum2 = 0; in ast4_init()
62 a->tot.sum3 ^= a->cur.sum3; in ast4_init()
63 a->cur.sum3 = 0; in ast4_init()
115 …swapmem(_ast_intswap, data->buf = ((Ast4_t*)p)->buf, &((Ast4_t*)p)->cur, sizeof(((Ast4_t*)p)->cur)… in ast4_data()
[all …]
/illumos-gate/usr/src/lib/libresolv2/common/irs/
H A Dgetaddrinfo.c487 while (cur && cur->ai_next)
488 cur = cur->ai_next;
577 while (cur && cur->ai_next)
578 cur = cur->ai_next;
675 for (cur = result; cur; cur = cur->ai_next) {
716 cur = cur->ai_next;
764 cur = cur->ai_next;
808 cur = cur->ai_next;
821 cur = cur->ai_next;
883 for (cur = *res; cur; cur = cur->ai_next) {
[all …]
/illumos-gate/usr/src/cmd/rcap/rcapd/
H A Drcapd_scanner.c201 if ((*cur & mask) == mask && (*cur & notmask) == 0) in count_pages()
204 *cur = 0; in count_pages()
205 cur++; in count_pages()
212 cur = (caddr_t)((intptr_t)(cur + 7) & ~7); in count_pages()
391 (void) lmapping_insert(lm, cur.pr_addr, cur.pr_npage * in mklmapping()
610 cur.pr_npage * cur.pr_pagesize) == 0) in unignore_referenced_mappings()
616 &cur); in unignore_referenced_mappings()
806 cur.pr_npage * cur.pr_pagesize)) { in scan()
813 cur.pr_npage * cur.pr_pagesize / 1024; in scan()
862 cur.pr_pagesize * cur.pr_npage; in scan()
[all …]
/illumos-gate/usr/src/uts/common/os/
H A Dkdi.c115 kdi_dtrace_state_t new, cur; in kdi_dtrace_set() local
118 cur = kdi_dtrace_state; in kdi_dtrace_set()
122 if (cur == KDI_DTSTATE_KMDB_BPT_ACTIVE) in kdi_dtrace_set()
124 if (cur == KDI_DTSTATE_DTRACE_ACTIVE) in kdi_dtrace_set()
129 if (cur == KDI_DTSTATE_KMDB_BPT_ACTIVE) in kdi_dtrace_set()
131 if (cur == KDI_DTSTATE_IDLE) in kdi_dtrace_set()
136 if (cur == KDI_DTSTATE_DTRACE_ACTIVE) in kdi_dtrace_set()
138 if (cur == KDI_DTSTATE_KMDB_BPT_ACTIVE) in kdi_dtrace_set()
143 if (cur == KDI_DTSTATE_DTRACE_ACTIVE) in kdi_dtrace_set()
145 if (cur == KDI_DTSTATE_IDLE) in kdi_dtrace_set()
[all …]
/illumos-gate/usr/src/cmd/mdb/common/mdb/
H A Dmdb_whatis.c92 uint_t offset, cur; in mdb_whatis_overlaps() local
124 while (cur > 0) { in mdb_whatis_overlaps()
125 cur--; in mdb_whatis_overlaps()
130 if (!w->w_addrfound[cur]) in mdb_whatis_overlaps()
134 for (cur = offset + 1; cur < w->w_naddrs; cur++) { in mdb_whatis_overlaps()
477 mdb_free(cur, sizeof (*cur)); in mdb_whatis_unregister_module()
540 cur->wcb_name, cur->wcb_modname, cur->wcb_prio, in cmd_whatis()
541 cur->wcb_func, cur->wcb_arg, curfl); in cmd_whatis()
592 cur->wcb_modname, cur->wcb_name); in cmd_whatis()
594 if (cur->wcb_func(&w, cur->wcb_arg) != 0) in cmd_whatis()
[all …]
/illumos-gate/usr/src/cmd/ypcmd/revnetgroup/
H A Dtable.c71 tablelist cur, new; local
74 cur = table[index];
79 new->next = cur;
89 tablelist cur; local
91 cur = table[tablekey(key)];
92 while (cur && strcmp(cur->key, key)) {
93 cur = cur->next;
95 if (cur) {
96 return (cur->datum);
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/edit/
H A Demacs.c258 cur = eol; in ed_emacsread()
290 cur--; in ed_emacsread()
321 i = cur; in ed_emacsread()
521 cur = i; in ed_emacsread()
557 cur = 0; in ed_emacsread()
570 i = cur; in ed_emacsread()
698 cur = 0; in ed_emacsread()
752 cur = 0; in show_info()
1027 if(i=='\\' && cur>ep->mark && (out[cur-1]=='/' || out[cur-1]==' ')) in escape()
1078 if(cur>0 && eol==cur && (cur<(SEARCHSIZE-2) || ep->prevdirection == -2)) in escape()
[all …]
/illumos-gate/usr/src/lib/libc/port/inet/
H A Dinet_ntop.c107 struct { int base, len; } best, cur; in inet_ntop6() local
120 cur.base = -1; in inet_ntop6()
123 if (cur.base == -1) in inet_ntop6()
124 cur.base = i, cur.len = 1; in inet_ntop6()
126 cur.len++; in inet_ntop6()
128 if (cur.base != -1) { in inet_ntop6()
130 best = cur; in inet_ntop6()
131 cur.base = -1; in inet_ntop6()
135 if (cur.base != -1) { in inet_ntop6()
136 if (best.base == -1 || cur.len > best.len) in inet_ntop6()
[all …]
/illumos-gate/usr/src/cmd/sgs/link_audit/common/
H A Dwho.c49 Objinfo *op, *cur, *prev; in add_object() local
93 for (prev = NULL, cur = *objlist; cur; prev = cur, cur = cur->o_next) { in add_object()
94 if (lpc < cur->o_lpc) in add_object()
103 op->o_next = cur; in add_object()
109 Objinfo *cur, *prev; in remove_object() local
111 for (prev = NULL, cur = *objlist; cur; prev = cur, cur = cur->o_next) { in remove_object()
112 if (cur->o_lmp == lmp) in remove_object()
119 if (!cur) in remove_object()
123 *objlist = cur->o_next; in remove_object()
127 if (cur->o_elf) { in remove_object()
[all …]
/illumos-gate/usr/src/cmd/mandoc/
H A Deqn.c842 for (cur = parent; cur != NULL; cur = cur->parent) in eqn_parse()
849 if (cur != NULL) in eqn_parse()
920 for (cur = parent; cur != NULL; cur = cur->parent) in eqn_parse()
926 if (cur == NULL) { in eqn_parse()
931 parent = cur; in eqn_parse()
1000 for (cur = parent; cur != NULL; cur = cur->parent) in eqn_parse()
1003 if (cur == NULL) { in eqn_parse()
1034 cur->text = p; in eqn_parse()
1097 free(cur->text); in eqn_parse()
1098 cur->text = p; in eqn_parse()
[all …]
/illumos-gate/usr/src/uts/sun4u/serengeti/io/
H A Dsbdp.c549 sbdp_wnode_t *cur; in sbdp_add_new_bd_info() local
568 sbdp_wnode_t *cur; in sbdp_cleanup_bd() local
579 if (cur == NULL) { in sbdp_cleanup_bd()
621 sbdp_wnode_t *cur; in sbdp_get_wnodep() local
629 cur = cur->next) { in sbdp_get_wnodep()
632 return (cur); in sbdp_get_wnodep()
648 sbdp_wnode_t *cur; in sbdp_insert_wnode() local
674 sbdp_wnode_t *cur; in sbdp_remove_wnode() local
687 if (cur != NULL) in sbdp_remove_wnode()
965 sbdp_wnode_t *cur; in sbdp_cpu_in_reset() local
[all …]

12345678910>>...13