Home | History | Annotate | Download | only in src

Lines Matching defs:cp

1568 	const char *cp;
1601 if ((cp = cstrchr(*wp, '=')) == NULL)
1605 up[cp++ - *wp] = '\0';
1607 if (x_bind(up ? up : *wp, cp,
1659 const char *cp;
1671 cp = wp[builtin_opt.optind];
1672 if (cp == NULL) {
1696 if (ksh_isdigit(*cp)) {
1698 while (*cp >= ord('0') && *cp <= ord('7')) {
1699 new_umask = new_umask * 8 + ksh_numdig(*cp);
1700 ++cp;
1702 if (*cp) {
1717 while (*cp) {
1718 while (*cp && vstrchr("augo", *cp))
1719 switch (*cp++) {
1736 if (!vstrchr("=+-", op = *cp))
1738 cp++;
1740 while (*cp && vstrchr("rwxugoXs", *cp))
1741 switch (*cp++) {
1774 if (*cp == ',') {
1776 cp++;
1777 } else if (!vstrchr("=+-", *cp))
1780 if (*cp) {
1794 const char *file, *cp, **argv;
1800 if ((cp = wp[builtin_opt.optind]) == NULL) {
1804 file = search_path(cp, path, R_OK, &errcode);
1806 search_access(cp, R_OK) == 0)
1807 file = cp;
1809 bi_errorf("%s: %s", cp, cstrerror(errcode));
1826 bi_errorf("%s: %s", cp, cstrerror(errno));
1867 char *cp, *allocd = NULL, *xp;
2114 ccp = cp = Xclose(xs, xp);
2125 afree(cp, ATEMP);
2265 afree(cp, ATEMP);
2551 char *cp = NULL;
2557 strndupx(cp, id, n - 3, ATEMP);
2558 id = cp;
2564 afree(cp, ATEMP);
3687 char *buf, *cp;
3725 if ((n = blocking_read(fd, (cp = buf),
3743 if ((w = write(STDOUT_FILENO, cp, n)) != -1) {
3745 cp += w;