Home
last modified time | relevance | path

Searched refs:alert (Results 1 – 25 of 44) sorted by relevance

12

/titanic_41/usr/src/cmd/lp/cmd/lpsched/
H A Dalerts.c75 alert (int type, ...) in alert() function
86 pformat(pr->alert->msgfile, text, pr, rp); in alert()
87 if (!pr->alert->active) in alert()
90 pr->alert->active = 1; in alert()
94 pr->alert->exec->flags |= EXF_RESTART; in alert()
96 Unlink(pr->alert->msgfile); in alert()
103 pwformat(pp->alert->msgfile, pp); in alert()
104 if (!pp->alert->active) { in alert()
106 pp->alert->active = 1; in alert()
109 pp->alert->exec->flags |= EXF_RESTART; in alert()
[all …]
H A Ddaisyforms.c152 if ((trigger = pf->alert.Q) <= 0) in check_form_alert()
160 #define OALERT pfs->form->alert in check_form_alert()
161 #define NALERT pf->alert in check_form_alert()
171 if (pfs->alert->active) in check_form_alert()
210 alert (A_FORM, pfs); in check_form_alert()
242 if ((trigger = ppw->alert.Q) <= 0) in check_pwheel_alert()
250 #define OALERT ppws->pwheel->alert in check_pwheel_alert()
251 #define NALERT ppw->alert in check_pwheel_alert()
261 if (ppws->alert->active) in check_pwheel_alert()
299 alert (A_PWHEEL, ppws); in check_pwheel_alert()
H A Dfncs.c189 if (psp->alert != NULL) in free_pstatus()
190 free_alert(psp->alert); in free_pstatus()
257 result->alert = new_alert("A-%d", i++); in new_pstatus()
258 result->alert->exec = new_exec(EX_ALERT, result); in new_pstatus()
306 if (fsp->alert != NULL) in free_fstatus()
307 free_alert(fsp->alert); in free_fstatus()
337 result->alert = new_alert("F-%d", i++); in new_fstatus()
338 result->alert->exec = new_exec(EX_FALERT, result); in new_fstatus()
339 result->trigger = result->form->alert.Q; in new_fstatus()
362 if (pwp->alert != NULL) in free_pwstatus()
[all …]
H A Dnodes.h95 ALERT *alert; member
119 ALERT *alert; member
148 ALERT *alert; member
207 FALERT alert; member
H A Ddisp4.c380 else if (!pfs->alert->active) in s_quiet_alert()
385 pfs->alert->active = 1; in s_quiet_alert()
394 else if (!pps->alert->active) in s_quiet_alert()
399 pps->alert->active = 1; in s_quiet_alert()
408 else if (!ppws->alert->active) in s_quiet_alert()
413 ppws->alert->active = 1; in s_quiet_alert()
H A Ddowait.c45 || (PRS)->request->alert \
116 if (pps->alert->active) in dowait()
454 pas = ep->ex.printer->alert; in dowait()
458 pas = ep->ex.form->alert; in dowait()
462 pas = ep->ex.pwheel->alert; in dowait()
H A Ddisp2.c100 if (pps->alert->active) in s_load_printer()
111 pps->alert->active = 0; in s_load_printer()
112 terminate (pps->alert->exec); in s_load_printer()
114 alert(A_PRINTER, pps, (RSTATUS *)0, in s_load_printer()
117 Unlink (pps->alert->msgfile); in s_load_printer()
185 if (pps->alert->active) in _unload_printer()
H A Dexec.c371 ep = printer->alert->exec; in exec()
376 ep = pwheel->alert->exec; in exec()
387 ep = form->alert->exec; in exec()
1048 (void)Chown (printer->alert->msgfile, procuid, procgid); in exec()
1052 av[ac++] = arg_string(TRUSTED, "%s", printer->alert->msgfile); in exec()
1059 (void)Chown (pwheel->alert->msgfile, procuid, procgid); in exec()
1063 av[ac++] = arg_string(TRUSTED, "%s", printer->alert->msgfile); in exec()
1070 (void)Chown (form->alert->msgfile, procuid, procgid); in exec()
1074 av[ac++] = arg_string(TRUSTED, "%s", printer->alert->msgfile); in exec()
1103 if (request->request->alert) { in exec()
[all …]
H A Ddisena.c117 if (pps->alert->active) in enable()
H A Dnotify.c111 && !prs->request->alert in notify()
/titanic_41/usr/src/cmd/lp/cmd/
H A Dlpforms.c161 FALERT alert = { (char *)0, -1, -1 }; in main() local
249 alert.shcmd = makestr(optarg, " ", getname(), (char *)0); in main()
251 alert.shcmd = strdup(optarg); in main()
257 if (alert.Q != -1) in main()
260 alert.Q = 1; in main()
262 alert.Q = strtol(optarg, &rest, 10); in main()
263 if (alert.Q < 0) { in main()
271 if (alert.Q == 0) { in main()
280 if (alert.W != -1) in main()
283 alert.W = 0; in main()
[all …]
/titanic_41/usr/src/cmd/lp/cmd/lpadmin/
H A Ddo_pwheel.c78 printalert (stdout, &(oldS->alert), 0); in do_pwheel()
161 ppw->alert.shcmd = 0;
162 ppw->alert.Q = 0;
163 ppw->alert.W = 0;
170 ppw->alert.shcmd = nameit(A);
172 ppw->alert.shcmd = A;
177 ppw->alert.Q = Q;
181 ppw->alert.W = W;
/titanic_41/usr/src/cmd/lp/lib/lp/
H A Dalerts.c273 static FALERT alert; in getalert() local
327 alert.shcmd = sop_up_rest(fd, ALRT_CMDEND); in getalert()
331 if (!alert.shcmd) in getalert()
337 if (alert.shcmd[(len = strlen(alert.shcmd)) - 1] == '\n') in getalert()
338 alert.shcmd[len - 1] = 0; in getalert()
363 alert.Q = atoi(buf); in getalert()
373 alert.W = atoi(buf); in getalert()
377 return (&alert); in getalert()
H A Dllib-llp48 char * shcmd; /* shell command used to perform the alert */
49 int Q; /* # requests queued to activate alert */
50 int W; /* alert is sent every "W" minutes */
/titanic_41/usr/src/cmd/syslogd/
H A Dsyslog.conf36 *.alert;kern.err;daemon.err operator
37 *.alert root
54 user.alert `root, operator'
/titanic_41/usr/src/cmd/lp/lib/requests/
H A Dputrequest.c80 && (reqbufp->alert && *(reqbufp->alert))
163 else if (reqbufp->alert && *(reqbufp->alert))
164 (void)fdprintf(fd, "%s%s\n", HEAD, reqbufp->alert);
H A Dfreerequest.c62 if (reqbufp->alert)
63 Free (reqbufp->alert);
H A Dllib-llpreq43 char *alert; /* program to run to alert user when done */
H A Dgetrequest.c175 reqp->alert = Strdup(p);
/titanic_41/usr/src/cmd/lp/lib/printers/
H A Dprintwheels.c96 pwp->alert = *pa;
154 if (putalert(Lp_A_PrintWheels, name, &(pwheelp->alert)) == -1)
244 if (ppw->alert.shcmd)
245 Free (ppw->alert.shcmd);
H A Dllib-llpprt56 FALERT fault_alert; /* how to alert on printer fault */
73 FALERT alert; /* how to alert when mount needed */
/titanic_41/usr/src/cmd/lp/model/
H A Dalert.proto76 The alert message is:
80 } | mailx -s 'Failed print service alert' -USER-
H A DMakefile52 MISC = alert.proto
/titanic_41/usr/src/cmd/lp/include/
H A Drequests.h75 char *alert; /* program to run to alert user when done */ member
H A Dprinters.h172 FALERT alert; /* how to alert when mount needed */ member

12