• Home
  • Raw
  • Download

Lines Matching refs:cp

264 			char *cp = strchr(e, '=');  in kdbgetenv()  local
265 return cp ? ++cp : ""; in kdbgetenv()
487 char *cp; in kdb_set() local
489 debugflags = simple_strtoul(argv[2], &cp, 0); in kdb_set()
490 if (cp == argv[2] || debugflags & ~KDB_DEBUG_FLAG_MASK) { in kdb_set()
554 char *cp; in kdbgetaddrarg() local
585 cp = strpbrk(symname, "+-"); in kdbgetaddrarg()
586 if (cp != NULL) { in kdbgetaddrarg()
587 symbol = *cp; in kdbgetaddrarg()
588 *cp++ = '\0'; in kdbgetaddrarg()
657 cp = (char *)argv[*nextarg]; in kdbgetaddrarg()
661 diag = kdbgetularg(cp, &off); in kdbgetaddrarg()
881 char *cp = (char *)str, *cp2; in parse_grep() local
884 if (*cp != '|') in parse_grep()
886 cp++; in parse_grep()
887 while (isspace(*cp)) in parse_grep()
888 cp++; in parse_grep()
889 if (!str_has_prefix(cp, "grep ")) { in parse_grep()
893 cp += 5; in parse_grep()
894 while (isspace(*cp)) in parse_grep()
895 cp++; in parse_grep()
896 cp2 = strchr(cp, '\n'); in parse_grep()
899 len = strlen(cp); in parse_grep()
905 if (*cp == '"') { in parse_grep()
908 cp++; in parse_grep()
909 cp2 = strchr(cp, '"'); in parse_grep()
917 if (*cp == '^') { in parse_grep()
919 cp++; in parse_grep()
921 len = strlen(cp); in parse_grep()
923 if (*(cp+len-1) == '$') { in parse_grep()
925 *(cp+len-1) = '\0'; in parse_grep()
927 len = strlen(cp); in parse_grep()
934 strcpy(kdb_grep_string, cp); in parse_grep()
972 char *cp; in kdb_parse() local
980 cp = (char *)cmdstr; in kdb_parse()
990 if (*cp != '\n' && *cp != '\0') { in kdb_parse()
993 while (*cp) { in kdb_parse()
995 while (isspace(*cp)) in kdb_parse()
996 cp++; in kdb_parse()
997 if ((*cp == '\0') || (*cp == '\n') || in kdb_parse()
998 (*cp == '#' && !defcmd_in_progress)) in kdb_parse()
1001 if (*cp == '|') { in kdb_parse()
1021 while (*cp && *cp != '\n' && in kdb_parse()
1022 (escaped || quoted || !isspace(*cp))) { in kdb_parse()
1027 *cpp++ = *cp++; in kdb_parse()
1030 if (*cp == '\\') { in kdb_parse()
1032 ++cp; in kdb_parse()
1035 if (*cp == quoted) in kdb_parse()
1037 else if (*cp == '\'' || *cp == '"') in kdb_parse()
1038 quoted = *cp; in kdb_parse()
1039 *cpp = *cp++; in kdb_parse()
1050 parse_grep(cp); in kdb_parse()
1575 unsigned char *cp; in kdb_md_line() local
1577 cp = wc.c + 8 - bytesperword; in kdb_md_line()
1579 cp = wc.c; in kdb_md_line()
1585 *c++ = printable_char(*cp++); in kdb_md_line()
2097 char *cp; in kdb_dmesg() local
2098 lines = simple_strtol(argv[1], &cp, 0); in kdb_dmesg()
2099 if (*cp) in kdb_dmesg()
2102 adjust = simple_strtoul(argv[2], &cp, 0); in kdb_dmesg()
2103 if (*cp || adjust < 0) in kdb_dmesg()