/titanic_50/usr/src/cmd/mdb/common/modules/genunix/ |
H A D | dist.c | 42 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() 81 dist_geometric(int buckets, int beg, int end, int minbucketsize) in dist_geometric() argument 84 return (dist_linear(buckets, beg, end)); in dist_geometric() 98 out[0] = beg; in dist_geometric() 103 begzero = (beg == 0); in dist_geometric() 105 beg = 1; in dist_geometric() 107 r = exp(log((double)(end + 1) / beg) / buckets); in dist_geometric() 129 b = last = beg; in dist_geometric()
|
/titanic_50/usr/src/cmd/pcidr/ |
H A D | pcidr.c | 107 char *beg; member 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 = end + endtok_len; in parse_macros() 323 for (beg = str, i = 0; i < *lenp; i++) { in parse_macros() 324 beg = strstr(beg, MACRO_BEGTOK); in parse_macros() 325 assert(beg != NULL); in parse_macros() [all …]
|
/titanic_50/usr/src/lib/libast/common/regex/ |
H A D | regrexec.c | 39 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 D | regnexec.c | 126 #define LEADING(e,r,s) (*(s)==(e)->leading&&((s)==(e)->beg||*((s)-1)==(r)->explicit)) 317 …beg, 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 D | reglib.h | 288 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
|
H A D | regcomp.c | 1082 mbxfrm(ce->beg, key, COLL_KEY_MAX); in col() 1628 strcpy((char*)ce->beg, (char*)xc->key); in bra() 1671 if (strcmp((char*)ce->beg, (char*)ce->end) > 0) in bra() 1676 strcpy((char*)ce->beg, (char*)(ce-1)->end); in bra() 2028 int beg; in grp() local 2031 beg = env->pattern == env->cursor - env->token.len; in grp() 2496 if (beg) in grp()
|
/titanic_50/usr/src/lib/libast/common/string/ |
H A D | fmtre.c | 36 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_50/usr/src/cmd/dc/ |
H A D | dc.h | 44 #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 D | dc.c | 538 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 = ptr; in copy() [all …]
|
/titanic_50/usr/src/cmd/mailx/ |
H A D | list.c | 207 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 != 0) { in markall()
|
/titanic_50/usr/src/lib/libumem/common/ |
H A D | envvar.c | 595 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_50/usr/src/cmd/vi/port/ |
H A D | ex_io.c | 960 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[-2] == 'v' && beg[-1] == 'i'))) [all …]
|
/titanic_50/usr/src/uts/common/fs/udfs/ |
H A D | udf_subr.c | 975 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 + F_LEN - sz; in ud_get_next_fid() 1072 sz = end - beg; in ud_get_next_fid() [all …]
|
/titanic_50/usr/src/uts/common/zmod/ |
H A D | deflate.c | 660 uInt beg = s->pending; /* start of bytes to update crc */ local 664 if (s->gzhead->hcrc && s->pending > beg) 665 strm->adler = crc32(strm->adler, s->pending_buf + beg, 666 s->pending - beg); 668 beg = s->pending; 675 if (s->gzhead->hcrc && s->pending > beg) 676 strm->adler = crc32(strm->adler, s->pending_buf + beg, 677 s->pending - beg); 688 uInt beg = s->pending; /* start of bytes to update crc */ local 693 if (s->gzhead->hcrc && s->pending > beg) [all …]
|
H A D | inffast.c | 77 unsigned char FAR *beg; /* inflate()'s initial strm->next_out */ local 104 beg = out - (start - strm->avail_out); 188 op = (unsigned)(out - beg); /* max distance in output */
|
/titanic_50/usr/src/cmd/eqn/ |
H A D | lex.c | 97 beg: in yylex() 162 goto beg; in yylex()
|
/titanic_50/usr/src/lib/libdwarf/common/ |
H A D | dwarf_loc.c | 529 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()
|
/titanic_50/usr/src/lib/libcmd/common/ |
H A D | join.c | 126 char* beg; member 320 field->beg = cp; in getrec() 336 field->beg = cp; in getrec() 417 cp = fp->fields[n].beg; in getrec() 480 cp = fp->fields[n].beg; in outfield()
|
/titanic_50/usr/src/uts/common/io/vscan/ |
H A D | vscan_svc.c | 1039 char *p, *beg, *end; in vscan_svc_configure() local 1047 beg = vscan_svc_config.vsc_types; in vscan_svc_configure() 1048 end = beg + vscan_svc_config.vsc_types_len; in vscan_svc_configure() 1050 for (p = beg; p < end; p += strlen(p) + 1) { in vscan_svc_configure()
|
/titanic_50/usr/src/cmd/fs.d/udfs/fsdb/ |
H A D | fsdb.c | 1154 uint32_t beg, end, soff, lcount; in fill_pattern() local 1167 beg = addr; in fill_pattern() 1169 soff = beg & (~bmask); in fill_pattern() 1209 uint32_t beg, end, soff, lcount; in dump_disk() local 1252 beg = addr; in dump_disk() 1254 soff = beg & (~bmask); in dump_disk()
|
/titanic_50/usr/src/cmd/cmd-inet/usr.sbin/ipsecutils/ |
H A D | ikeadm.c | 1728 struct sockaddr_storage *beg, *end; in print_addr_range() local 1732 beg = &pr->beg_iprange; in print_addr_range() 1735 if (beg->ss_family != end->ss_family) { in print_addr_range() 1740 switch (beg->ss_family) { in print_addr_range() 1742 bsin = (struct sockaddr_in *)beg; in print_addr_range() 1749 bsin6 = (struct sockaddr_in6 *)beg; in print_addr_range() 1760 (void) dump_sockaddr((struct sockaddr *)beg, 0, B_TRUE, stdout, nflag); in print_addr_range()
|
/titanic_50/usr/src/lib/libresolv2/common/nameser/ |
H A D | ns_name.c | 981 char *beg = dn, tc; in decode_bitstring() local 1022 return (dn - beg); in decode_bitstring()
|
/titanic_50/usr/src/cmd/fm/modules/common/event-transport/ |
H A D | etm.c | 989 int beg, end, i; in etm_create_epmaps() local 1040 beg = atoi(numstr); in etm_create_epmaps() 1060 for (i = beg; i <= end; i++) { in etm_create_epmaps()
|
/titanic_50/usr/src/cmd/sendmail/db/hash/ |
H A D | hash_page.c | 863 u_int8_t *beg, *dest, *end, *hk, *src; local 975 beg = HKEYDATA_DATA(H_PAIRDATA(hcp->pagep, hcp->bndx)); 976 beg += dbt->doff; 984 old_dbt.data = beg;
|
/titanic_50/usr/src/data/zoneinfo/ |
H A D | asia | 1370 # (beg-dst-absolute 1376 # (next-year-beg-dst-absolute 1379 # (beg-dst (calendar-gregorian-from-absolute beg-dst-absolute)) 1381 # (next-year-beg-dst (calendar-gregorian-from-absolute 1382 # next-year-beg-dst-absolute)) 1383 # (year (calendar-extract-year beg-dst)) 1386 # (when (or (/= (calendar-extract-day beg-dst) 1387 # (calendar-extract-day next-year-beg-dst)) 1393 # (calendar-month-name (calendar-extract-month beg-dst) t) 1394 # (calendar-extract-day beg-dst)))
|