/illumos-gate/usr/src/lib/libdemangle/common/ |
H A D | cxx.c | 220 demangle(const char *first, const char *last, cpp_db_t *db) in demangle() argument 224 if (first >= last) { in demangle() 230 t = parse_type(first, last, db); in demangle() 238 if (last - first < 4) { in demangle() 244 t = parse_encoding(first + 2, last, db); in demangle() 246 if (t != first + 2 && t != last && t[0] == '.') { in demangle() 247 t = parse_dot_suffix(t, last, db); in demangle() 258 t = parse_encoding(first + 4, last, db); in demangle() 259 if (t != first + 4 && t != last) in demangle() 260 t = parse_block_invoke(t, last, db); in demangle() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/comp/ |
H A D | dirname.c | 35 register char *last; in dirname() local 37 for(last=pathname; *last; last++); in dirname() 39 while(last>pathname && *--last=='/'); in dirname() 41 for(;last>pathname && *last!='/';last--); in dirname() 42 if(last==pathname) in dirname() 45 if(*last!='/') in dirname() 46 *last = '.'; in dirname() 48 else if(last[1]=='/') in dirname() 49 last++; in dirname() 54 for(;*last=='/' && last > pathname; last--); in dirname() [all …]
|
H A D | basename.c | 35 register char *first, *last; in basename() local 36 for(first=last=pathname; *last; last++); in basename() 38 if(last>first) in basename() 39 while(*--last=='/' && last > first); in basename() 40 if(last==first && *last=='/') in basename() 44 if(*++last=='/') /* keep leading // */ in basename() 45 last++; in basename() 49 for(first=last++;first>pathname && *first!='/';first--); in basename() 53 *last = 0; in basename()
|
/illumos-gate/usr/src/lib/iconv_modules/vi/common/ |
H A D | tcvn%UTF-8.c | 38 unsigned short last; member 104 if (st->last != 0) { in _icv_iconv() 119 unidx = binsearch(st->last, vi_comb_data, VOWEL_NUM); in _icv_iconv() 125 st->last = 0; in _icv_iconv() 128 if (st->last < 0x80) { in _icv_iconv() 129 *(*outbuf)++ = (char)st->last; in _icv_iconv() 131 } else if (st->last >= 0x0080 && st->last <= 0x07ff) { in _icv_iconv() 136 *(*outbuf)++ = (char)((st->last >> 6) & 0x1f) | 0xc0; in _icv_iconv() 137 *(*outbuf)++ = (char)(st->last & 0x3f) | 0x80; in _icv_iconv() 139 } else if (st->last >= 0x0800) { in _icv_iconv() [all …]
|
H A D | tcvn%viscii.c | 40 unsigned short last; member 60 st->last = 0; in _icv_open() 108 if (st->last != 0) { in _icv_iconv() 113 idx = binsearch(st->last, tcvn_comb_data, VOWEL_NUM); in _icv_iconv() 120 st->last = 0; in _icv_iconv() 122 tcvn_2_viscii(st->last, &chout); in _icv_iconv() 123 if (st->last != 0x0 && chout == 0x0) { in _icv_iconv() 132 st->last = 0; in _icv_iconv() 141 st->last = ch; in _icv_iconv() 164 st->last = 0; in _icv_iconv() [all …]
|
H A D | tcvn%UCS-2.c | 38 unsigned long last; member 65 st->last = 0; in _icv_open() 112 if (st->last != 0) { in _icv_iconv() 127 unidx = binsearch(st->last, vi_comb_data, VOWEL_NUM); in _icv_iconv() 134 st->last = 0; in _icv_iconv() 137 SET_UCS(st->last); in _icv_iconv() 140 st->last = 0; in _icv_iconv() 148 st->last = uni; in _icv_iconv() 163 st->last = 0; in _icv_iconv() 166 if (st->last!=0 ) { in _icv_iconv() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libcmd/ |
H A D | dirname.c | 68 register const char *last; in l_dirname() local 70 for(last=pathname; *last; last++); in l_dirname() 72 while(last>pathname && *--last=='/'); in l_dirname() 74 for(;last>pathname && *last!='/';last--); in l_dirname() 75 if(last==pathname) in l_dirname() 79 last = pathname = "."; in l_dirname() 84 for(;*last=='/' && last > pathname; last--); in l_dirname() 87 if(last!=pathname && pathname[0]=='/' && pathname[1]=='/') in l_dirname() 89 while(pathname[2]=='/' && pathname<last) in l_dirname() 91 …if(last!=pathname && pathname[0]=='/' && pathname[1]=='/' && *astconf("PATH_LEADING_SLASHES",NiL,N… in l_dirname() [all …]
|
H A D | basename.c | 71 register char *first, *last; in namebase() local 73 for(first=last=pathname; *last; last++); in namebase() 75 if(last>first) in namebase() 76 while(*--last=='/' && last > first); in namebase() 77 if(last==first && *last=='/') in namebase() 81 if(*++last=='/') /* keep leading // */ in namebase() 82 last++; in namebase() 86 for(first=last++;first>pathname && *first!='/';first--); in namebase() 90 if(suffix && (n=strlen(suffix)) && n<(last-first)) in namebase() 92 if(memcmp(last-n,suffix,n)==0) in namebase() [all …]
|
/illumos-gate/usr/src/lib/udapl/udapl_tavor/common/ |
H A D | dapl_llist.c | 133 DAPL_LLIST_ENTRY *last; in dapl_llist_add_tail() local 141 last = (*head)->blink; in dapl_llist_add_tail() 142 entry->flink = last->flink; in dapl_llist_add_tail() 143 entry->blink = last; in dapl_llist_add_tail() 144 last->flink->blink = entry; in dapl_llist_add_tail() 145 last->flink = entry; in dapl_llist_add_tail() 163 DAPL_LLIST_ENTRY *last; in dapl_llist_add_entry() local 171 last = entry->blink; in dapl_llist_add_entry() 173 last->flink = new_entry; in dapl_llist_add_entry() 176 new_entry->blink = last; in dapl_llist_add_entry() [all …]
|
/illumos-gate/usr/src/cmd/mandoc/ |
H A D | man_macro.c | 98 n = man->last; in man_unscope() 119 man->last = n; in man_unscope() 121 roff_node_delete(man, man->last); in man_unscope() 138 man->last = n; in man_unscope() 140 man->last->flags |= NODE_VALID; in man_unscope() 150 man->next = (man->last == to) ? in man_unscope() 166 n = man->last; in rew_scope() 192 n = man->last; in rew_scope() 215 for (nn = man->last->parent; nn; nn = nn->parent) in blk_close() 246 for (nn = man->last->parent; nn; nn = nn->parent) in blk_close() [all …]
|
H A D | mdoc_validate.c | 313 n = mdoc->last; in mdoc_validate() 331 mdoc->last = mdoc->last->child; in mdoc_validate() 332 while (mdoc->last != NULL) { in mdoc_validate() 334 if (mdoc->last == n) in mdoc_validate() 335 mdoc->last = mdoc->last->child; in mdoc_validate() 337 mdoc->last = mdoc->last->next; in mdoc_validate() 342 mdoc->last = n; in mdoc_validate() 366 check_args(mdoc, mdoc->last); in mdoc_validate() 376 if (n->last != NULL) in mdoc_validate() 377 n->last->flags &= ~NODE_DELIMO; in mdoc_validate() [all …]
|
H A 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 …]
|
/illumos-gate/usr/src/tools/smatch/src/ |
H A D | ptrlist.c | 253 struct ptr_list *last = NULL; /* gcc complains needlessly */ in __add_ptr_list() local 257 if (!list || (nr = (last = list->prev)->nr) >= LIST_NODE_NR) { in __add_ptr_list() 269 newlist->prev = last; in __add_ptr_list() 272 last->next = newlist; in __add_ptr_list() 274 last = newlist; in __add_ptr_list() 277 ret = last->list + nr; in __add_ptr_list() 280 last->nr = nr; in __add_ptr_list() 378 struct ptr_list *last, *first = *head; in undo_ptr_list_last() local 382 last = first; in undo_ptr_list_last() 384 last = last->prev; in undo_ptr_list_last() [all …]
|
/illumos-gate/usr/src/lib/libtecla/common/ |
H A D | ioutil.c | 106 int last = start; /* The column number of the last character written */ in _io_display_text() local 148 last = start; in _io_display_text() 153 if(indentation > 0 && last < indentation) { in _io_display_text() 154 if(_io_pad_line(write_fn, data, fill_char, indentation - last)) in _io_display_text() 156 last = indentation; in _io_display_text() 162 if(prefix_len > 0 && last < margin_width) { in _io_display_text() 163 int pstart = last - indentation; in _io_display_text() 167 last = margin_width; in _io_display_text() 181 for(i=ndone; string[i] && (last+i-ndone < term_width - suffix_len || in _io_display_text() 182 (nnew==0 && last==margin_width)); i++) { in _io_display_text() [all …]
|
/illumos-gate/usr/src/cmd/picl/plugins/lib/picld_pluginutil/ |
H A D | picld_pluginutil.c | 217 char *last; in parse_version() local 221 tok = strtok_r(line, WHITESPACE, &last); in parse_version() 226 vertok = strtok_r(last, WHITESPACE, &last); in parse_version() 238 tok = strtok_r(last, WHITESPACE, &last); in parse_version() 265 char *last; in parse_path() local 267 pathtok = strtok_r(line, WHITESPACE, &last); in parse_path() 272 tok = strtok_r(last, WHITESPACE, &last); in parse_path() 315 char *last; in parse_node() local 318 tok = strtok_r(line, WHITESPACE, &last); in parse_node() 323 nametok = strtok_r(last, WHITESPACE, &last); in parse_node() [all …]
|
/illumos-gate/usr/src/test/util-tests/tests/awk/tests/ |
H A D | chem.awk | 21 last = OTHER 154 printf("%s from last [].sw+(%g,0) to last [].sw to last [].nw to last [].nw+(%g,0)\n", 156 printf("%s from last [].se-(%g,0) to last [].se to last [].ne to last [].ne-(%g,0)\n", 174 n, $0, leave(type,dir+180), leave(last,dir) 185 last = type 187 labsave(lastname, last, dir) 188 labsave(n, last, dir) 236 fused = joinring(typeint, dir, last) 240 last = typeint 242 labsave(lastname, last, dir) [all …]
|
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/bltins/ |
H A D | sleep.c | 52 char *last; in b_sleep() local 70 d = strtod(cp, &last); in b_sleep() 71 if(*last) in b_sleep() 77 ns = tmxdate(cp, &last, now); in b_sleep() 78 else if(*last=='.' && shp->decomma && d==(unsigned long)d) in b_sleep() 80 *(pp=last) = ','; in b_sleep() 82 d = strtod(cp,&last); in b_sleep() 84 if(*last==0) in b_sleep() 87 else if(*last!='.' && *last!=',') in b_sleep() 90 ns = tmxdate(pp, &last, now); in b_sleep() [all …]
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | nftw.c | 133 struct Save *last; member 171 int depth, struct Save *last, struct Var *vp) in walk() argument 188 this.last = last; in walk() 190 if ((vp->curflags & FTW_CHDIR) && last) in walk() 191 comp = last->comp; in walk() 214 if ((*vp->statf)(comp, &statb, last, _AT_TRIGGER) >= 0) { in walk() 218 (void) oldclose(last); in walk() 220 if (errno == EMFILE && oldclose(last) && in walk() 261 (cdlstat(comp, &statb, last, 0) >= 0) && in walk() 264 (nocdlstat(comp, &statb, last, 0) >= 0) && in walk() [all …]
|
/illumos-gate/usr/src/cmd/adbgen/common/ |
H A D | adbgen4.c | 50 char *cur, *last, *cp1, *cp2, *ep, *t; in main() local 54 last = buf1; in main() 57 if (goodstart(cur) && goodstart(last)) { in main() 97 ep = last + strlen(last); in main() 110 puts(last); in main() 112 cur = last; in main() 113 last = t; in main() 115 puts(last); in main()
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/tm/ |
H A D | tmxduration.c | 39 char* last; in tmxduration() local 49 ns = tmxdate(s, &last, now) - now; in tmxduration() 52 ns = strtod(s, &last) * TMX_RESOLUTION; in tmxduration() 53 if (*last && (f = sfstropen())) in tmxduration() 58 if ((i = x - t - 6) > (last - s)) in tmxduration() 60 last = (char*)s + i; in tmxduration() 68 if ((i = x - t - 1) > (last - s)) in tmxduration() 70 last = (char*)s + i; in tmxduration() 78 *e = last; in tmxduration()
|
/illumos-gate/usr/src/lib/libresolv2/common/isc/ |
H A D | ev_waits.c | 59 if (wl->last != NULL) in evWaitFor() 60 wl->last->next = new; in evWaitFor() 63 wl->last = new; in evWaitFor() 88 if (ctx->waitDone.last != NULL) in evDo() 89 ctx->waitDone.last->next = first; in evDo() 92 ctx->waitDone.last = wl->last; in evDo() 121 if (wl->last == this) in evUnwait() 122 wl->last = prev; in evUnwait() 140 if (ctx->waitDone.last == this) in evUnwait() 141 ctx->waitDone.last = prev; in evUnwait() [all …]
|
/illumos-gate/usr/src/lib/libsip/common/ |
H A D | sip_timeout.c | 95 sip_timeout_t *current, *last; in sip_untimeout() local 97 last = NULL; in sip_untimeout() 111 last->sip_timeout_next = in sip_untimeout() 115 timeout_current_end = last; in sip_untimeout() 127 last = current; in sip_untimeout() 136 last = NULL; in sip_untimeout() 144 last->sip_timeout_next = in sip_untimeout() 158 last = current; in sip_untimeout() 175 sip_timeout_t *last; in sip_timeout() local 212 last = current = timeout_list; in sip_timeout() [all …]
|
/illumos-gate/usr/src/test/libc-tests/tests/qsort/ |
H A D | merge.c | 59 #define ICOPY_LIST(src, dst, last) \ argument 62 while(src < last) 68 #define CCOPY_LIST(src, dst, last) \ argument 71 while (src < last) 97 u_char *list2, *list1, *p2, *p, *last, **p1; in mergesort() local 120 last = list2 + nmemb * size; in mergesort() 122 while (*EVAL(list2) != last) { in mergesort() 125 for (tp2 = p2 = list2; p2 != last; p1 = EVAL(l2)) { in mergesort() 129 if (p2 != last) in mergesort() 215 last = list2 + nmemb*size; in mergesort() [all …]
|
/illumos-gate/usr/src/ucbcmd/tr/ |
H A D | tr.c | 50 struct string { int last, max; char *p; } string1, string2; member 61 string1.last = string2.last = 0; in main() 137 if(s->last++ < s->max) in next() 138 return(s->last); in next() 139 s->max = s->last = 0; in next() 141 if(s->last && *s->p=='-') { in next() 148 if(s->max < s->last) { in next() 149 s->last = s->max-1; in next() 154 return(s->last = nextc(s)); in next()
|
/illumos-gate/usr/src/cmd/dtrace/demo/sched/ |
H A D | xwork.d | 27 self int last; variable 30 /self->last && args[0]->pr_stype == SOBJ_CV/ 32 @[stringof(args[1]->pr_fname)] = sum(vtimestamp - self->last); 33 self->last = 0; 37 /execname == "Xsun" && self->last == 0/ 39 self->last = vtimestamp;
|