Lines Matching refs:psexp

38 psexp_create(psexp_t *psexp)  in psexp_create()  argument
40 idtab_create(&psexp->ps_euids); in psexp_create()
41 idtab_create(&psexp->ps_ruids); in psexp_create()
42 idtab_create(&psexp->ps_rgids); in psexp_create()
43 idtab_create(&psexp->ps_ppids); in psexp_create()
44 idtab_create(&psexp->ps_pgids); in psexp_create()
45 idtab_create(&psexp->ps_sids); in psexp_create()
46 idtab_create(&psexp->ps_ttys); in psexp_create()
47 idtab_create(&psexp->ps_projids); in psexp_create()
48 idtab_create(&psexp->ps_taskids); in psexp_create()
49 idtab_create(&psexp->ps_zoneids); in psexp_create()
50 idtab_create(&psexp->ps_ctids); in psexp_create()
52 psexp->ps_pat = NULL; in psexp_create()
56 psexp_destroy(psexp_t *psexp) in psexp_destroy() argument
58 idtab_destroy(&psexp->ps_euids); in psexp_destroy()
59 idtab_destroy(&psexp->ps_ruids); in psexp_destroy()
60 idtab_destroy(&psexp->ps_rgids); in psexp_destroy()
61 idtab_destroy(&psexp->ps_ppids); in psexp_destroy()
62 idtab_destroy(&psexp->ps_pgids); in psexp_destroy()
63 idtab_destroy(&psexp->ps_sids); in psexp_destroy()
64 idtab_destroy(&psexp->ps_ttys); in psexp_destroy()
65 idtab_destroy(&psexp->ps_projids); in psexp_destroy()
66 idtab_destroy(&psexp->ps_taskids); in psexp_destroy()
67 idtab_destroy(&psexp->ps_zoneids); in psexp_destroy()
68 idtab_destroy(&psexp->ps_ctids); in psexp_destroy()
70 if (psexp->ps_pat) in psexp_destroy()
71 regfree(&psexp->ps_reg); in psexp_destroy()
75 psexp_compile(psexp_t *psexp) in psexp_compile() argument
81 idtab_sort(&psexp->ps_euids); in psexp_compile()
82 idtab_sort(&psexp->ps_ruids); in psexp_compile()
83 idtab_sort(&psexp->ps_rgids); in psexp_compile()
84 idtab_sort(&psexp->ps_ppids); in psexp_compile()
85 idtab_sort(&psexp->ps_pgids); in psexp_compile()
86 idtab_sort(&psexp->ps_sids); in psexp_compile()
87 idtab_sort(&psexp->ps_ttys); in psexp_compile()
88 idtab_sort(&psexp->ps_projids); in psexp_compile()
89 idtab_sort(&psexp->ps_taskids); in psexp_compile()
90 idtab_sort(&psexp->ps_zoneids); in psexp_compile()
91 idtab_sort(&psexp->ps_ctids); in psexp_compile()
93 if (psexp->ps_pat != NULL) { in psexp_compile()
94 if ((err = regcomp(&psexp->ps_reg, psexp->ps_pat, in psexp_compile()
97 nbytes = regerror(err, &psexp->ps_reg, NULL, 0); in psexp_compile()
99 (void) regerror(err, &psexp->ps_reg, buf, nbytes); in psexp_compile()
110 psexp->__f1.id_data && !idtab_search(&psexp->__f1, psinfo->__f2)
113 psexp_match(psexp_t *psexp, psinfo_t *psinfo, int flags) in psexp_match() argument
141 if (psexp->ps_pat != NULL) { in psexp_match()
145 if (regexec(&psexp->ps_reg, s, 1, &pmatch, 0) != 0) in psexp_match()