/illumos-gate/usr/src/cmd/eqn/ |
H A D | sqrt.c | 18 sqrt(int p2) in sqrt() argument 23 nps = EFFPS(((eht[p2]*9)/10+(resolution/POINT-1))/(resolution/POINT)); in sqrt() 25 yyval = p2; in sqrt() 30 yyval, p2, ebase[yyval], eht[yyval]); in sqrt() 34 nrwid(p2, ps, p2); in sqrt() 37 "(rn'\\v'.2m'\\s%d", yyval, ebase[p2], nps, p2, ps); in sqrt() 38 printf("\\v'%du'\\h'-\\n(%du'\\*(%d\n", -ebase[p2], p2, p2); in sqrt() 42 p2, ebase[p2], -eht[p2], p2); in sqrt() 43 printf("\\v'%du'\\h'-\\n(%du'\\*(%d\n", eht[p2]-ebase[p2], p2, p2); in sqrt() 44 eht[p2] += VERT(1); in sqrt() [all …]
|
H A D | over.c | 18 boverb(int p1, int p2) in boverb() argument 26 h = eht[p1] + eht[p2] + d; in boverb() 29 h = eht[p1] + eht[p2]; in boverb() 31 b = eht[p2] - d; in boverb() 34 yyval, p1, p2, b, h); in boverb() 36 nrwid(p2, ps, p2); in boverb() 38 printf(".if \\n(%d>\\n(%d .nr %d \\n(%d\n", p2, treg, treg, p2); in boverb() 43 yyval, eht[p2]-ebase[p2]-d, treg, p2, p2); in boverb() 46 p2, p1, -(eht[p2]-ebase[p2]+d+ebase[p1]), p1); in boverb() 51 p2, p1, -eht[p2]+ebase[p2]-ebase[p1], p1); in boverb() [all …]
|
H A D | fromto.c | 18 fromto(int p1, int p2, int p3) in fromto() argument 30 if (p2 > 0) { in fromto() 31 nrwid(p2, pss, p2); in fromto() 33 p2, yyval, yyval, p2); in fromto() 34 eht[yyval] += eht[p2]; in fromto() 35 b = eht[p2]; in fromto() 44 if (p2 > 0) { in fromto() 46 eht[p2]-ebase[p2]+b1, yyval, p2, pss, p2, EFFPS(ps)); in fromto() 48 yyval, p2, -(eht[p2]-ebase[p2]+b1)); in fromto() 67 yyval, p1, p2, p3, eht[yyval], ebase[yyval]); in fromto() [all …]
|
H A D | shift.c | 30 h2 = eht[p2]; in bshiftb() 31 b2 = ebase[p2]; in bshiftb() 53 if (rfont[p2] == ITAL) in bshiftb() 90 if (rfont[p2] == ITAL) in bshiftb() 98 ofree(p2); in bshiftb() 127 h2 = eht[p2]; b2 = ebase[p2]; in shift2() 156 printf(".ds %d \\|\\*(%d\n", p2, p2); in shift2() 160 nrwid(p2, effps, p2); in shift2() 169 printf(".if \\n(%d>\\n(%d .nr %d \\n(%d\n", p2, treg, treg, p2); in shift2() 172 p1, subsh, effps, p2, p2, -subsh+supsh); in shift2() [all …]
|
H A D | eqnbox.c | 18 eqnbox(int p1, int p2, int lu) in eqnbox() argument 24 b = max(ebase[p1], ebase[p2]); in eqnbox() 25 eht[yyval] = h = b + max(eht[p1]-ebase[p1], eht[p2]-ebase[p2]); in eqnbox() 29 yyval, p1, p2, b, h); in eqnbox() 30 if (rfont[p1] == ITAL && lfont[p2] == ROM) in eqnbox() 38 printf(".as %d \"%s\\*(%d\n", yyval, sh, p2); in eqnbox() 39 rfont[p1] = rfont[p2]; in eqnbox() 40 ofree(p2); in eqnbox()
|
H A D | integral.c | 19 integral(int p, int p1, int p2) in integral() argument 24 if (p2 != 0) in integral() 25 printf(".ds %d \\v'-0.3m'\\*(%d\\v'0.3m'\n", p2, p2); in integral() 27 if (p1 != 0 && p2 != 0) in integral() 28 shift2(p, p1, p2); in integral() 31 else if (p2 != 0) in integral() 32 bshiftb(p, SUP, p2); in integral()
|
H A D | pile.c | 18 lpile(int type, int p1, int p2) in lpile() argument 28 nlist = p2 - p1; in lpile() 32 for (i = p1; i < p2; i++) in lpile() 36 for (i = p2-1; i > mid; i--) in lpile() 47 for (i = p1; i < p2; i++) in lpile() 53 for (i = p1+1; i < p2; i++) { in lpile() 60 for (i = p2-1; i >= p1; i--) { in lpile() 84 for (i = p1; i < p2; i++) in lpile()
|
/illumos-gate/usr/src/ucbcmd/sed/ |
H A D | sed1.c | 105 char *p1, *p2; in execute() local 178 if(p2) in execute() 181 if(p2) in execute() 378 p2 = holdsp; in command() 441 p2--; in command() 486 p2--; in command() 489 *p2 = 0; in command() 608 p2 = cbp; 619 p2 = ibuf; 638 p2 = ibuf; [all …]
|
/illumos-gate/usr/src/cmd/csh/ |
H A D | sh.parse.c | 68 while (p1 != p2) in asyntax() 75 asyn0(p1, p2); in asyntax() 118 asyn3(p1, p2); in asyn0() 131 if (p1 == p2) in asyn3() 134 for (p2 = p2->prev; p2->word[0] != ')'; p2 = p2->prev) in asyn3() 135 if (p2 == p1) in asyn3() 146 alhistt = p2; in asyn3() 186 retp->next = p2; in freenod() 187 p2->prev = retp; in freenod() 208 while (p1 != p2) in syntax() [all …]
|
H A D | sh.exp.c | 121 int p2; in exp0() local 145 int p2; in exp1() local 169 int p2; in exp2() local 193 int p2; in exp2a() local 217 int p2; in exp2b() local 233 tchar *p2; in exp2c() local 279 tchar *p1, *p2; in exp3() local 355 tchar *p1, *p2; in exp4() local 391 tchar *p1, *p2; in exp5() local 415 i = egetn(p2); in exp5() [all …]
|
/illumos-gate/usr/src/cmd/sh/ |
H A D | test.c | 80 unsigned char *p2; in exp() local 83 p2 = nxtarg(1); in exp() 84 if (p2 != 0) in exp() 103 p2 = nxtarg(1); in e1() 105 if ((p2 != 0) && eq(p2, "-a")) in e1() 136 p2 = nxtarg(1); in e3() 138 if ((p2 == 0) || (!eq(p2, "=") && !eq(p2, "!="))) in e3() 191 p2 = nxtarg(1); in e3() 192 if (p2 == 0) in e3() 194 if (eq(p2, "-a") || eq(p2, "-o")) in e3() [all …]
|
/illumos-gate/usr/src/ucbcmd/test/ |
H A D | test.c | 80 char *p2; in exp() local 83 p2 = nxtarg(1); in exp() 84 if (p2 != 0) { in exp() 98 char *p2; in e1() local 101 p2 = nxtarg(1); in e1() 102 if ((p2 != 0) && EQ(p2, "-a")) in e1() 122 char *p2; in e3() local 131 p2 = nxtarg(1); in e3() 133 if ((p2 == 0) || (!EQ(p2, "=") && !EQ(p2, "!="))) { in e3() 197 if (p2 == 0) in e3() [all …]
|
/illumos-gate/usr/src/lib/libresolv2/common/isc/ |
H A D | tree.c | 257 *ppr = p2; in sprout() 314 *ppr = p2; in sprout() 413 tree *p1, *p2; in bal_L() local 450 p2 = p1->left; in bal_L() 451 b2 = p2->bal; in bal_L() 464 *ppr_p = p2; in bal_L() 465 p2->bal = 0; in bal_L() 473 tree *p1, *p2; in bal_R() local 510 b2 = p2->bal; in bal_R() 523 *ppr_p = p2; in bal_R() [all …]
|
/illumos-gate/usr/src/lib/libc/port/i18n/ |
H A D | wsprintf.c | 51 char *p2; in wsprintf() local 66 p2 = malloc(len); in wsprintf() 67 if (p2 == NULL) in wsprintf() 71 p2 = tempstring; in wsprintf() 72 (void) strcpy(p2, p1); in wsprintf() 74 if (mbstowcs(wstring, p2, len) == (size_t)-1) { in wsprintf() 76 if ((retcode = mbtowc(wstring, p2, MB_CUR_MAX)) == -1) { in wsprintf() 77 *wstring = (wchar_t)*p2 & 0xff; in wsprintf() 78 p2++; in wsprintf() 80 p2 += retcode; in wsprintf() [all …]
|
/illumos-gate/usr/src/test/libc-tests/tests/qsort/ |
H A D | merge.c | 125 for (tp2 = p2 = list2; p2 != last; p1 = EVAL(l2)) { in mergesort() 126 p2 = *EVAL(p2); in mergesort() 129 if (p2 != last) in mergesort() 130 p2 = *EVAL(p2); in mergesort() 131 l2 = list1 + (p2 - list2); in mergesort() 273 p2 = list2; in setup() 286 p2 = *EVAL(p2) = f1 + size2 - list1 + list2; in setup() 294 p2 = *EVAL(p2) = f2 - list1 + list2; in setup() 304 p2 = *EVAL(p2) = f2 - list1 + list2; in setup() 306 p2 = *EVAL(p2) = list2 + n*size; in setup() [all …]
|
/illumos-gate/usr/src/cmd/fm/modules/common/eversholt/ |
H A D | evnv.c | 65 nvpair_t *p2 = NULL; in evnv_cmpnvl() local 73 p2 = nvlist_next_nvpair(nvl2, p2); in evnv_cmpnvl() 74 if (p1 == NULL && p2 == NULL) { in evnv_cmpnvl() 81 if (p2 == NULL) in evnv_cmpnvl() 84 s2 = nvpair_name(p2); in evnv_cmpnvl() 90 t2 = nvpair_type(p2); in evnv_cmpnvl() 101 (void) nvpair_value_nvlist(p2, &l2); in evnv_cmpnvl() 123 (void) nvpair_value_string(p2, &s2); in evnv_cmpnvl() 138 (void) nvpair_value_uint64(p2, &lv2); in evnv_cmpnvl() 149 (void) nvpair_value_int64(p2, (int64_t *)&lv2); in evnv_cmpnvl() [all …]
|
/illumos-gate/usr/src/cmd/fs.d/nfs/lib/ |
H A D | nfs_subr.c | 130 char *p1, *p2; in convert_special() local 169 p2 = host; in convert_special() 188 if (*p2 == '\0') { in convert_special() 192 *p1 = *p2; in convert_special() 194 p2++; in convert_special() 206 p2 = newpath; in convert_special() 214 if (*p2 == '\0') { in convert_special() 217 *p1 = *p2; in convert_special() 219 p2++; in convert_special() 237 *p1 = *p2; in convert_special() [all …]
|
/illumos-gate/usr/src/cmd/acct/ |
H A D | acctcms.c | 538 p1->tcm_pc += p2->tcm_pc; in tcmadd() 542 p1->tcm_io += p2->tcm_io; in tcmadd() 543 p1->tcm_rw += p2->tcm_rw; in tcmadd() 610 if (p1->tcm_cpu == p2->tcm_cpu) in tccmp() 616 ccmp(struct pcms *p1, struct pcms *p2) in ccmp() argument 621 if (p1->pcm_cpu[PRIME] + p1->pcm_cpu[NONPRIME] == p2->pcm_cpu[PRIME] + p2->pcm_cpu[NONPRIME]) in ccmp() 634 if (p1->tcm_kcore == p2->tcm_kcore) in tkcmp() 645 …if (p1->pcm_kcore[PRIME] + p1->pcm_kcore[NONPRIME] == p2->pcm_kcore[PRIME] + p2->pcm_kcore[NONPRIM… in kcmp() 658 if (p1->tcm_pc == p2->tcm_pc) in tncmp() 669 if (p1->pcm_pc[PRIME] + p1->pcm_pc[NONPRIME] == p2->pcm_pc[PRIME] + p2->pcm_pc[NONPRIME]) in ncmp() [all …]
|
/illumos-gate/usr/src/lib/libslp/clib/ |
H A D | slp_utf8.c | 123 char *p1, *p2; in slp_strcasecmp() local 127 p1 = p2 = NULL; wcs1 = wcs2 = NULL; in slp_strcasecmp() 135 p2 = slp_fold_space(s2); in slp_strcasecmp() 136 if (!p1 || !p2) in slp_strcasecmp() 139 if ((diff = strcasecmp(p1, p2)) == 0) in slp_strcasecmp() 154 if ((wcslen2 = mbstowcs(NULL, p2, 0)) == (size_t)-1) in slp_strcasecmp() 163 if (mbstowcs(wcs2, p2, wcslen2 + 1) == (size_t)-1) in slp_strcasecmp() 170 if (p2) free(p2); in slp_strcasecmp()
|
/illumos-gate/usr/src/cmd/sendmail/db/btree/ |
H A D | bt_compare.c | 150 u_int8_t *p1, *p2; local 165 for (p1 = a->data, p2 = b->data; len--; ++p1, ++p2) 166 if (*p1 != *p2) 167 return ((long)*p1 - (long)*p2); 182 u_int8_t *p1, *p2; local 186 for (p1 = a->data, p2 = b->data; len--; ++p1, ++p2, ++cnt) 187 if (*p1 != *p2)
|
/illumos-gate/usr/src/lib/libgen/common/ |
H A D | reg_step.c | 168 if (*p2++) { in step() 174 if (*p2 == CCHR) { in step() 176 c = p2[1]; in step() 531 char *p1, *p2; in _advance() local 534 p2 = lp - eucw3; in _advance() 544 lp = p2; in _advance() 558 char *p1, *p2; in _advance() local 560 p2 = curlp; in _advance() 562 p1 = p2; in _advance() 564 p2 = p1 + 1; in _advance() [all …]
|
/illumos-gate/usr/src/lib/pam_modules/dial_auth/ |
H A D | dial_auth.c | 59 char *p1 = NULL, *p2 = NULL; in pam_sm_authenticate() local 132 p2 = p1; in pam_sm_authenticate() 140 SCPYN(defpass, p2); in pam_sm_authenticate() 141 p2 = NULL; in pam_sm_authenticate() 147 if (p2 == NULL) in pam_sm_authenticate() 148 p2 = defpass; in pam_sm_authenticate() 150 if (*p2 != '\0') { in pam_sm_authenticate() 158 if (strcmp(crypt(password, p2), p2) != 0) { in pam_sm_authenticate()
|
/illumos-gate/usr/src/cmd/expand/ |
H A D | expand.c | 73 char *p1, *p2; local 135 p1 = p2 = ibuf; 137 if (p1 >= p2) { 141 p2 = p1 + len; 197 if ((len = (p2 - p1)) < 202 p2 = p1 + n; 203 if ((len = fread(p2, 1, BUFSIZ - n, 205 p2 += len; 207 if ((len = (p2 - p1)) >
|
/illumos-gate/usr/src/lib/iconv_modules/common/ |
H A D | ucs2.h | 37 #define room_for_ucs2_cnv(p1,p2) (((p1)+sizeof(ucs2_t))<=(p2)) argument 38 #define no_room_for_ucs2_cnv(p1,p2) (((p1)+sizeof(ucs2_t))>(p2)) argument 39 #define incomplete_ucs2_seq(p1,p2) (((p1)+sizeof(ucs2_t))>(p2)) argument
|
/illumos-gate/usr/src/tools/cscope-fast/ |
H A D | mouse.c | 156 int p1, p2; in drawscrollbar() local 161 p2 = 16 + (bot - 1) * 100 / total; in drawscrollbar() 162 if (p2 > 116) { in drawscrollbar() 163 p2 = 116; in drawscrollbar() 175 if (p2 == ctrl('Q') || p2 == ctrl('S')) { in drawscrollbar() 176 ++p2; in drawscrollbar() 179 p1 = p2 = 16; in drawscrollbar() 181 (void) printf("\033W%c%c", p1, p2); in drawscrollbar()
|