Home
last modified time | relevance | path

Searched refs:beg (Results 1 – 25 of 42) sorted by relevance

12

/titanic_51/usr/src/contrib/ast/src/lib/libast/astsa/
H A Dsfstr.c38 n += p->end - p->beg; in extend()
39 o = p->nxt - p->beg; in extend()
40 if (!(p->beg = realloc(p->beg, n))) in extend()
42 p->nxt = p->beg + o; in extend()
43 p->end = p->beg + n; in extend()
147 return p->beg; in sfstrbase()
159 if (!p->beg) in sfstropen()
161 if (!(p->beg = malloc(STR))) in sfstropen()
163 p->end = p->beg in sfstropen()
[all...]
H A Dstrmatch.c74 char* beg[MAXGROUP]; member
150 mp->current.beg[n] = mp->current.end[n] = 0; in gobble()
209 mp->current.beg[g] = mp->current.end[g] = 0; in onematch()
236 if (!mp->current.beg[n] || mp->current.beg[n] > olds) in onematch()
237 mp->current.beg[n] = olds; in onematch()
245 if (!mp->current.beg[n] || mp->current.beg[n] > olds) in onematch()
246 mp->current.beg[n] = olds; in onematch()
295 if (n <= g && mp->current.beg[ in onematch()
[all...]
H A Dsfstr.h29 char* beg; member
/titanic_51/usr/src/cmd/mdb/common/modules/genunix/
H A Ddist.c42 dist_linear(int buckets, int beg, int end) in dist_linear() argument
46 int dist = end - beg + 1; in dist_linear()
49 out[pos] = beg + (pos * dist)/buckets; in dist_linear()
58 * b_0 = beg;
65 * beg * r = end
70 * r = -------/ ((end + 1) / beg)
72 * log ((end + 1) / beg)
76 * (log ((end + 1) / beg)) / buckets
81 dist_geometric(int buckets, int beg, int end, int minbucketsize) in dist_geometric() argument
84 return (dist_linear(buckets, beg, en in dist_geometric()
[all...]
/titanic_51/usr/src/cmd/pcidr/
H A Dpcidr.c107 char *beg; member
293 * char *beg = location in <str> at _first char_ of MACRO_BEGTOK
299 char *beg, *end; in parse_macros() local
308 for (beg = str, i = 0; beg != NULL; i++) { in parse_macros()
309 beg = strstr(beg, MACRO_BEGTOK); in parse_macros()
310 if (beg == NULL) in parse_macros()
312 end = strstr(beg + begtok_len, MACRO_ENDTOK); in parse_macros()
315 beg in parse_macros()
[all...]
/titanic_51/usr/src/lib/libast/common/regex/
H A Dregrexec.c39 register unsigned char* beg; in regrexec() local
62 buf = beg = (unsigned char*)s; in regrexec()
97 while (l > beg) in regrexec()
114 x = beg; in regrexec()
115 while (beg < l) in regrexec()
119 if (n = (*record)(handle, (char*)beg, x - beg)) in regrexec()
121 beg = ++x; in regrexec()
131 beg = r + 1; in regrexec()
H A Dregnexec.c126 #define LEADING(e,r,s) (*(s)==(e)->leading&&((s)==(e)->beg||*((s)-1)==(r)->explicit))
317beg, oe->serial, oe->be);sfprintf(sfstdout, "\n %-*.*snew ", (level + 3) * 4, (level + 3) * 4, "… in better()
434 catcher.re.rep_catch.beg = s; in parserep()
438 rex->re.rep_catch.beg = s; in parserep()
597 if (!strcmp((char*)ce->beg, (char*)elt)) in collelt()
601 …if (strcmp((char*)ce->beg, (char*)elt) <= ce->min && strcmp((char*)elt, (char*)ce->end) <= ce->max) in collelt()
605 …if (strcmp((char*)ce->beg, (char*)elt) <= ce->min && strcmp((char*)elt, (char*)ce->end) <= ce->max… in collelt()
609 …if (strcmp((char*)ce->beg, (char*)elt) <= ce->min && strcmp((char*)elt, (char*)ce->end) <= ce->max… in collelt()
868 t = env->beg + o->rm_so; in parse()
893 …!(rex->flags & REG_NEWLINE) || s <= env->beg || *(s - 1) != '\n') && ((env->flags & REG_NOTBOL) ||… in parse()
[all …]
H A Dreglib.h288 Ckey_t beg; member
318 unsigned char* beg; /* beginning of next match */ member
326 unsigned char* beg; /* beginning of left match */ member
434 unsigned char* beg; member
448 unsigned char* beg; member
461 unsigned char* beg; member
533 unsigned char* beg; /* beginning of string */ member
/titanic_51/usr/src/contrib/ast/src/lib/libast/regex/
H A Dregrexec.c39 register unsigned char* beg; in regrexec() local
62 buf = beg = (unsigned char*)s; in regrexec()
97 while (l > beg) in regrexec()
114 x = beg; in regrexec()
115 while (beg < l) in regrexec()
119 if (n = (*record)(handle, (char*)beg, x - beg)) in regrexec()
121 beg = ++x; in regrexec()
131 beg = r + 1; in regrexec()
H A Dregnexec.c126 #define LEADING(e,r,s) (*(s)==(e)->leading&&((s)==(e)->beg||*((s)-1)==(r)->explicit))
316 DEBUG_CODE(0x0080,{sfprintf(sfstdout, " %-*.*sold ", (level + 3) * 4, (level + 3) * 4, "");for (oe = os; oe < oend; oe++)sfprintf(sfstdout, "<%d,%d,%d>", oe->p - env->beg, oe->serial, oe->be);sfprintf(sfstdout, "\n %-*.*snew ", (level + 3) * 4, (level + 3) * 4, "");for (oe = ns; oe < nend; oe++)sfprintf(sfstdout, "<%d,%d,%d>", oe->p - env->beg, oe->serial, oe->be);sfprintf(sfstdout, "\n");},{0;}); in better()
433 catcher.re.rep_catch.beg = s; in parserep()
437 rex->re.rep_catch.beg = s; in parserep()
596 if (!strcmp((char*)ce->beg, (char*)elt)) in collelt()
600 if (strcmp((char*)ce->beg, (char*)elt) <= ce->min && strcmp((char*)elt, (char*)ce->end) <= ce->max) in collelt()
604 if (strcmp((char*)ce->beg, (char*)elt) <= ce->min && strcmp((char*)elt, (char*)ce->end) <= ce->max && (iswlower(c) || !iswupper(c))) in collelt()
608 if (strcmp((char*)ce->beg, (char*)elt) <= ce->min && strcmp((char*)elt, (char*)ce->end) <= ce->max && (iswupper(c) || !iswlower(c))) in collelt()
867 t = env->beg in parse()
[all...]
H A Dreglib.h288 Ckey_t beg; member
318 unsigned char* beg; /* beginning of next match */ member
326 unsigned char* beg; /* beginning of left match */ member
434 unsigned char* beg; member
448 unsigned char* beg; member
461 unsigned char* beg; member
533 unsigned char* beg; /* beginning of string */ member
/titanic_51/usr/src/lib/libast/common/string/
H A Dfmtre.c36 char* beg; member
115 p->beg = s - 1; in fmtre()
117 p->len = s - p->beg; in fmtre()
142 p->beg = s - 1; in fmtre()
185 p->beg = s - 1; in fmtre()
197 *t++ = p->beg[c]; in fmtre()
/titanic_51/usr/src/contrib/ast/src/lib/libast/string/
H A Dfmtre.c36 char* beg; member
115 p->beg = s - 1; in fmtre()
117 p->len = s - p->beg; in fmtre()
142 p->beg = s - 1; in fmtre()
185 p->beg = s - 1; in fmtre()
197 *t++ = p->beg[c]; in fmtre()
/titanic_51/usr/src/cmd/dc/
H A Ddc.h44 #define length(p) ((p)->wt-(p)->beg)
45 #define rewind(p) ((p)->rd = (p)->beg)
46 #define create(p) ((p)->rd = (p)->wt = (p)->beg)
50 #define sfbeg(p) (((p)->rd == (p)->beg) ? 1 : 0)
54 #define sbackc(p) (((p)->rd == (p)->beg) ? EOF: ctoint((int)*(--(p)->rd)))
59 #define zero(p) for (pp = (p)->beg; pp < (p)->last; ) *pp++ = '\0'
79 char *beg; member
H A Ddc.c538 printf("%s", p->beg); in commnds()
1300 if (((int)*(inbas->beg)) != 10) { in readin()
1626 while ((sfbeg(p) == 0) && ((p->rd-p->beg-1)*2 >= sc)) { in tenot()
1677 if ((p->rd - p->beg) * 2 > sc) { in tenot()
1699 if (sc > (p->rd - p->beg) * 2) { in tenot()
1700 while (sc > (p->rd - p->beg) * 2) { in tenot()
2136 hdr->rd = hdr->wt = hdr->beg = ptr; in salloc()
2179 ptr = nalloc(hptr->beg, (unsigned)size); in copy()
2182 if ((ptr = nalloc(hptr->beg, (unsigned)size)) == NULL) { in copy()
2190 hdr->rd = hdr->beg in copy()
[all...]
/titanic_51/usr/src/cmd/mailx/
H A Dlist.c207 int tok, beg, mc, star, other, colmod, colresult; in markall() local
219 beg = 0; in markall()
230 if (beg != 0) { in markall()
233 for (i = beg; i <= lexnumber; i++) in markall()
236 beg = 0; in markall()
239 beg = lexnumber; in markall()
240 if (check(beg, f)) in markall()
245 mark(beg); in markall()
246 beg = 0; in markall()
251 if (beg ! in markall()
[all...]
/titanic_51/usr/src/lib/libumem/common/
H A Denvvar.c595 umem_process_value(umem_env_item_t *item_list, const char *beg, const char *end) in umem_process_value() argument
602 while (beg < end && isspace(*beg)) in umem_process_value()
603 beg++; in umem_process_value()
605 while (beg < end && isspace(*(end - 1))) in umem_process_value()
608 if (beg >= end) { in umem_process_value()
613 count = end - beg; in umem_process_value()
620 (void) strncpy(outbuf, beg, ENV_SHORT_BYTES); in umem_process_value()
628 (void) strncpy(buf, beg, count); in umem_process_value()
/titanic_51/usr/src/cmd/vi/port/
H A Dex_io.c960 unsigned char *beg, *end; local
970 beg = (unsigned char *)strchr((char *)aline, ':');
971 if (beg == NULL)
973 if ((len = beg - aline) < 2)
976 if ((beg - aline) != 2) {
977 if ((p = beg - ((unsigned int)MB_CUR_MAX * 2) - 2) < aline)
979 for ( ; p < (beg - 2); p += len) {
983 if (p != (beg - 2))
987 if (!((beg[-2] == 'e' && p[-1] == 'x')
988 || (beg[
[all...]
/titanic_51/usr/src/uts/common/fs/udfs/
H A Dudf_subr.c975 caddr_t beg, end; in ud_get_next_fid() local
1003 beg = (*fbp)->fb_addr + (offset & lbmask); in ud_get_next_fid()
1008 sz = end - beg; in ud_get_next_fid()
1015 *fid = (struct file_id *)beg; in ud_get_next_fid()
1016 beg += F_LEN; in ud_get_next_fid()
1019 bcopy(beg, buf, sz); in ud_get_next_fid()
1032 beg = (*fbp)->fb_addr; in ud_get_next_fid()
1034 bcopy(beg, buf + sz, F_LEN - sz); in ud_get_next_fid()
1035 beg = beg in ud_get_next_fid()
[all...]
/titanic_51/usr/src/boot/lib/libz/
H A Ddeflate.c767 uInt beg = s->pending; /* start of bytes to update crc */ local
771 if (s->gzhead->hcrc && s->pending > beg)
772 strm->adler = crc32(strm->adler, s->pending_buf + beg,
773 s->pending - beg);
775 beg = s->pending;
782 if (s->gzhead->hcrc && s->pending > beg)
783 strm->adler = crc32(strm->adler, s->pending_buf + beg,
784 s->pending - beg);
795 uInt beg = s->pending; /* start of bytes to update crc */ local
800 if (s->gzhead->hcrc && s->pending > beg)
826 uInt beg = s->pending; /* start of bytes to update crc */ global() local
[all...]
H A Dinffast.c75 unsigned char FAR *beg; /* inflate()'s initial strm->next_out */ local
102 beg = out - (start - strm->avail_out);
186 op = (unsigned)(out - beg); /* max distance in output */
/titanic_51/usr/src/contrib/zlib/
H A Dinffast.c56 unsigned char FAR *beg; /* inflate()'s initial strm->next_out */ in inflate_fast() local
83 beg = out - (start - strm->avail_out); in inflate_fast()
167 op = (unsigned)(out - beg); /* max distance in output */ in inflate_fast()
H A Ddeflate.c792 * Update the header CRC with the bytes s->pending_buf[beg..s->pending - 1].
794 #define HCRC_UPDATE(beg) \ argument
796 if (s->gzhead->hcrc && s->pending > (beg)) \
797 strm->adler = crc32(strm->adler, s->pending_buf + (beg), \
798 s->pending - (beg)); \
943 ulg beg = s->pending; /* start of bytes to update crc */ local
950 HCRC_UPDATE(beg);
957 beg = 0;
963 HCRC_UPDATE(beg);
970 ulg beg local
992 ulg beg = s->pending; /* start of bytes to update crc */ global() local
[all...]
/titanic_51/usr/src/cmd/eqn/
H A Dlex.c97 beg: in yylex()
162 goto beg; in yylex()
/titanic_51/usr/src/lib/libdwarf/common/
H A Ddwarf_loc.c529 Dwarf_Small *beg = dbg->de_debug_loc.dss_data + sec_offset; in _dwarf_read_loc_section() local
548 READ_UNALIGNED(dbg, start_addr, Dwarf_Addr, beg, address_size); in _dwarf_read_loc_section()
550 beg + address_size, address_size); in _dwarf_read_loc_section()
564 beg + 2 * address_size, sizeof(Dwarf_Half)); in _dwarf_read_loc_section()
577 return_block->bl_data = beg + exprblock_off; in _dwarf_read_loc_section()

12