Lines Matching defs:p
115 char *pmtag = NULL; /* argument to -p */
122 register char *p; /* scratch pointer */
126 while ((c = getopt(argc, argv, "ac:def:GgkLln:p:rst:v:xy:z:")) != -1) {
192 case 'p':
202 for (p = pmtag; *p; p++) {
203 if (!isalnum(*p)) {
225 for (p = type; *p; p++) {
226 if (!isalnum(*p)) {
412 (void) fprintf(stderr, "Usage:\t%s -a -p pmtag -t type -c cmd -v ver [ -f dx ] [ -n count ]\n", cmdname);
414 (void) fprintf(stderr, "\t%s -r -p pmtag\n", cmdname);
415 (void) fprintf(stderr, "\t%s -s -p pmtag\n", cmdname);
416 (void) fprintf(stderr, "\t%s -k -p pmtag\n", cmdname);
417 (void) fprintf(stderr, "\t%s -e -p pmtag\n", cmdname);
418 (void) fprintf(stderr, "\t%s -d -p pmtag\n", cmdname);
419 (void) fprintf(stderr, "\t%s -l [ -p pmtag | -t type ]\n", cmdname);
420 (void) fprintf(stderr, "\t%s -L [ -p pmtag | -t type ]\n", cmdname);
421 (void) fprintf(stderr, "\t%s -g -p pmtag [ -z script ]\n", cmdname);
423 (void) fprintf(stderr, "\t%s -x [ -p pmtag ]\n", cmdname);
856 char *p; /* scratch pointer */
871 p = NULL;
876 sendcmd(ap, &p, NULL);
879 single_print(&p);
887 while (p && *p) {
888 tag = getfield(&p, ':'); /* PM tag */
889 type = getfield(&p, ':'); /* PM type */
890 flags = getfield(&p, ':'); /* flags */
891 rsmax = getfield(&p, ':'); /* restart count */
892 state = pstate((unchar) atoi(getfield(&p, ':'))); /* state in nice output format */
893 cmd = getfield(&p, ':'); /* command */
894 comment = getfield(&p, '\n'); /* comment */
938 * args: p - address of remaining portion of string
943 getfield(p, sepchar)
944 char **p;
949 savep = *p;
950 *p = strchr(*p, sepchar);
951 if (*p == NULL) {
956 **p = '\0';
957 (*p)++;
966 * args: p - address of pointer where formatted data should be
971 single_print(p)
972 char **p;
1028 *p = tp1;