/illumos-gate/usr/src/cmd/print/printmgr/com/sun/admin/pm/server/ |
H A D | NS.c | 210 char *printer; /* printer name or NULL */ member in struct:ns_bsd_addr 212 char *pname; /* Local printer name */ 254 char *name; /* primary name of printer */ 255 char **aliases; /* aliases for printer */ 283 ns_printer_t *printer; local 308 if ((printer = (ns_printer_t *) 313 printer->attributes = NULL; 314 status = ns_printer_put(printer); 316 (void) free(printer); 457 ns_printer_t *printer; local [all...] |
/illumos-gate/usr/src/lib/print/libprint/common/ |
H A D | ns_cmn_printer.c | 53 * - primary name of printer 55 * - aliases for printer 62 * - pointer to printer object structure 69 ns_printer_t *printer; local 71 if ((printer = (ns_printer_t *)calloc(1, sizeof (*printer))) != NULL) { 72 printer->name = (char *)name; 73 printer->aliases = (char **)aliases; 74 printer->source = (char *)source; 75 printer 102 ns_printer_match_name(ns_printer_t *printer, const char *name) argument 139 ns_printer_name_list(const ns_printer_t *printer) argument [all...] |
H A D | ns.c | 66 * void ns_printer_destroy(ns_printer_t *printer) 68 * ns_printer_t *printer - a pointer to the printer "object" to destroy 70 * This function will free all of the memory associated with a printer 77 ns_printer_destroy(ns_printer_t *printer) argument 79 if (printer != NULL) { 80 if (printer->attributes != NULL) { /* attributes */ 83 list_iterate((void **)printer->attributes, 85 free(printer->attributes); 87 if (printer 117 ns_printer_t *printer = local 169 ns_printer_put(const ns_printer_t *printer) argument [all...] |
H A D | ns_cmn_kvp.c | 108 * ns_r_get_value(const char *key, const ns_printer_t *printer) 112 * const ns_printer_t *printer 113 * - printer to glean this from 120 ns_r_get_value(const char *key, const ns_printer_t *printer, int level) argument 124 if ((key == NULL) || (printer == NULL) || 125 (printer->attributes == NULL)) 132 if ((kvp = list_locate((void **)printer->attributes, 136 /* fill in an empty printer for a bsdaddr */ 140 if (addr->printer == NULL) 141 addr->printer 158 ns_printer_t *printer = local 178 ns_printer_t *printer = local 201 ns_get_value(const char *key, const ns_printer_t *printer) argument 212 ns_get_value_string(const char *key, const ns_printer_t *printer) argument 223 ns_set_value(const char *key, const void *value, ns_printer_t *printer) argument 235 ns_set_value_from_string(const char *key, const char *string, ns_printer_t *printer) argument [all...] |
H A D | ns_bsd_addr.c | 59 bsd_addr_create(const char *server, const char *printer, const char *extension) argument 65 addr->printer = (char *)printer; 86 if ((addr->printer != NULL) || (addr->extension != NULL)) 88 if (addr->printer != NULL) 89 if (strlcat(buf, addr->printer, sizeof (buf)) >= sizeof (buf)) { 108 char **list, *tmp, *printer = NULL, *extension = NULL; local 117 printer = list[1]; 122 return (bsd_addr_create(list[0], printer, extension)); 248 * This implements support for printer name 262 ns_printer_t *printer = NULL; local 388 ns_printer_t *printer; local 519 ns_printer_t *printer; local [all...] |
H A D | nss_convert.c | 30 * a printer object. 75 _cvt_printer_to_entry(ns_printer_t *printer, char *buf, int buflen) argument 82 if ((printer == NULL) || (printer->attributes == NULL)) 85 if (snprintf(buf, buflen, "%s", printer->name) >= buflen) { 91 if ((printer->aliases != NULL) && (printer->aliases[0] != NULL)) { 92 char **alias = printer->aliases; 109 for (i = 0; printer->attributes[i] != NULL && bufferok; i++) { 110 ns_kvp_t *kvp = printer 147 ns_printer_t *printer = NULL; local [all...] |
/illumos-gate/usr/src/cmd/lp/cmd/lpadmin/ |
H A D | fromclass.c | 47 void fromclass (printer, class) 48 char *printer, 58 if (!searchlist(printer, pc->members)) { 59 LP_ERRMSG2 (ERROR, E_ADM_NOTMEM, printer, class); 63 _fromclass (printer, class, pc); 72 void fromallclasses (printer) 73 char *printer; 79 if (searchlist(printer, pc->members)) 80 _fromclass (printer, pc->name, pc); 94 static void _fromclass (printer, clas [all...] |
H A D | do_mount.c | 64 void do_mount (printer, form, pwheel) 65 char *printer, 82 mount_unmount (S_UNMOUNT, printer, NAME_NONE, NAME_ANY); 86 mount_unmount (S_UNMOUNT, printer, NAME_NONE, ""); 89 mount_unmount (S_UNMOUNT, printer, "", NAME_ANY); 97 * See if the form will work on the printer. We do this even if 102 if (!s) { /* a local printer */ 115 * Is the form allowed on the printer? 117 if (form && *form && !is_form_allowed_printer(form, printer)) 118 LP_ERRMSG2 (WARNING, E_ADM_ICKFORM, form, printer); 244 do_max_trays(char *printer) argument [all...] |
H A D | do_align.c | 80 int do_align (printer, form, pwheel) 81 char *printer, 123 * the printer status from the Spooler. We'll be changing the 124 * status of the printer and queue and will have to restore 134 * lp -p printer -H immediate -f form -T type -S charset -c -P 1-N 147 req.destination = printer; 164 * catch interrupts so to restore the printer to its original 199 * printing, which gives us a connection to the printer 247 * - disable the printer, 254 * it is a flaw in our design. Disabling the printer wil [all...] |
/illumos-gate/usr/src/cmd/lp/lib/access/ |
H A D | change.c | 69 deny_user_printer(char **user_list, char *printer) argument 71 return (chgaccess(0, user_list, printer, Lp_A_Printers, UACCESSPREFIX)); 79 allow_user_printer(char **user_list, char *printer) argument 81 return (chgaccess(1, user_list, printer, Lp_A_Printers, UACCESSPREFIX)); 89 deny_form_printer(char **form_list, char *printer) argument 91 return (chgaccess(0, form_list, printer, Lp_A_Printers, FACCESSPREFIX)); 99 allow_form_printer(char **form_list, char *printer) argument 101 return (chgaccess(1, form_list, printer, Lp_A_Printers, FACCESSPREFIX)); 109 remove_paper_from_printer(char **form_list, char *printer) argument 111 return (chgaccess(0, form_list, printer, Lp_A_Printer 119 add_paper_to_printer(char **form_list, char *printer) argument [all...] |
H A D | allowed.c | 125 char * printer 128 is_user_allowed_printer (user, printer) 130 *printer; 136 if (loadaccess(Lp_A_Printers, printer, UACCESSPREFIX, &allow, &deny) == -1) 150 char * printer 153 is_form_allowed_printer (form, printer) 155 *printer; 161 if (loadaccess(Lp_A_Printers, printer, FACCESSPREFIX, &allow, &deny) == -1)
|
/illumos-gate/usr/src/cmd/print/bsd-sysv-commands/ |
H A D | lprm.c | 51 fprintf(stdout, gettext("Usage: %s [-P printer] (user|id ...)\n"), 62 char *printer = NULL; local 74 printer = optarg; 80 if ((printer == NULL) && 81 ((printer = getenv("PRINTER")) == NULL) && 82 ((printer = getenv("LPDEST")) == NULL)) 83 printer = DEFAULT_DEST; 85 status = papiServiceCreate(&svc, printer, NULL, NULL, cli_auth_callback, 90 printer, verbose_papi_message(svc, status)); 95 berkeley_cancel_request(svc, stdout, printer, [all...] |
H A D | accept.c | 81 char *printer = av[c]; local 83 status = papiServiceCreate(&svc, printer, NULL, NULL, 88 printer, verbose_papi_message(svc, status)); 92 status = papiPrinterResume(svc, printer); 96 printer); 100 "accepting requests.\n"), printer); 108 printer, verbose_papi_message(svc, status));
|
H A D | enable.c | 81 char *printer = av[c]; local 83 status = papiServiceCreate(&svc, printer, NULL, NULL, 88 printer, verbose_papi_message(svc, status)); 92 status = papiPrinterEnable(svc, printer); 94 printf(gettext("printer \"%s\" now enabled\n"), 95 printer); 99 printer); 108 printer, verbose_papi_message(svc, status));
|
H A D | reject.c | 85 char *printer = av[optind++]; local 87 status = papiServiceCreate(&svc, printer, NULL, NULL, 92 printer, verbose_papi_message(svc, status)); 96 status = papiPrinterPause(svc, printer, reason); 100 "accept requests\n"), printer); 104 "accepting requests.\n"), printer); 113 printer, verbose_papi_message(svc, status));
|
H A D | lpq.c | 51 fprintf(stdout, gettext("Usage: %s [-P printer] (user|id ...)\n"), 75 char *printer = NULL; local 93 printer = optarg; 105 if ((printer == NULL) && 106 ((printer = getenv("PRINTER")) == NULL) && 107 ((printer = getenv("LPDEST")) == NULL)) 108 printer = DEFAULT_DEST; 110 status = papiServiceCreate(&svc, printer, NULL, NULL, cli_auth_callback, 114 "Failed to contact service for %s: %s\n"), printer, 124 num_jobs = berkeley_queue_report(svc, stdout, printer, forma [all...] |
H A D | lpmove.c | 99 char *printer = NULL; local 102 (void) get_printer_id(av[c], &printer, &id); 104 status = papiServiceCreate(&svc, printer, NULL, NULL, 109 printer, verbose_papi_message(svc, status)); 114 if (move_job(svc, printer, id, destination) < 0) 116 } else { /* it's a printer */ 122 status = papiPrinterPause(svc, printer, message); 161 printer, 169 printer, 176 " requests\n"), printer); [all...] |
H A D | lpr.c | 56 gettext("Usage: %s [-P printer] [-# copies] [-C class] " 72 char *printer = NULL; local 93 printer = optarg; 201 if ((printer == NULL) && 202 ((printer = getenv("PRINTER")) == NULL) && 203 ((printer = getenv("LPDEST")) == NULL)) 204 printer = DEFAULT_DEST; 233 status = papiServiceCreate(&svc, printer, NULL, NULL, cli_auth_callback, 237 "Failed to contact service for %s: %s\n"), printer, 243 status = papiJobValidate(svc, printer, lis [all...] |
H A D | cancel.c | 49 fprintf(stdout, "Usage: %s [-u user] (printer|request-id ...)\n", name); 85 char *printer = printers[i]; local 87 status = papiServiceCreate(&svc, printer, NULL, NULL, 93 printer, verbose_papi_message(svc, status)); 96 exit_code = berkeley_cancel_request(svc, stdout, printer, 1, 140 char *printer = NULL; local 147 (void) get_printer_id(av[c], &printer, &id); 148 status = papiServiceCreate(&svc, printer, NULL, 154 printer, 160 printer [all...] |
H A D | common.h | 47 extern int get_printer_id(char *name, char **printer, int *id); 52 extern papi_status_t jobSubmitSTDIN(papi_service_t svc, char *printer, 64 extern int32_t job_to_be_queried(papi_service_t svc, char *printer, int32_t id);
|
/illumos-gate/usr/src/cmd/hal/probing/ |
H A D | Makefile | 26 SUBDIRS = storage volume printer network-printer acpi xkb
|
/illumos-gate/usr/src/cmd/hal/probing/network-printer/ |
H A D | Makefile | 27 PROG = hald-probe-network-printer 28 OBJS = probe-network-printer.o logger.o probe-snmp.o printer.o 29 SRCS = probe-network-printer.c 51 printer.o: ../../utils/printer.c 52 $(COMPILE.c) -o $@ ../../utils/printer.c
|
/illumos-gate/usr/src/cmd/hal/probing/printer/ |
H A D | Makefile | 28 PROG = hald-probe-printer 29 OBJS = probe-printer.o logger.o printer.o 30 SRCS = probe-printer.c 51 printer.o: ../../utils/printer.c 52 $(COMPILE.c) -o $@ ../../utils/printer.c
|
/illumos-gate/usr/src/lib/print/libpapi-dynamic/common/ |
H A D | job.c | 136 _papi_job_submit_reference_or_validate(papi_service_t handle, char *printer, argument 146 if ((svc == NULL) || (printer == NULL) || (files == NULL) || 150 if ((result = service_connect(svc, printer)) != PAPI_OK) 166 papiJobSubmit(papi_service_t handle, char *printer, argument 170 return (_papi_job_submit_reference_or_validate(handle, printer, 176 papiJobSubmitByReference(papi_service_t handle, char *printer, argument 180 return (_papi_job_submit_reference_or_validate(handle, printer, 186 papiJobValidate(papi_service_t handle, char *printer, argument 190 return (_papi_job_submit_reference_or_validate(handle, printer, 196 papiJobStreamOpen(papi_service_t handle, char *printer, argument 260 papiJobQuery(papi_service_t handle, char *printer, int32_t job_id, char **requested_attrs, papi_job_t *job) argument 287 papiJobMove(papi_service_t handle, char *printer, int32_t job_id, char *destination) argument 315 _papi_job_handle_printer_id(papi_service_t handle, char *printer, int32_t job_id, char *function) argument 336 papiJobCancel(papi_service_t handle, char *printer, int32_t job_id) argument 343 papiJobRelease(papi_service_t handle, char *printer, int32_t job_id) argument 350 papiJobRestart(papi_service_t handle, char *printer, int32_t job_id) argument 357 papiJobPromote(papi_service_t handle, char *printer, int32_t job_id) argument 364 papiJobCommit(papi_service_t handle, char *printer, int32_t job_id) argument 371 papiJobHold(papi_service_t handle, char *printer, int32_t job_id) argument 378 papiJobModify(papi_service_t handle, char *printer, int32_t job_id, papi_attribute_t **attributes, papi_job_t *job) argument 411 papiJobCreate(papi_service_t handle, char *printer, papi_attribute_t **job_attributes, papi_job_ticket_t *job_ticket, papi_job_t *job) argument 439 papiJobStreamAdd(papi_service_t handle, char *printer, int32_t id, papi_stream_t *stream) argument [all...] |
/illumos-gate/usr/src/lib/print/libipp-listener/ |
H A D | Makefile.com | 32 cups-move-job.o cups-reject-jobs.o disable-printer.o enable-printer.o \ 33 get-job-attributes.o get-jobs.o get-printer-attributes.o hold-job.o \ 34 ipp-listener.o pause-printer.o print-job.o purge-jobs.o release-job.o \ 35 restart-job.o resume-printer.o send-document.o set-job-attributes.o \ 36 set-printer-attributes.o validate-job.o
|