/titanic_51/usr/src/cmd/adbgen/common/ |
H A D | adbgen4.c | 52 char *cur, *last, *cp1, *cp2, *ep, *t; in main() local 64 cp1 = cur + 2; in main() 65 while (*cp1) { in main() 66 if (*cp1 == '"') { in main() 68 while (*++cp1 && *cp1 != '"') in main() 70 cp1++; in main() 73 if (*cp1 >= '0' && *cp1 <= '9') { in main() 74 cp2 = scanpastnum(cp1); in main() 126 scanpastnum(char * cp1) scanpastnum() argument [all...] |
/titanic_51/usr/src/cmd/cmd-inet/usr.bin/ftp/ |
H A D | domacro.c | 56 register char *cp1, *cp2; in domacro() local 89 cp1 = macros[i].mac_start; in domacro() 90 while (cp1 != macros[i].mac_end) { in domacro() 91 while (isspace(*cp1)) { in domacro() 92 cp1++; in domacro() 95 while (*cp1 != '\0') { in domacro() 96 switch (*cp1) { in domacro() 98 cp1++; in domacro() 99 if ((len = mblen(cp1, MB_CUR_MAX)) <= 0) in domacro() 101 memcpy(cp2, cp1, le in domacro() [all...] |
H A D | cmds.c | 1812 char *cp1, *cp2 = new; in dotrans() local 1817 for (cp1 = name; *cp1; cp1++) { in dotrans() 1820 if (*cp1 == *(ntin + i)) { in dotrans() 1829 *cp2++ = *cp1; in dotrans() 1881 char *cp1 = name, *cp2 = mapin; in domap() local 1890 while (match && *cp1 && *cp2) { in domap() 1891 if ((len1 = mbtowc(&wc1, cp1, MB_CUR_MAX)) <= 0) { in domap() 1892 wc1 = (unsigned char)*cp1; in domap() [all...] |
/titanic_51/usr/src/contrib/ast/src/lib/libcmd/ |
H A D | comm.c | 68 register char *cp1, *cp2; in comm() local 70 if(cp1 = sfgetr(in1,'\n',0)) in comm() 74 while(cp1 && cp2) in comm() 77 if((comp=memcmp(cp1,cp2,n-1))==0 && (comp=n1-n2)==0) in comm() 87 if(sfwrite(out,cp1,n) < 0) in comm() 90 if(cp1 = sfgetr(in1,'\n',0)) in comm() 109 if((mode&C_FILE1) && sfwrite(out,cp1,n1) < 0) in comm() 111 if(cp1 = sfgetr(in1,'\n',0)) in comm() 118 cp1 = cp2; in comm() 127 if(!mode || !cp1) in comm() [all...] |
H A D | join.c | 626 #define outrec(p,n) (sfprintf(sfstdout, "[R#%d,%d,%lld,%lld:%-.*s{%d}:%-.*s{%d}]", __LINE__, i1=n, lo, hi, jp->file[0].fieldlen, cp1, jp->file[0].hit, jp->file[1].fieldlen, cp2, jp->file[1].hit), outrec(p, i1)) 632 register unsigned char* cp1; in join() local 643 if ((cp1 = getrec(jp, 0, 0)) && (cp2 = getrec(jp, 1, 0)) || (cp2 = 0)) in join() 652 if (!n && !(cmp = n1 < n2 ? -1 : (n1 > n2)) || n && !(cmp = (int)*cp1 - (int)*cp2) && !(cmp = jp->ignorecase ? strncasecmp((char*)cp1, (char*)cp2, n) : memcmp(cp1, cp2, n))) in join() 654 sfprintf(sfstdout, "[C#%d:%d(%c-%c),%d,%lld,%lld%s]", __LINE__, cmp, *cp1, *cp2, same, lo, hi, (jp->outmode & C_COMMON) ? ",COMMON" : ""); in join() 657 if (!n && !(cmp = n1 < n2 ? -1 : (n1 > n2)) || n && !(cmp = (int)*cp1 - (int)*cp2) && !(cmp = jp->ignorecase ? strncasecmp((char*)cp1, (char*)cp2, n) : memcmp(cp1, cp in join() [all...] |
/titanic_51/usr/src/lib/libcmd/common/ |
H A D | comm.c | 68 register char *cp1, *cp2; in comm() local 70 if(cp1 = sfgetr(in1,'\n',0)) in comm() 74 while(cp1 && cp2) in comm() 77 if((comp=memcmp(cp1,cp2,n-1))==0 && (comp=n1-n2)==0) in comm() 87 if(sfwrite(out,cp1,n) < 0) in comm() 90 if(cp1 = sfgetr(in1,'\n',0)) in comm() 109 if((mode&C_FILE1) && sfwrite(out,cp1,n1) < 0) in comm() 111 if(cp1 = sfgetr(in1,'\n',0)) in comm() 118 cp1 = cp2; in comm() 127 if(!mode || !cp1) in comm() [all …]
|
H A D | join.c | 636 …,%lld:%-.*s{%d}:%-.*s{%d}]", __LINE__, i1=n, lo, hi, jp->file[0].fieldlen, cp1, jp->file[0].hit, j… 642 register unsigned char* cp1; in join() local 653 if ((cp1 = getrec(jp, 0, 0)) && (cp2 = getrec(jp, 1, 0)) || (cp2 = 0)) in join() 662 … n2)) || n && !(cmp = (int)*cp1 - (int)*cp2) && !(cmp = jp->ignorecase ? strncasecmp((char*)cp1, (… in join() 664 sfprintf(sfstdout, "[C#%d:%d(%c-%c),%d,%lld,%lld%s]", __LINE__, cmp, *cp1, *cp2, same, lo, hi, (jp-… in join() 667 … n2)) || n && !(cmp = (int)*cp1 - (int)*cp2) && !(cmp = jp->ignorecase ? strncasecmp((char*)cp1, (… in join() 672 if (cp1 = getrec(jp, 0, 1)) in join() 680 …if (sfseek(jp->file[0].iop, (Sfoff_t)-jp->file[0].reclen, SEEK_CUR) < 0 || !(cp1 = getrec(jp, 0, 0… in join() 753 if (!(cp1 = getrec(jp, 0, 0))) in join() 777 if (!(cp1 = getrec(jp, 0, 1))) in join() [all …]
|
/titanic_51/usr/src/lib/krb5/ss/ |
H A D | error.c | 39 register char const *cp1; local 45 cp1 = infop->subsystem_name; 46 while (*cp1) 47 *cp++ = *cp1++; 50 cp1 = infop->current_request; 51 while (*cp1) 52 *cp++ = *cp1++;
|
/titanic_51/usr/src/cmd/svc/startd/ |
H A D | env.c | 64 char *tokp, *cp1, *cp2; in init_env() local 105 for (cp1 = line; *cp1 != '\0'; cp1++) { in init_env() 106 if (*cp1 == '"') { in init_env() 111 } else if (*cp1 == ';') { in init_env() 113 *cp1 = ' '; in init_env() 127 cp1 = strchr(tokp, '='); in init_env() 128 if (cp1 == NULL || cp1 in init_env() [all...] |
/titanic_51/usr/src/lib/libresolv2/common/resolv/ |
H A D | res_query.c | 404 char *file, *cp1, *cp2; in res_hostalias() local 416 for (cp1 = buf; *cp1 && !isspace((unsigned char)*cp1); ++cp1) in res_hostalias() 418 if (!*cp1) in res_hostalias() 420 *cp1 = '\0'; in res_hostalias() 422 while (isspace((unsigned char)*++cp1)) in res_hostalias() 424 if (!*cp1) in res_hostalias() 426 for (cp2 = cp1 in res_hostalias() [all...] |
/titanic_51/usr/src/cmd/units/ |
H A D | units.c | 248 char *cp1, *cp2; in lookup() local 273 for(i=0; cp1 = prefix[i].pname; i++) { in lookup() 275 while(*cp1 == *cp2++) in lookup() 276 if(*cp1++ == 0) { in lookup() 277 cp1--; in lookup() 280 if(*cp1 == 0) { in lookup() 286 for(cp1 = name; *cp1; cp1++); in lookup() 287 if(cp1 > nam in lookup() [all...] |
/titanic_51/usr/src/ucblib/libucb/port/gen/ |
H A D | scandir.c | 78 char *cp1, *cp2; in scandir64() local 111 for (cp1 = p->d_name, cp2 = d->d_name; *cp1++ = *cp2++; ) in scandir64() 145 char *cp1, *cp2; in scandir() local 181 for (cp1 = p->d_name, cp2 = d->d_name; *cp1++ = *cp2++; ) in scandir()
|
/titanic_51/usr/src/cmd/cmd-inet/usr.bin/rdist/ |
H A D | gram.y | 195 register char *cp1, *cp2; in yylex() local 234 cp1 = yytext; in yylex() 237 if (cp1 >= cp2) { in yylex() 246 *cp1++ = '\\'; in yylex() 254 *cp1++ = c; in yylex() 258 *cp1 = '\0'; in yylex() 268 cp1 = yytext; in yylex() 271 if (cp1 >= cp2) { in yylex() 280 *cp1++ = '\\'; in yylex() 284 *cp1 in yylex() [all...] |
H A D | expand.c | 129 register char *cp, *cp1; local 185 cp1 = homedir; 187 tilde = cp1 = buf; 188 *cp1++ = '~'; 190 if (cp1 >= &buf[sizeof (buf)]) { 194 *cp1++ = *cp++; 196 *cp1 = '\0'; 202 cp1 = MIN(cp1, 205 strcpy(cp1, unknown_use [all...] |
/titanic_51/usr/src/cmd/sgs/unifdef/common/ |
H A D | unifdef.c | 98 char *cp1; in main() local 111 if (*(cp1 = cp = *curarg) != '-') in main() 113 if (*++cp1 == 'i') { in main() 115 cp1++; in main() 118 if ((*cp1 == 'D' || *cp1 == 'U') && in main() 119 cp1[1] != '\0') { in main() 127 true[nsyms] = *cp1 == 'D' ? YES : NO; in main() 128 sym[nsyms++] = &cp1[1]; in main()
|
/titanic_51/usr/src/test/zfs-tests/cmd/dir_rd_update/ |
H A D | dir_rd_update.c | 50 char *cp1 = ""; in main() local 65 cp1 = argv[1]; in main() 66 (void) strcpy(&dirpath[0], (const char *)cp1); in main()
|
/titanic_51/usr/src/lib/libbc/libc/gen/common/ |
H A D | scandir.c | 43 char *cp1, *cp2; in scandir() local 75 for (cp1 = p->d_name, cp2 = d->d_name; *cp1++ = *cp2++; ); in scandir()
|
/titanic_51/usr/src/common/ficl/ |
H A D | utility.c | 176 ficlStrincmp(char *cp1, char *cp2, ficlUnsigned count) in ficlStrincmp() argument 180 for (; 0 < count; ++cp1, ++cp2, --count) { in ficlStrincmp() 181 i = tolower((unsigned char)*cp1) - tolower((unsigned char)*cp2); in ficlStrincmp() 184 else if (*cp1 == '\0') in ficlStrincmp()
|
/titanic_51/usr/src/lib/libdevinfo/ |
H A D | devinfo_devperm.c | 655 char *cp1; in getnexttoken() local 674 cp1 = cp; in getnexttoken() 675 while (*++cp1 == ' ' || *cp1 == '\t') in getnexttoken() 677 if (*cp1 == '=' || *cp1 == ':' || *cp1 == '&' || *cp1 == '|' || in getnexttoken() 678 *cp1 == ';' || *cp1 in getnexttoken() [all...] |
/titanic_51/usr/src/cmd/tsol/tnctl/ |
H A D | tnctl.c | 241 char *cp1; in process_rh() local 265 cp1 = prefix_p + 1; in process_rh() 267 rhent.rh_prefix = strtol(cp1, &cp2, 0); in process_rh() 283 cp1 = hostname_p; in process_rh() 285 *cp1 = *hostname++; in process_rh() 286 if (*cp1 != '\\') in process_rh() 287 cp1++; in process_rh() 289 *cp1 = '\0'; in process_rh()
|
/titanic_51/usr/src/lib/libresolv/ |
H A D | res_debug.c | 221 char *cp1, *cp2; local 233 cp1 = cp; 312 cp2 = cp1 + dlen; 358 while (cp < cp1 + dlen) { 391 if (cp != cp1 + dlen) { 392 fprintf(file, "packet size error (%#x != %#x)\n", cp, cp1+dlen);
|
/titanic_51/usr/src/cmd/fs.d/ |
H A D | fslib.c | 244 char *cp1; in fsgetmlevel() local 251 for (cp1 = cp + 1; *cp1; cp++, cp1++) in fsgetmlevel() 252 if (*cp == '/' && *cp1 != '/') /* "///" counts as 1 */ in fsgetmlevel()
|
/titanic_51/usr/src/cmd/backup/restore/ |
H A D | dirs.c | 353 char *cp, *cp1; in psearch() local 361 cp1 = cp + 1; in psearch() 362 while (*cp1 != '/' && *cp1) in psearch() 363 cp1++; in psearch() 364 c = *cp1; in psearch() 365 *cp1 = 0; in psearch() 368 *cp1 = c; in psearch() 371 *cp1 = c; in psearch() 373 cp = cp1 in psearch() [all...] |
/titanic_51/usr/src/cmd/make/bin/ |
H A D | main.cc | 1139 char *cp1; in setup_makeflags_argv() local 3048 register char *cp1; /* work pointer in array */ in append_or_replace_macro_in_dyn_array() local 3078 cp1 = Ar->start; in append_or_replace_macro_in_dyn_array() 3081 if (!(cp1 = strchr(cp1, name[0]))) goto APPEND_MACRO; in append_or_replace_macro_in_dyn_array() 3082 if (!(cp2 = strchr(cp1, (int) equal_char))) goto APPEND_MACRO; in append_or_replace_macro_in_dyn_array() 3083 if (strncmp(cp1, name, (size_t)(cp0-name))) { in append_or_replace_macro_in_dyn_array() 3085 cp1++; in append_or_replace_macro_in_dyn_array() 3088 if (cp1 != Ar->start) { in append_or_replace_macro_in_dyn_array() 3089 if (!isspace(*(cp1 in append_or_replace_macro_in_dyn_array() [all...] |
/titanic_51/usr/src/cmd/vi/port/ |
H A D | ex_cmdsub.c | 244 unsigned char *cp, *cp1; in join() local 256 cp1 = linebuf; in join() 258 while (*cp1 == ' ' || *cp1 == '\t') in join() 259 cp1++; in join() 260 if (*cp1 && cp > genbuf && cp[-1] != ' ' && cp[-1] != '\t') { in join() 267 if (wddlm && *cp1 != ')' && cp[-1] != '.') { in join() 278 if (!isascii(wc2 = *cp1)) { in join() 279 if (mbtowc(&wc2, (char *) cp1, in join() 291 if (*cp1 ! in join() [all...] |