Searched refs:alert (Results 1 - 25 of 29) sorted by relevance

12

/illumos-gate/usr/src/cmd/lp/cmd/lpadmin/
H A Ddo_pwheel.c78 printalert (stdout, &(oldS->alert), 0);
121 * alert that doesn't exist.
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;
/illumos-gate/usr/src/cmd/syslogd/
H A Dsyslog.conf36 *.alert;kern.err;daemon.err operator
37 *.alert root
54 user.alert `root, operator'
/illumos-gate/usr/src/cmd/lp/cmd/lpsched/
H A Dalerts.c75 alert (int type, ...) function
86 pformat(pr->alert->msgfile, text, pr, rp);
87 if (!pr->alert->active)
90 pr->alert->active = 1;
94 pr->alert->exec->flags |= EXF_RESTART;
96 Unlink(pr->alert->msgfile);
103 pwformat(pp->alert->msgfile, pp);
104 if (!pp->alert->active) {
106 pp->alert->active = 1;
109 pp->alert
[all...]
H A Ddaisyforms.c139 * be NO alert active.
152 if ((trigger = pf->alert.Q) <= 0)
160 #define OALERT pfs->form->alert
161 #define NALERT pf->alert
166 * Cancel an active alert if the number of requests queued
168 * raised), or if the alert command or period has changed.
169 * In the latter case we'll reactive the alert later.
171 if (pfs->alert->active)
186 * If we still have the condition for an alert, we'll fire
187 * one off. It is possible the alert i
[all...]
H A Dnodes.h75 #define EX_ALERT 3 /* exec alert for ex.printer */
76 #define EX_FALERT 4 /* exec alert for ex.form */
77 #define EX_PALERT 5 /* exec alert for ex.pwheel */
95 ALERT *alert; member in struct:fstat_node
97 short requests_last; /* # when alert last sent */
119 ALERT *alert; member in struct:pstat_node
148 ALERT *alert; member in struct:pwstat_node
150 short requests_last; /* # when alert last sent */
207 FALERT alert; member in struct:form_node
H A Ddisena.c117 if (pps->alert->active)
H A Dfncs.c189 if (psp->alert != NULL)
190 free_alert(psp->alert);
257 result->alert = new_alert("A-%d", i++);
258 result->alert->exec = new_exec(EX_ALERT, result);
306 if (fsp->alert != NULL)
307 free_alert(fsp->alert);
337 result->alert = new_alert("F-%d", i++);
338 result->alert->exec = new_exec(EX_FALERT, result);
339 result->trigger = result->form->alert.Q;
362 if (pwp->alert !
[all...]
H A Ddisp4.c348 * We quiet an alert by cancelling it with "cancel_alert()"
350 * terminates the process running the alert but tricks the
352 * The alert will be reactivated only AFTER "cancel_alert()"
353 * has been called (to clear the active flag) and then "alert()"
356 * For printer faults the alert will be reactivated when:
361 * For forms/print-wheels the alert will be reactivated when:
380 else if (!pfs->alert->active)
385 pfs->alert->active = 1;
394 else if (!pps->alert->active)
399 pps->alert
[all...]
H A Ddowait.c45 || (PRS)->request->alert \
116 if (pps->alert->active)
454 pas = ep->ex.printer->alert;
458 pas = ep->ex.form->alert;
462 pas = ep->ex.pwheel->alert;
466 * Only the alert structure (and exec structure)
H A Ddisp2.c96 * Does an alert get affected?
100 if (pps->alert->active)
108 * check if we need to run the new alert,
111 pps->alert->active = 0;
112 terminate (pps->alert->exec);
114 alert(A_PRINTER, pps, (RSTATUS *)0,
117 Unlink (pps->alert->msgfile);
185 if (pps->alert->active)
H A Dexec.c371 ep = printer->alert->exec;
376 ep = pwheel->alert->exec;
387 ep = form->alert->exec;
1048 (void)Chown (printer->alert->msgfile, procuid, procgid);
1052 av[ac++] = arg_string(TRUSTED, "%s", printer->alert->msgfile);
1059 (void)Chown (pwheel->alert->msgfile, procuid, procgid);
1063 av[ac++] = arg_string(TRUSTED, "%s", printer->alert->msgfile);
1070 (void)Chown (form->alert->msgfile, procuid, procgid);
1074 av[ac++] = arg_string(TRUSTED, "%s", printer->alert->msgfile);
1103 if (request->request->alert) {
[all...]
H A Dnotify.c111 && !prs->request->alert
H A Dfaults.c125 alert(A_PRINTER, pps, prs, shortWhy);
H A Dlpsched.h278 void alert ( int , ... );
/illumos-gate/usr/src/cmd/lp/lib/requests/
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 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 Dgetrequest.c175 reqp->alert = Strdup(p);
/illumos-gate/usr/src/cmd/lp/lib/printers/
H A Dprintwheels.c79 * Get the information for the alert.
96 pwp->alert = *pa;
152 * Now write out the alert condition.
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 */
/illumos-gate/usr/src/cmd/lp/cmd/
H A Dlpforms.c101 " [-A mail | write | shell-command] (alert definition)\n"
102 " [-Q threshold] (# needed for alert)\n"
112 " (define alert for forms with no alert yet)\n"
115 " (define alert for all forms)\n"
161 FALERT alert = { (char *)0, -1, -1 }; local
249 alert.shcmd = makestr(optarg, " ", getname(), (char *)0);
251 alert.shcmd = strdup(optarg);
257 if (alert.Q != -1)
260 alert
487 FALERT alert; local
854 FALERT alert; local
1003 FALERT alert; local
[all...]
/illumos-gate/usr/src/cmd/lp/lib/lp/
H A Dalerts.c47 * We recognize the following key phrases in the alert prototype
143 * each alert with the UID and GID of the administrator
144 * who defined the alert. Otherwise, anything goes.
273 static FALERT alert; local
327 alert.shcmd = sop_up_rest(fd, ALRT_CMDEND);
331 if (!alert.shcmd)
337 if (alert.shcmd[(len = strlen(alert.shcmd)) - 1] == '\n')
338 alert.shcmd[len - 1] = 0;
363 alert
[all...]
/illumos-gate/usr/src/cmd/lp/include/
H A Drequests.h75 char *alert; /* program to run to alert user when done */ member in struct:REQUEST
118 #define RS_NOTIFY 0x0400 /* user is to be notified (alert) */
119 #define RS_NOTIFYING 0x0800 /* notification (alert) is running */
H A Dprinters.h109 FALERT fault_alert; /* how to alert on printer fault */
155 #define BAD_ALERT 0x0010 /* has reserved word for alert command */
172 FALERT alert; /* how to alert when mount needed */ member in struct:PWHEEL
/illumos-gate/usr/src/cmd/lp/model/
H A DMakefile52 MISC = alert.proto

Completed in 65 milliseconds

12