Lines Matching refs:psexp

36 psexp_create(psexp_t *psexp)  in psexp_create()  argument
38 idtab_create(&psexp->ps_euids); in psexp_create()
39 idtab_create(&psexp->ps_ruids); in psexp_create()
40 idtab_create(&psexp->ps_rgids); in psexp_create()
41 idtab_create(&psexp->ps_ppids); in psexp_create()
42 idtab_create(&psexp->ps_pgids); in psexp_create()
43 idtab_create(&psexp->ps_sids); in psexp_create()
44 idtab_create(&psexp->ps_ttys); in psexp_create()
45 idtab_create(&psexp->ps_projids); in psexp_create()
46 idtab_create(&psexp->ps_taskids); in psexp_create()
47 idtab_create(&psexp->ps_zoneids); in psexp_create()
48 idtab_create(&psexp->ps_ctids); in psexp_create()
50 psexp->ps_pat = NULL; in psexp_create()
54 psexp_destroy(psexp_t *psexp) in psexp_destroy() argument
56 idtab_destroy(&psexp->ps_euids); in psexp_destroy()
57 idtab_destroy(&psexp->ps_ruids); in psexp_destroy()
58 idtab_destroy(&psexp->ps_rgids); in psexp_destroy()
59 idtab_destroy(&psexp->ps_ppids); in psexp_destroy()
60 idtab_destroy(&psexp->ps_pgids); in psexp_destroy()
61 idtab_destroy(&psexp->ps_sids); in psexp_destroy()
62 idtab_destroy(&psexp->ps_ttys); in psexp_destroy()
63 idtab_destroy(&psexp->ps_projids); in psexp_destroy()
64 idtab_destroy(&psexp->ps_taskids); in psexp_destroy()
65 idtab_destroy(&psexp->ps_zoneids); in psexp_destroy()
66 idtab_destroy(&psexp->ps_ctids); in psexp_destroy()
68 if (psexp->ps_pat) in psexp_destroy()
69 regfree(&psexp->ps_reg); in psexp_destroy()
73 psexp_compile(psexp_t *psexp) in psexp_compile() argument
79 idtab_sort(&psexp->ps_euids); in psexp_compile()
80 idtab_sort(&psexp->ps_ruids); in psexp_compile()
81 idtab_sort(&psexp->ps_rgids); in psexp_compile()
82 idtab_sort(&psexp->ps_ppids); in psexp_compile()
83 idtab_sort(&psexp->ps_pgids); in psexp_compile()
84 idtab_sort(&psexp->ps_sids); in psexp_compile()
85 idtab_sort(&psexp->ps_ttys); in psexp_compile()
86 idtab_sort(&psexp->ps_projids); in psexp_compile()
87 idtab_sort(&psexp->ps_taskids); in psexp_compile()
88 idtab_sort(&psexp->ps_zoneids); in psexp_compile()
89 idtab_sort(&psexp->ps_ctids); in psexp_compile()
91 if (psexp->ps_pat != NULL) { in psexp_compile()
92 if ((err = regcomp(&psexp->ps_reg, psexp->ps_pat, in psexp_compile()
95 nbytes = regerror(err, &psexp->ps_reg, NULL, 0); in psexp_compile()
97 (void) regerror(err, &psexp->ps_reg, buf, nbytes); in psexp_compile()
108 psexp->__f1.id_data && !idtab_search(&psexp->__f1, psinfo->__f2)
111 psexp_match(psexp_t *psexp, psinfo_t *psinfo, int flags) in psexp_match() argument
139 if (psexp->ps_pat != NULL) { in psexp_match()
143 if (regexec(&psexp->ps_reg, s, 1, &pmatch, 0) != 0) in psexp_match()