Lines Matching defs:pg
98 #include "pg.h"
409 pgrep_data_t pg;
418 pg.pg_flags = 0;
419 pg.pg_xaddr = 0;
422 'n', MDB_OPT_SETBITS, PG_NEWEST, &pg.pg_flags,
423 'o', MDB_OPT_SETBITS, PG_OLDEST, &pg.pg_flags,
424 'x', MDB_OPT_SETBITS, PG_EXACT_MATCH, &pg.pg_flags,
436 if ((pg.pg_flags & PG_NEWEST) && (pg.pg_flags & PG_OLDEST))
443 pg.pg_flags |= PG_PIPE_OUT;
445 pg.pg_pat = argv->a_un.a_str;
447 pg.pg_psflags = DCMD_ADDRSPEC | DCMD_LOOP | DCMD_LOOPFIRST;
449 pg.pg_psflags = DCMD_ADDRSPEC | DCMD_LOOP;
452 if ((err = regcomp(&pg.pg_reg, pg.pg_pat, REG_EXTENDED)) != 0) {
456 nbytes = regerror(err, &pg.pg_reg, NULL, 0);
458 (void) regerror(err, &pg.pg_reg, buf, nbytes);
465 if (mdb_walk("proc", pgrep_cb, &pg) != 0) {
470 if (pg.pg_xaddr != 0 && (pg.pg_flags & (PG_NEWEST | PG_OLDEST))) {
471 if (pg.pg_flags & PG_PIPE_OUT) {
472 mdb_printf("%p\n", pg.pg_xaddr);
474 if (mdb_call_dcmd("ps", pg.pg_xaddr, pg.pg_psflags,
4194 /* from pg.c */
4195 { "pg", "?[-q]", "display a pg", pg},