• Home
  • Raw
  • Download

Lines Matching refs:cp

244 			char *cp = strchr(e, '=');  in kdbgetenv()  local
245 return cp ? ++cp : ""; in kdbgetenv()
407 char *cp; in kdb_set() local
409 debugflags = simple_strtoul(argv[2], &cp, 0); in kdb_set()
410 if (cp == argv[2] || debugflags & ~KDB_DEBUG_FLAG_MASK) { in kdb_set()
505 char *cp; in kdbgetaddrarg() local
536 cp = strpbrk(symname, "+-"); in kdbgetaddrarg()
537 if (cp != NULL) { in kdbgetaddrarg()
538 symbol = *cp; in kdbgetaddrarg()
539 *cp++ = '\0'; in kdbgetaddrarg()
608 cp = (char *)argv[*nextarg]; in kdbgetaddrarg()
612 diag = kdbgetularg(cp, &off); in kdbgetaddrarg()
825 char *cp = (char *)str, *cp2; in parse_grep() local
828 if (*cp != '|') in parse_grep()
830 cp++; in parse_grep()
831 while (isspace(*cp)) in parse_grep()
832 cp++; in parse_grep()
833 if (!str_has_prefix(cp, "grep ")) { in parse_grep()
837 cp += 5; in parse_grep()
838 while (isspace(*cp)) in parse_grep()
839 cp++; in parse_grep()
840 cp2 = strchr(cp, '\n'); in parse_grep()
843 len = strlen(cp); in parse_grep()
849 if (*cp == '"') { in parse_grep()
852 cp++; in parse_grep()
853 cp2 = strchr(cp, '"'); in parse_grep()
861 if (*cp == '^') { in parse_grep()
863 cp++; in parse_grep()
865 len = strlen(cp); in parse_grep()
867 if (*(cp+len-1) == '$') { in parse_grep()
869 *(cp+len-1) = '\0'; in parse_grep()
871 len = strlen(cp); in parse_grep()
878 strcpy(kdb_grep_string, cp); in parse_grep()
916 char *cp; in kdb_parse() local
924 cp = (char *)cmdstr; in kdb_parse()
934 if (*cp != '\n' && *cp != '\0') { in kdb_parse()
937 while (*cp) { in kdb_parse()
939 while (isspace(*cp)) in kdb_parse()
940 cp++; in kdb_parse()
941 if ((*cp == '\0') || (*cp == '\n') || in kdb_parse()
942 (*cp == '#' && !defcmd_in_progress)) in kdb_parse()
945 if (*cp == '|') { in kdb_parse()
965 while (*cp && *cp != '\n' && in kdb_parse()
966 (escaped || quoted || !isspace(*cp))) { in kdb_parse()
971 *cpp++ = *cp++; in kdb_parse()
974 if (*cp == '\\') { in kdb_parse()
976 ++cp; in kdb_parse()
979 if (*cp == quoted) in kdb_parse()
981 else if (*cp == '\'' || *cp == '"') in kdb_parse()
982 quoted = *cp; in kdb_parse()
983 *cpp = *cp++; in kdb_parse()
994 parse_grep(cp); in kdb_parse()
1533 unsigned char *cp; in kdb_md_line() local
1535 cp = wc.c + 8 - bytesperword; in kdb_md_line()
1537 cp = wc.c; in kdb_md_line()
1543 *c++ = printable_char(*cp++); in kdb_md_line()
2107 char *cp; in kdb_dmesg() local
2108 lines = simple_strtol(argv[1], &cp, 0); in kdb_dmesg()
2109 if (*cp) in kdb_dmesg()
2112 adjust = simple_strtoul(argv[2], &cp, 0); in kdb_dmesg()
2113 if (*cp || adjust < 0) in kdb_dmesg()