Searched refs:printer (Results 1 - 25 of 114) sorted by relevance

12345

/illumos-gate/usr/src/lib/print/libprint/common/
H A Dns_cmn_printer.c49 * - primary name of printer
51 * - aliases for printer
58 * - pointer to printer object structure
65 ns_printer_t *printer; local
67 if ((printer = (ns_printer_t *)calloc(1, sizeof (*printer))) != NULL) {
68 printer->name = (char *)name;
69 printer->aliases = (char **)aliases;
70 printer->source = (char *)source;
71 printer
98 ns_printer_match_name(ns_printer_t *printer, const char *name) argument
137 ns_printer_name_list(const ns_printer_t *printer) argument
[all...]
H A Dns.c66 * 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 */
81 list_iterate((void **)printer->attributes,
83 free(printer->attributes);
85 if (printer
115 ns_printer_t *printer = local
167 ns_printer_put(const ns_printer_t *printer) argument
[all...]
H A Dns_cmn_kvp.c109 * ns_r_get_value(const char *key, const ns_printer_t *printer)
113 * const ns_printer_t *printer
114 * - printer to glean this from
121 ns_r_get_value(const char *key, const ns_printer_t *printer, int level) argument
125 if ((key == NULL) || (printer == NULL) ||
126 (printer->attributes == NULL))
133 if ((kvp = list_locate((void **)printer->attributes,
137 /* fill in an empty printer for a bsdaddr */
141 if (addr->printer == NULL)
142 addr->printer
159 ns_printer_t *printer = local
179 ns_printer_t *printer = local
202 ns_get_value(const char *key, const ns_printer_t *printer) argument
213 ns_get_value_string(const char *key, const ns_printer_t *printer) argument
224 ns_set_value(const char *key, const void *value, ns_printer_t *printer) argument
236 ns_set_value_from_string(const char *key, const char *string, ns_printer_t *printer) argument
[all...]
H A Dns_bsd_addr.c57 bsd_addr_create(const char *server, const char *printer, const char *extension) argument
63 addr->printer = (char *)printer;
84 if ((addr->printer != NULL) || (addr->extension != NULL))
86 if (addr->printer != NULL)
87 if (strlcat(buf, addr->printer, sizeof (buf)) >= sizeof (buf)) {
106 char **list, *tmp, *printer = NULL, *extension = NULL; local
115 printer = list[1];
120 return (bsd_addr_create(list[0], printer, extension));
246 * This implements support for printer name
260 ns_printer_t *printer = NULL; local
381 ns_printer_t *printer; local
501 ns_printer_t *printer; local
[all...]
H A Dnss_convert.c28 * a printer object.
73 _cvt_printer_to_entry(ns_printer_t *printer, char *buf, int buflen) argument
80 if ((printer == NULL) || (printer->attributes == NULL))
83 if (snprintf(buf, buflen, "%s", printer->name) >= buflen) {
89 if ((printer->aliases != NULL) && (printer->aliases[0] != NULL)) {
90 char **alias = printer->aliases;
107 for (i = 0; printer->attributes[i] != NULL && bufferok; i++) {
108 ns_kvp_t *kvp = printer
141 ns_printer_t *printer = NULL; local
[all...]
/illumos-gate/usr/src/cmd/print/printmgr/com/sun/admin/pm/server/
H A DNS.c210 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/cmd/lp/cmd/lpadmin/
H A Dfromclass.c47 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 Ddo_mount.c64 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 Ddo_align.c81 int do_align (printer, form, pwheel)
82 char *printer,
124 * the printer status from the Spooler. We'll be changing the
125 * status of the printer and queue and will have to restore
135 * lp -p printer -H immediate -f form -T type -S charset -c -P 1-N
148 req.destination = printer;
165 * catch interrupts so to restore the printer to its original
200 * printing, which gives us a connection to the printer
248 * - disable the printer,
255 * it is a flaw in our design. Disabling the printer wil
[all...]
/illumos-gate/usr/src/cmd/lp/lib/access/
H A Dchange.c69 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 Dallowed.c125 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 Dlprm.c51 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 Daccept.c81 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 Denable.c81 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 Dreject.c85 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 Dlpq.c51 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 Dlpmove.c99 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 Dlpr.c55 gettext("Usage: %s [-P printer] [-# copies] [-C class] "
71 char *printer = NULL; local
91 printer = optarg;
198 if ((printer == NULL) &&
199 ((printer = getenv("PRINTER")) == NULL) &&
200 ((printer = getenv("LPDEST")) == NULL))
201 printer = DEFAULT_DEST;
230 status = papiServiceCreate(&svc, printer, NULL, NULL, cli_auth_callback,
234 "Failed to contact service for %s: %s\n"), printer,
240 status = papiJobValidate(svc, printer, lis
[all...]
H A Dcancel.c49 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 Dcommon.h47 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 DMakefile26 SUBDIRS = storage volume printer network-printer acpi xkb
/illumos-gate/usr/src/cmd/hal/probing/network-printer/
H A DMakefile27 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 DMakefile26 PROG = hald-probe-printer
27 OBJS = probe-printer.o logger.o printer.o
28 SRCS = probe-printer.c
49 printer.o: ../../utils/printer.c
50 $(COMPILE.c) -o $@ ../../utils/printer.c
/illumos-gate/usr/src/lib/print/libpapi-dynamic/common/
H A Djob.c136 _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 DMakefile.com32 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

Completed in 225 milliseconds

12345