Home
last modified time | relevance | path

Searched refs:ppw (Results 1 – 8 of 8) sorted by relevance

/illumos-gate/usr/src/cmd/lp/cmd/lpadmin/
H A Ddo_pwheel.c147 register PWHEEL *ppw; local
155 ppw = oldS;
157 ppw = &pwheel_buf;
158 ppw->alert.shcmd = 0;
159 ppw->alert.Q = 0;
160 ppw->alert.W = 0;
167 ppw->alert.shcmd = nameit(A);
169 ppw->alert.shcmd = A;
174 ppw->alert.Q = Q;
178 ppw->alert.W = W;
[all …]
H A Dchkopts.c734 struct passwd *ppw; local
769 if (!(ppw = getpwnam(LPUSER)))
770 ppw = getpwnam(ROOTUSER);
772 if (ppw)
773 lp_uid = ppw->pw_uid;
/illumos-gate/usr/src/cmd/lp/lib/printers/
H A Dprintwheels.c231 PWHEEL * ppw in freepwheel() argument
234 freepwheel (ppw) in freepwheel()
235 PWHEEL *ppw; in freepwheel()
238 if (!ppw)
240 if (ppw->name)
241 Free (ppw->name);
242 if (ppw->alert.shcmd)
243 Free (ppw->alert.shcmd);
244 Free (ppw);
/illumos-gate/usr/src/test/zfs-tests/cmd/chg_usr_exec/
H A Dchg_usr_exec.c42 struct passwd *ppw = NULL; in main() local
58 if ((ppw = getpwnam(plogin)) == NULL) { in main()
62 if (setgid(ppw->pw_gid) != 0) { in main()
66 if (setuid(ppw->pw_uid) != 0) { in main()
/illumos-gate/usr/src/cmd/lp/lib/lp/
H A Dfiles.c235 struct passwd *ppw; in chown_lppath() local
239 if (!(ppw = getpwnam(LPUSER))) in chown_lppath()
240 ppw = getpwnam(ROOTUSER); in chown_lppath()
242 if (!ppw) in chown_lppath()
244 lp_uid = ppw->pw_uid; in chown_lppath()
245 lp_gid = ppw->pw_gid; in chown_lppath()
/illumos-gate/usr/src/cmd/lp/cmd/lpsched/
H A Ddaisyforms.c218 check_pwheel_alert(PWSTATUS *ppws, PWHEEL *ppw) in check_pwheel_alert() argument
239 if (ppw) { in check_pwheel_alert()
240 if ((trigger = ppw->alert.Q) <= 0) in check_pwheel_alert()
249 #define NALERT ppw->alert in check_pwheel_alert()
264 ppw in check_pwheel_alert()
281 if ((ppw && NALERT.shcmd) || OALERT.shcmd) in check_pwheel_alert()
287 Return: if (ppw) { in check_pwheel_alert()
289 ppws->pwheel = ppw; in check_pwheel_alert()
H A Ddisp3.c656 register PWHEEL *ppw; in s_load_printwheel() local
666 else if (!(ppw = Getpwheel(pwheel_name))) { in s_load_printwheel()
679 check_pwheel_alert (ppws, ppw); in s_load_printwheel()
681 } else if ((ppws = new_pwstatus(ppw))) { in s_load_printwheel()
698 check_pwheel_alert (ppws, ppw); in s_load_printwheel()
702 freepwheel (ppw); in s_load_printwheel()
/illumos-gate/usr/src/cmd/lp/lib/oam/
H A Dfmtmsg.c111 wchar_t *p, *pw, *ppw; in wrap() local
177 ppw = pw; in wrap()
199 len = ppw - p; in wrap()