Home
last modified time | relevance | path

Searched refs:shcmd (Results 1 – 25 of 30) sorted by relevance

12

/illumos-gate/usr/src/cmd/lp/lib/lp/
H A Dalerts.c101 if (!alertp->shcmd) { in putalert()
106 if (STREQU(alertp->shcmd, NAME_NONE)) in putalert()
212 fdprintf(fdout, "%s\n", alertp->shcmd); in putalert()
326 alert.shcmd = sop_up_rest(fd, ALRT_CMDEND); in getalert()
330 if (!alert.shcmd) in getalert()
336 if (alert.shcmd[(len = strlen(alert.shcmd)) - 1] == '\n') in getalert()
337 alert.shcmd[len - 1] = 0; in getalert()
466 if (!alertp->shcmd) { in printalert()
473 register char *copy = Strdup(alertp->shcmd), in printalert()
502 (void)fprintf (fp, (char *)gettext("alert with \"%s\" "), alertp->shcmd); in printalert()
/illumos-gate/usr/src/cmd/lp/lib/printers/
H A Dokprinter.c63 prbufp->fault_alert.shcmd in okprinter()
64 && !STREQU(NAME_NONE, prbufp->fault_alert.shcmd) in okprinter()
112 prbufp->fault_alert.shcmd in okprinter()
114 STREQU(prbufp->fault_alert.shcmd, NAME_QUIET) in okprinter()
115 || STREQU(prbufp->fault_alert.shcmd, NAME_LIST) in okprinter()
H A Dfreeprinter.c76 if (pp->fault_alert.shcmd)
77 Free (pp->fault_alert.shcmd);
H A Dprintwheels.c242 if (ppw->alert.shcmd)
243 Free (ppw->alert.shcmd);
H A Dputprinter.c487 prbufp->fault_alert.shcmd in putprinter()
/illumos-gate/usr/src/cmd/lp/cmd/lpsched/
H A Ddaisyforms.c176 !SAME(NALERT.shcmd, OALERT.shcmd) in check_form_alert()
191 if ((pf && NALERT.shcmd) || OALERT.shcmd) in check_form_alert()
266 !SAME(NALERT.shcmd, OALERT.shcmd) in check_pwheel_alert()
281 if ((ppw && NALERT.shcmd) || OALERT.shcmd) in check_pwheel_alert()
H A Dfaults.c109 if (STREQU(pps->printer->fault_alert.shcmd,"show fault")) in printer_fault()
115 (pps->printer->fault_alert.shcmd ? in printer_fault()
116 pps->printer->fault_alert.shcmd : "??"), in printer_fault()
145 if (STREQU(pps->printer->fault_alert.shcmd,"show fault")) in clear_printer_fault()
H A Ddisp2.c101 if (!SAME(pp->fault_alert.shcmd, in s_load_printer()
102 op->fault_alert.shcmd) || in s_load_printer()
113 if (pp->fault_alert.shcmd) in s_load_printer()
H A Dfncs.c645 if ((_form->alert.shcmd = alertbuf.shcmd) != NULL) { in Getform()
759 if (pf->alert.shcmd) in free_form()
760 Free (pf->alert.shcmd); in free_form()
H A Dalerts.c121 isFormMessage = (STREQU(fp->form->alert.shcmd, "showfault")); in alert()
H A Dexec.c261 if (!(printer->printer->fault_alert.shcmd)) { in exec()
/illumos-gate/usr/src/cmd/lp/cmd/
H A Dlpforms.c249 alert.shcmd = makestr(optarg, " ", getname(), (char *)0); in main()
251 alert.shcmd = strdup(optarg); in main()
365 if (action == any_alert && STREQU(alert.shcmd, NAME_NONE)) { in main()
381 && !alert.shcmd in main()
386 || action == any_alert && !alert.shcmd in main()
605 alert.shcmd = 0;
646 alert.shcmd = 0;
727 !alert.shcmd && !p_new_alert->shcmd
732 if (p_new_alert->shcmd)
733 alert.shcmd = p_new_alert->shcmd;
[all …]
/illumos-gate/usr/src/cmd/lp/cmd/lpadmin/
H A Ddo_pwheel.c158 ppw->alert.shcmd = 0;
167 ppw->alert.shcmd = nameit(A);
169 ppw->alert.shcmd = A;
H A Ddo_printer.c362 prbufp->fault_alert.shcmd = strdup(NAME_NONE); in configure_printer()
378 prbufp->fault_alert.shcmd = nameit(NAME_MAIL); in configure_printer()
413 prbufp->fault_alert.shcmd = nameit(NAME_MAIL); in configure_printer()
425 prbufp->fault_alert.shcmd = nameit(A); in configure_printer()
427 prbufp->fault_alert.shcmd = A; in configure_printer()
/illumos-gate/usr/src/cmd/init/
H A Dinit.c1528 getcmd(struct CMD_LINE *cmd, char *shcmd) in getcmd() argument
1671 bcopy(shcmd, &cmd->c_id[0], i); in getcmd()
1672 ptr = shcmd; in getcmd()
1694 ptr = shcmd; /* Reset the buffer */ in getcmd()
1706 if (ptr == shcmd) { in getcmd()
1743 (void) strcpy(shcmd, "exec "); in getcmd()
1745 ptr = shcmd + EXEC; in getcmd()
1768 if (ptr >= shcmd + MAXCMDL - 1) in getcmd()
1788 cmd->c_command = shcmd; in getcmd()
1808 if (ptr == shcmd + EXEC) in getcmd()
[all …]
/illumos-gate/usr/src/cmd/lp/lib/forms/
H A Dgetform.c108 alertp->shcmd = 0; in getform()
H A Dputform.c109 alertp->shcmd in putform()
/illumos-gate/usr/src/cmd/lp/lib/papi/
H A Dlpsched-printers.c218 if (tmp->fault_alert.shcmd != NULL) { in lpsched_printer_configuration_to_attributes()
221 tmp->fault_alert.shcmd); in lpsched_printer_configuration_to_attributes()
H A Dlpsched-msgs.c564 p->fault_alert.shcmd = strdup("mail"); in lpsched_add_printer()
598 p->fault_alert.shcmd = strdup("mail"); in lpsched_add_modify_printer()
/illumos-gate/usr/src/contrib/ast/src/lib/libcmd/
H A DMakefile48 $("#")include <shcmd.h>
H A DMamfile78 make ${PACKAGE_ast_INCLUDE}/shcmd.h implicit
81 done ${PACKAGE_ast_INCLUDE}/shcmd.h
472 exec - #include <shcmd.h>
487 prev ${PACKAGE_ast_INCLUDE}/shcmd.h implicit
489 prev ${PACKAGE_ast_INCLUDE}/shcmd.h implicit
/illumos-gate/usr/src/cmd/lp/include/
H A Dlp.h53 char *shcmd; /* shell command used to perform the alert */ member
/illumos-gate/usr/src/cmd/ast/libast/
H A DMakefile.defs40 sfio.h sfio_s.h sfio_t.h sfdisc.h shcmd.h \
/illumos-gate/usr/src/contrib/ast/src/lib/libast/
H A DMakefile36 sfio.h sfio_s.h sfio_t.h sfdisc.h shcmd.h \
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/
H A DMamfile92 make ${PACKAGE_ast_INCLUDE}/shcmd.h implicit
95 done ${PACKAGE_ast_INCLUDE}/shcmd.h dontcare
98 prev ${PACKAGE_ast_INCLUDE}/shcmd.h implicit
189 prev ${PACKAGE_ast_INCLUDE}/shcmd.h implicit

12