/illumos-gate/usr/src/ucbcmd/sed/ |
H A D | sed1.c | 105 char *p1, *p2; in execute() local 139 p1 = ipc->r1.ad1; in execute() 142 if(p1) { in execute() 146 p1 = 0; in execute() 162 } else if(*p1 == CEND) { in execute() 170 } else if(*p1 == CLNUM) { in execute() 171 c = (unsigned char)p1[1]; in execute() 180 } else if(match(p1, 0)) { in execute() 212 for(p1 = linebuf; p1 < spend; p1++) in execute() 213 (void) putc(*p1, stdout); in execute() [all …]
|
/illumos-gate/usr/src/cmd/eqn/ |
H A D | diacrit.c | 19 diacrit(int p1, int type) in diacrit() argument 29 nrwid(p1, ps, p1); in diacrit() 30 printf(".nr 10 %du\n", max(eht[p1]-ebase[p1]-VERT(2), 0)); in diacrit() 33 nrwid(p1, effps, p1); in diacrit() 36 printf(".nr 10 %du\n", VERT(max(eht[p1]-ebase[p1]-EM(1, ps), 0))); in diacrit() 88 c, effps, p1); in diacrit() 91 c, p1); in diacrit() 96 printf(".ds %d \\l'\\n(%du\\(ul'\n", c, p1); in diacrit() 98 printf(".nr 10 0-%d\n", ebase[p1]); in diacrit() 100 printf(".ds %d \\l'\\n(%du'\n", c, p1); in diacrit() [all …]
|
H A D | over.c | 18 boverb(int p1, int p2) in boverb() argument 23 yyval = p1; in boverb() 26 h = eht[p1] + eht[p2] + d; in boverb() 29 h = eht[p1] + eht[p2]; in boverb() 34 yyval, p1, p2, b, h); in boverb() 35 nrwid(p1, ps, p1); in boverb() 37 printf(".nr %d \\n(%d\n", treg, p1); in boverb() 46 p2, p1, -(eht[p2]-ebase[p2]+d+ebase[p1]), p1); in boverb() 48 "(%du-.2m'\\h'.1m'\\v'%du'\n", treg, p1, ebase[p1]+d, treg, d); in boverb() 51 p2, p1, -eht[p2]+ebase[p2]-ebase[p1], p1); in boverb() [all …]
|
H A D | eqnbox.c | 18 eqnbox(int p1, int p2, int lu) in eqnbox() argument 23 yyval = p1; in eqnbox() 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() 35 printf(".nr %d \\w'\\s%d\\*(%d%s'\n", p1, ps, p1, sh); in eqnbox() 36 printf(".ds %d \\h'|\\n(97u-\\n(%du'\\*(%d\n", p1, p1, p1); in eqnbox() 39 rfont[p1] = rfont[p2]; in eqnbox()
|
H A D | fromto.c | 18 fromto(int p1, int p2, int p3) in fromto() argument 23 h1 = eht[yyval] = eht[p1]; in fromto() 24 b1 = ebase[p1]; in fromto() 28 nrwid(p1, ps, p1); in fromto() 29 printf(".nr %d \\n(%d\n", yyval, p1); in fromto() 52 yyval, p1, p1, yyval, p1); in fromto() 55 yyval, p1, p1, yyval, p1); in fromto() 67 yyval, p1, p2, p3, eht[yyval], ebase[yyval]); in fromto() 68 ofree(p1); in fromto()
|
H A D | shift.c | 19 bshiftb(int p1, int dir, int p2) in bshiftb() argument 27 yyval = p1; in bshiftb() 28 h1 = eht[p1]; in bshiftb() 29 b1 = ebase[p1]; in bshiftb() 51 if (rfont[p1] == ITAL && lfont[p2] == ROM) in bshiftb() 74 if (rfont[p1] == ITAL) in bshiftb() 84 "b=%d, h=%d\n", yyval, p1, shval, p2, -shval, in bshiftb() 91 rfont[p1] = 0; in bshiftb() 93 rfont[p1] = rfont[p2]; in bshiftb() 102 shift(int p1) in shift() argument [all …]
|
H A D | matrix.c | 18 column(int type, int p1) in column() argument 22 lp[p1] = ct - p1 - 1; in column() 25 for (i = p1 + 1; i < ct; i++) in column() 27 printf(", rows=%d\n", lp[p1]); in column() 33 matrix(int p1) in matrix() argument 39 nrow = lp[p1]; /* disaster if rows inconsistent */ in matrix() 41 for (i = p1; i < ct; i += lp[i] + 2) { in matrix() 47 j = p1 + k; in matrix() 54 j = p1 + k; in matrix() 61 j = p1; in matrix() [all …]
|
H A D | mark.c | 18 mark(int p1) in mark() argument 21 printf(".ds %d \\k(97\\*(%d\n", p1, p1); in mark() 22 yyval = p1; in mark() 23 if (dbg) printf(".\tmark %d\n", p1); in mark() 27 lineup(int p1) in lineup() argument 30 if (p1 == 0) { in lineup() 34 if (dbg) printf(".\tlineup %d\n", p1); in lineup()
|
H A D | io.c | 139 putout(int p1) in putout() argument 144 printf(".\tanswer <- S%d, h=%d,b=%d\n", p1, eht[p1], ebase[p1]); in putout() 145 eqnht = eht[p1]; in putout() 146 printf(".ds %d \\x'0'", p1); in putout() 149 before = eht[p1] - ebase[p1] - VERT(EM(1.2, ps)); in putout() 151 before = eht[p1] - ebase[p1] - VERT(3); /* 3 = 1.5 lines */ in putout() 158 gfont, gsize, p1, rfont[p1] == ITAL ? "\\|" : ""); in putout() 160 after = ebase[p1] - VERT(EM(0.2, ps)); in putout() 162 after = ebase[p1] - VERT(1); in putout() 167 eqnreg = p1; in putout()
|
H A D | text.c | 32 text(int t, char *p1) in text() argument 48 p = p1; in text() 55 else if ((tp = lookup(restbl, p1, NULL)) != NULL) in text() 59 for (csp = psp = 0; (c = p1[psp++]) != '\0'; ) { in text() 60 rf = trans(c, p1); in text() 65 "converted token %.25s... too long"), p1); in text() 80 trans(int c, char *p1) in trans() argument 117 if (p1[psp] == '=') { /* look ahead for == <= >= */ in trans() 127 if (p1[psp] == '>') { in trans() 145 cs[csp++] = c; cs[csp++] = c = p1[psp++]; cs[csp++] = p1[psp++]; in trans() [all …]
|
/illumos-gate/usr/src/uts/common/io/ib/clients/rdsv3/ |
H A D | rdsv3_sc.c | 117 rds_path_record_t *p1; in rdsv3_path_up() local 135 p1 = (rds_path_record_t *)kmem_alloc( in rdsv3_path_up() 141 p->downp = p1; in rdsv3_path_up() 144 p1->libd_ip = path->local.ipaddr; in rdsv3_path_up() 145 p1->ribd_ip = path->remote.ipaddr; in rdsv3_path_up() 146 p1->up = NULL; in rdsv3_path_up() 147 p1->downp = NULL; in rdsv3_path_up() 148 (void) strcpy(p1->lifname, path->local.ifname); in rdsv3_path_up() 149 (void) strcpy(p1->rifname, path->remote.ifname); in rdsv3_path_up() 161 p1 = (rds_path_record_t *)kmem_alloc( in rdsv3_path_up() [all …]
|
/illumos-gate/usr/src/uts/common/io/ib/clients/rds/ |
H A D | rdsib_sc.c | 119 rds_path_record_t *p1; in rds_path_up() local 137 p1 = (rds_path_record_t *)kmem_alloc( in rds_path_up() 143 p->downp = p1; in rds_path_up() 146 p1->libd_ip = path->local.ipaddr; in rds_path_up() 147 p1->ribd_ip = path->remote.ipaddr; in rds_path_up() 148 p1->up = NULL; in rds_path_up() 149 p1->downp = NULL; in rds_path_up() 150 (void) strcpy(p1->lifname, path->local.ifname); in rds_path_up() 151 (void) strcpy(p1->rifname, path->remote.ifname); in rds_path_up() 163 p1 = (rds_path_record_t *)kmem_alloc( in rds_path_up() [all …]
|
/illumos-gate/usr/src/cmd/csh/ |
H A D | sh.parse.c | 62 asyntax(struct wordent *p1, struct wordent *p2) in asyntax() argument 68 while (p1 != p2) in asyntax() 70 if (p1->word[0] == ';' || in asyntax() 71 p1->word[0] == '&' || in asyntax() 72 p1->word[0] == '\n') in asyntax() 73 p1 = p1->next; in asyntax() 75 asyn0(p1, p2); in asyntax() 81 asyn0(struct wordent *p1, struct wordent *p2) in asyn0() argument 89 for (p = p1; p != p2; p = p->next) in asyn0() 113 asyn3(p1, p); in asyn0() [all …]
|
H A D | sh.exp.c | 112 int p1 = exp1(vp, ignore); in exp0() local 118 etraci("exp0 p1", p1, vp); in exp0() 124 p2 = exp0(vp, (ignore&IGNORE) || p1); in exp0() 128 return (p1 || p2); in exp0() 130 return (p1); in exp0() 136 int p1 = exp2(vp, ignore); in exp1() local 142 etraci("exp1 p1", p1, vp); in exp1() 148 p2 = exp1(vp, (ignore&IGNORE) || !p1); in exp1() 152 return (p1 && p2); in exp1() 154 return (p1); in exp1() [all …]
|
/illumos-gate/usr/src/lib/libsqlite/test/ |
H A D | pager.test | 30 set ::p1 [pager_open ptf1.db 10] 34 pager_stats $::p1 37 pager_pagecount $::p1 40 pager_stats $::p1 43 pager_close $::p1 50 set ::p1 [pager_open ptf1.db 10] 55 # set ::g1 [page_get $::p1 0] 60 set ::gx [page_lookup $::p1 1] 63 pager_stats $::p1 67 set ::g1 [page_get $::p1 1] [all …]
|
/illumos-gate/usr/src/lib/libresolv2/common/isc/ |
H A D | tree.c | 183 tree *p1, *p2, *sub; in sprout() local 231 p1 = (*ppr)->left; in sprout() 232 if (p1->bal == -1) { /*%< LL */ in sprout() 234 (*ppr)->left = p1->right; in sprout() 235 p1->right = *ppr; in sprout() 237 *ppr = p1; in sprout() 241 p2 = p1->right; in sprout() 242 p1->right = p2->left; in sprout() 243 p2->left = p1; in sprout() 254 p1->bal = -1; in sprout() [all …]
|
/illumos-gate/usr/src/lib/pam_modules/dial_auth/ |
H A D | dial_auth.c | 60 char *p1 = NULL, *p2 = NULL; in pam_sm_authenticate() local 103 while ((p1 = fgets(line, sizeof (line), fp)) != NULL) { in pam_sm_authenticate() 104 while (*p1 != '\n' && *p1 != ' ' && *p1 != '\t') in pam_sm_authenticate() 105 p1++; in pam_sm_authenticate() 106 *p1 = '\0'; in pam_sm_authenticate() 121 if (p1 == NULL) { in pam_sm_authenticate() 129 while ((p1 = fgets(line, sizeof (line)-1, fp)) != NULL) { in pam_sm_authenticate() 130 while (*p1 && *p1 != ':') in pam_sm_authenticate() 131 p1++; in pam_sm_authenticate() 132 *p1++ = '\0'; in pam_sm_authenticate() [all …]
|
/illumos-gate/usr/src/data/terminfo/extras/ |
H A D | rxvt-unicode.terminfo | 27 csr=\E[%i%p1%d;%p2%dr, 28 cub=\E[%p1%dD, 30 cud=\E[%p1%dB, 32 cuf=\E[%p1%dC, 34 cup=\E[%i%p1%d;%p2%dH, 35 cuu=\E[%p1%dA, 37 dch=\E[%p1%dP, 39 dl=\E[%p1%dM, 46 hpa=\E[%i%p1%dG, 49 ich=\E[%p1%d@, [all …]
|
/illumos-gate/usr/src/uts/common/io/ib/ibtl/ |
H A D | ibtl_hca.c | 755 ibt_hca_portinfo_t *p1; /* dst */ in ibtl_query_one_port() local 789 p1 = kmem_zalloc(len, KM_SLEEP); in ibtl_query_one_port() 790 *port_info_p = p1; in ibtl_query_one_port() 791 bcopy(sp1, p1, sizeof (ibt_hca_portinfo_t)); in ibtl_query_one_port() 794 p2 = (caddr_t)(p1 + 1); /* pkeys follow the struct ibt_hca_portinfo_s */ in ibtl_query_one_port() 796 p1->p_pkey_tbl = (ib_pkey_t *)p2; in ibtl_query_one_port() 800 p1->p_sgid_tbl = (ib_gid_t *)p2; in ibtl_query_one_port() 814 ibt_hca_portinfo_t *p1; /* dst */ in ibtl_query_hca_ports() local 856 p1 = kmem_zalloc(len, KM_SLEEP); in ibtl_query_hca_ports() 857 *port_info_p = p1; in ibtl_query_hca_ports() [all …]
|
/illumos-gate/usr/src/cmd/expand/ |
H A D | expand.c | 73 char *p1, *p2; local 135 p1 = p2 = ibuf; 137 if (p1 >= p2) { 138 p1 = ibuf; 139 if ((len = fread(p1, 1, BUFSIZ, stdin)) <= 0) 141 p2 = p1 + len; 144 c = *p1++; 196 p1--; 197 if ((len = (p2 - p1)) < 200 ibuf[n] = *p1++; [all …]
|
/illumos-gate/usr/src/ucbcmd/basename/ |
H A D | basename.c | 22 char *p1, *p2, *p3; in main() local 28 p1 = argv[1]; in main() 29 p2 = p1; in main() 30 while (*p1) { in main() 31 if (*p1++ == '/') in main() 32 p2 = p1; in main() 40 if (p1 <= p2 || *--p3 != *--p1) in main() 42 *p1 = '\0'; in main()
|
/illumos-gate/usr/src/cmd/fs.d/nfs/lib/ |
H A D | nfs_subr.c | 130 char *p1, *p2; in convert_special() local 168 p1 = p; in convert_special() 181 if (*p1 == '\0') { in convert_special() 192 *p1 = *p2; in convert_special() 193 p1++; in convert_special() 200 *p1 = ':'; in convert_special() 201 p1++; in convert_special() 208 if (*p1 == '\0') { in convert_special() 217 *p1 = *p2; in convert_special() 218 p1++; in convert_special() [all …]
|
/illumos-gate/usr/src/lib/libgen/common/ |
H A D | reg_step.c | 158 step(char *p1, char *p2) in step() argument 167 start = p1; in step() 169 loc1 = p1; in step() 170 ret = _advance(p1, p2); in step() 178 if (*p1 != c) in step() 180 if (_advance(p1, p2)) { in step() 181 loc1 = p1; in step() 185 } while (*p1++); in step() 188 if (_advance(p1, p2)) { in step() 189 loc1 = p1; in step() [all …]
|
/illumos-gate/usr/src/cmd/fm/modules/common/eversholt/ |
H A D | evnv.c | 64 nvpair_t *p1 = NULL; in evnv_cmpnvl() local 72 p1 = nvlist_next_nvpair(nvl1, p1); in evnv_cmpnvl() 74 if (p1 == NULL && p2 == NULL) { in evnv_cmpnvl() 79 if (p1 == NULL) in evnv_cmpnvl() 83 s1 = nvpair_name(p1); in evnv_cmpnvl() 89 t1 = nvpair_type(p1); in evnv_cmpnvl() 100 (void) nvpair_value_nvlist(p1, &l1); in evnv_cmpnvl() 106 (void) nvpair_value_nvlist_array(p1, &la1, &na1); in evnv_cmpnvl() 122 (void) nvpair_value_string(p1, &s1); in evnv_cmpnvl() 137 (void) nvpair_value_uint64(p1, &lv1); in evnv_cmpnvl() [all …]
|
/illumos-gate/usr/src/cmd/acct/ |
H A D | acctcms.c | 536 tcmadd(struct tcms *p1, struct tcms *p2) in tcmadd() argument 538 p1->tcm_pc += p2->tcm_pc; in tcmadd() 539 p1->tcm_cpu = p1->tcm_cpu + p2->tcm_cpu; in tcmadd() 540 p1->tcm_real = p1->tcm_real + p2->tcm_real; in tcmadd() 541 p1->tcm_kcore = p1->tcm_kcore + p2->tcm_kcore; in tcmadd() 542 p1->tcm_io += p2->tcm_io; in tcmadd() 543 p1->tcm_rw += p2->tcm_rw; in tcmadd() 547 pcmadd(struct pcms *p1, struct pcms *p2) in pcmadd() argument 549 p1->pcm_pc[PRIME] += p2->pcm_pc[PRIME]; in pcmadd() 550 p1->pcm_pc[NONPRIME] += p2->pcm_pc[NONPRIME]; in pcmadd() [all …]
|