Home
last modified time | relevance | path

Searched refs:p2 (Results 1 – 25 of 295) sorted by relevance

12345678910>>...12

/titanic_50/usr/src/cmd/eqn/
H A Dsqrt.c20 sqrt(int p2) in sqrt() argument
25 nps = EFFPS(((eht[p2]*9)/10+(resolution/POINT-1))/(resolution/POINT)); in sqrt()
27 yyval = p2; in sqrt()
32 yyval, p2, ebase[yyval], eht[yyval]); in sqrt()
36 nrwid(p2, ps, p2); in sqrt()
39 "(rn'\\v'.2m'\\s%d", yyval, ebase[p2], nps, p2, ps); in sqrt()
40 printf("\\v'%du'\\h'-\\n(%du'\\*(%d\n", -ebase[p2], p2, p2); in sqrt()
44 p2, ebase[p2], -eht[p2], p2); in sqrt()
45 printf("\\v'%du'\\h'-\\n(%du'\\*(%d\n", eht[p2]-ebase[p2], p2, p2); in sqrt()
46 eht[p2] += VERT(1); in sqrt()
[all …]
H A Dover.c20 boverb(int p1, int p2) in boverb() argument
28 h = eht[p1] + eht[p2] + d; in boverb()
31 h = eht[p1] + eht[p2]; in boverb()
33 b = eht[p2] - d; in boverb()
36 yyval, p1, p2, b, h); in boverb()
38 nrwid(p2, ps, p2); in boverb()
40 printf(".if \\n(%d>\\n(%d .nr %d \\n(%d\n", p2, treg, treg, p2); in boverb()
45 yyval, eht[p2]-ebase[p2]-d, treg, p2, p2); in boverb()
48 p2, p1, -(eht[p2]-ebase[p2]+d+ebase[p1]), p1); in boverb()
53 p2, p1, -eht[p2]+ebase[p2]-ebase[p1], p1); in boverb()
[all …]
H A Dfromto.c20 fromto(int p1, int p2, int p3) in fromto() argument
32 if (p2 > 0) { in fromto()
33 nrwid(p2, pss, p2); in fromto()
35 p2, yyval, yyval, p2); in fromto()
36 eht[yyval] += eht[p2]; in fromto()
37 b = eht[p2]; in fromto()
46 if (p2 > 0) { in fromto()
48 eht[p2]-ebase[p2]+b1, yyval, p2, pss, p2, EFFPS(ps)); in fromto()
50 yyval, p2, -(eht[p2]-ebase[p2]+b1)); in fromto()
69 yyval, p1, p2, p3, eht[yyval], ebase[yyval]); in fromto()
[all …]
H A Dshift.c21 bshiftb(int p1, int dir, int p2) in bshiftb() argument
32 h2 = eht[p2]; in bshiftb()
33 b2 = ebase[p2]; in bshiftb()
53 if (rfont[p1] == ITAL && lfont[p2] == ROM) in bshiftb()
55 if (rfont[p2] == ITAL) in bshiftb()
78 if (rfont[p2] == ITAL) in bshiftb()
86 "b=%d, h=%d\n", yyval, p1, shval, p2, -shval, in bshiftb()
90 yyval, shval, diffps, sh1, p2, diffps, sh2, -shval); in bshiftb()
92 if (rfont[p2] == ITAL) in bshiftb()
95 rfont[p1] = rfont[p2]; in bshiftb()
[all …]
H A Deqnbox.c20 eqnbox(int p1, int p2, int lu) in eqnbox() argument
26 b = max(ebase[p1], ebase[p2]); in eqnbox()
27 eht[yyval] = h = b + max(eht[p1]-ebase[p1], eht[p2]-ebase[p2]); in eqnbox()
31 yyval, p1, p2, b, h); in eqnbox()
32 if (rfont[p1] == ITAL && lfont[p2] == ROM) in eqnbox()
40 printf(".as %d \"%s\\*(%d\n", yyval, sh, p2); in eqnbox()
41 rfont[p1] = rfont[p2]; in eqnbox()
42 ofree(p2); in eqnbox()
H A Dintegral.c21 integral(int p, int p1, int p2) in integral() argument
26 if (p2 != 0) in integral()
27 printf(".ds %d \\v'-0.3m'\\*(%d\\v'0.3m'\n", p2, p2); in integral()
29 if (p1 != 0 && p2 != 0) in integral()
30 shift2(p, p1, p2); in integral()
33 else if (p2 != 0) in integral()
34 bshiftb(p, SUP, p2); in integral()
H A Dpile.c20 lpile(int type, int p1, int p2) in lpile() argument
30 nlist = p2 - p1; in lpile()
34 for (i = p1; i < p2; i++) in lpile()
38 for (i = p2-1; i > mid; i--) in lpile()
49 for (i = p1; i < p2; i++) in lpile()
55 for (i = p1+1; i < p2; i++) { in lpile()
62 for (i = p2-1; i >= p1; i--) { in lpile()
86 for (i = p1; i < p2; i++) in lpile()
/titanic_50/usr/src/ucbcmd/sed/
H A Dsed1.c107 char *p1, *p2; in execute() local
142 p2 = ipc->r1.ad2; in execute()
147 if(*p2 == CEND) { in execute()
149 } else if(*p2 == CLNUM) { in execute()
150 c = (unsigned char)p2[1]; in execute()
161 } else if(match(p2, 0)) { in execute()
180 if(p2) in execute()
183 if(p2) in execute()
331 char *p1, *p2, *p3; in command() local
359 p1 = p2 = linebuf; in command()
[all …]
/titanic_50/usr/src/cmd/csh/
H A Dsh.parse.c64 asyntax(struct wordent *p1, struct wordent *p2) in asyntax() argument
70 while (p1 != p2) in asyntax()
77 asyn0(p1, p2); in asyntax()
83 asyn0(struct wordent *p1, struct wordent *p2) in asyn0() argument
91 for (p = p1; p != p2; p = p->next) in asyn0()
105 if (p->next != p2 && eq(p->next->word, S_AND /* "&"*/)) in asyn0()
116 asyntax(p->next, p2); in asyn0()
120 asyn3(p1, p2); in asyn0()
124 asyn3(struct wordent *p1, struct wordent *p2) in asyn3() argument
133 if (p1 == p2) in asyn3()
[all …]
H A Dsh.exp.c121 int p2; in exp0() local
124 p2 = exp0(vp, (ignore&IGNORE) || p1); in exp0()
126 etraci("exp0 p2", p2, vp); in exp0()
128 return (p1 || p2); in exp0()
145 int p2; in exp1() local
148 p2 = exp1(vp, (ignore&IGNORE) || !p1); in exp1()
150 etraci("exp1 p2", p2, vp); in exp1()
152 return (p1 && p2); in exp1()
169 int p2; in exp2() local
172 p2 = exp2(vp, ignore); in exp2()
[all …]
/titanic_50/usr/src/cmd/sh/
H A Dtest.c82 unsigned char *p2; in exp() local
85 p2 = nxtarg(1); in exp()
86 if (p2 != 0) in exp()
88 if (eq(p2, "-o")) in exp()
102 unsigned char *p2; in e1() local
105 p2 = nxtarg(1); in e1()
107 if ((p2 != 0) && eq(p2, "-a")) in e1()
127 unsigned char *p2; in e3() local
138 p2 = nxtarg(1); in e3()
140 if ((p2 == 0) || (!eq(p2, "=") && !eq(p2, "!="))) in e3()
[all …]
/titanic_50/usr/src/ucbcmd/test/
H A Dtest.c82 char *p2; in exp() local
85 p2 = nxtarg(1); in exp()
86 if (p2 != 0) { in exp()
87 if (EQ(p2, "-o")) in exp()
89 if (EQ(p2, "]")) in exp()
100 char *p2; in e1() local
103 p2 = nxtarg(1); in e1()
104 if ((p2 != 0) && EQ(p2, "-a")) in e1()
124 char *p2; in e3() local
133 p2 = nxtarg(1); in e3()
[all …]
/titanic_50/usr/src/lib/libc/port/i18n/
H A Dwsprintf.c53 char *p2; in wsprintf() local
68 p2 = malloc(len); in wsprintf()
69 if (p2 == NULL) in wsprintf()
73 p2 = tempstring; in wsprintf()
74 (void) strcpy(p2, p1); in wsprintf()
76 if (mbstowcs(wstring, p2, len) == (size_t)-1) { in wsprintf()
78 if ((retcode = mbtowc(wstring, p2, MB_CUR_MAX)) == -1) { in wsprintf()
79 *wstring = (wchar_t)*p2 & 0xff; in wsprintf()
80 p2++; in wsprintf()
82 p2 += retcode; in wsprintf()
[all …]
/titanic_50/usr/src/lib/libresolv2/common/isc/
H A Dtree.c187 tree *p1, *p2, *sub; in sprout() local
245 p2 = p1->right; in sprout()
246 p1->right = p2->left; in sprout()
247 p2->left = p1; in sprout()
249 (*ppr)->left = p2->right; in sprout()
250 p2->right = *ppr; in sprout()
252 if (p2->bal == -1) in sprout()
257 if (p2->bal == 1) in sprout()
261 *ppr = p2; in sprout()
301 p2 = p1->left; in sprout()
[all …]
/titanic_50/usr/src/cmd/fm/modules/common/eversholt/
H A Devnv.c67 nvpair_t *p2 = NULL; in evnv_cmpnvl() local
75 p2 = nvlist_next_nvpair(nvl2, p2); in evnv_cmpnvl()
76 if (p1 == NULL && p2 == NULL) { in evnv_cmpnvl()
83 if (p2 == NULL) in evnv_cmpnvl()
86 s2 = nvpair_name(p2); in evnv_cmpnvl()
92 t2 = nvpair_type(p2); in evnv_cmpnvl()
103 (void) nvpair_value_nvlist(p2, &l2); in evnv_cmpnvl()
109 (void) nvpair_value_nvlist_array(p2, &la2, &na2); in evnv_cmpnvl()
125 (void) nvpair_value_string(p2, &s2); in evnv_cmpnvl()
140 (void) nvpair_value_uint64(p2, &lv2); in evnv_cmpnvl()
[all …]
/titanic_50/usr/src/cmd/fs.d/nfs/lib/
H A Dnfs_subr.c130 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()
226 p2 = p + strlen(url); in convert_special()
[all …]
/titanic_50/usr/src/cmd/acct/
H A Dacctcms.c539 tcmadd(struct tcms *p1, struct tcms *p2) in tcmadd() argument
541 p1->tcm_pc += p2->tcm_pc; in tcmadd()
542 p1->tcm_cpu = p1->tcm_cpu + p2->tcm_cpu; in tcmadd()
543 p1->tcm_real = p1->tcm_real + p2->tcm_real; in tcmadd()
544 p1->tcm_kcore = p1->tcm_kcore + p2->tcm_kcore; in tcmadd()
545 p1->tcm_io += p2->tcm_io; in tcmadd()
546 p1->tcm_rw += p2->tcm_rw; in tcmadd()
550 pcmadd(struct pcms *p1, struct pcms *p2) in pcmadd() argument
552 p1->pcm_pc[PRIME] += p2->pcm_pc[PRIME]; in pcmadd()
553 p1->pcm_pc[NONPRIME] += p2->pcm_pc[NONPRIME]; in pcmadd()
[all …]
/titanic_50/usr/src/lib/libslp/clib/
H A Dslp_utf8.c125 char *p1, *p2; in slp_strcasecmp() local
129 p1 = p2 = NULL; wcs1 = wcs2 = NULL; in slp_strcasecmp()
137 p2 = slp_fold_space(s2); in slp_strcasecmp()
138 if (!p1 || !p2) in slp_strcasecmp()
141 if ((diff = strcasecmp(p1, p2)) == 0) in slp_strcasecmp()
156 if ((wcslen2 = mbstowcs(NULL, p2, 0)) == (size_t)-1) in slp_strcasecmp()
165 if (mbstowcs(wcs2, p2, wcslen2 + 1) == (size_t)-1) in slp_strcasecmp()
172 if (p2) free(p2); in slp_strcasecmp()
/titanic_50/usr/src/cmd/sendmail/db/btree/
H A Dbt_compare.c150 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)
/titanic_50/usr/src/lib/pam_modules/dial_auth/
H A Ddial_auth.c61 char *p1 = NULL, *p2 = NULL; in pam_sm_authenticate() local
134 p2 = p1; in pam_sm_authenticate()
142 SCPYN(defpass, p2); in pam_sm_authenticate()
143 p2 = NULL; in pam_sm_authenticate()
149 if (p2 == NULL) in pam_sm_authenticate()
150 p2 = defpass; in pam_sm_authenticate()
152 if (*p2 != '\0') { in pam_sm_authenticate()
160 if (strcmp(crypt(password, p2), p2) != 0) { in pam_sm_authenticate()
/titanic_50/usr/src/lib/libgen/common/
H A Dreg_step.c160 step(char *p1, char *p2) in step() argument
170 if (*p2++) { in step()
172 ret = _advance(p1, p2); in step()
176 if (*p2 == CCHR) { in step()
178 c = p2[1]; in step()
182 if (_advance(p1, p2)) { in step()
190 if (_advance(p1, p2)) { in step()
205 if (_advance(p1, p2)) { in step()
533 char *p1, *p2; in _advance() local
536 p2 = lp - eucw3; in _advance()
[all …]
/titanic_50/usr/src/cmd/expand/
H A Dexpand.c75 char *p1, *p2; local
137 p1 = p2 = ibuf;
139 if (p1 >= p2) {
143 p2 = p1 + len;
199 if ((len = (p2 - p1)) <
204 p2 = p1 + n;
205 if ((len = fread(p2, 1, BUFSIZ - n,
207 p2 += len;
209 if ((len = (p2 - p1)) >
/titanic_50/usr/src/lib/iconv_modules/common/
H A Ducs2.h37 #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
H A Ducs4.h38 #define room_for_ucs4_cnv(p1,p2) (((p1)+sizeof(ucs4_t))<=(p2)) argument
39 #define no_room_for_ucs4_cnv(p1,p2) (((p1)+sizeof(ucs4_t))>(p2)) argument
40 #define incomplete_ucs4_seq(p1,p2) (((p1)+sizeof(ucs4_t))>(p2)) argument
/titanic_50/usr/src/ucbcmd/basename/
H A Dbasename.c24 char *p1, *p2, *p3; in main() local
31 p2 = p1; in main()
34 p2 = p1; in main()
42 if (p1 <= p2 || *--p3 != *--p1) in main()
48 (void) fputs(p2, stdout); in main()

12345678910>>...12