Home
last modified time | relevance | path

Searched refs:printer (Results 1 – 25 of 145) sorted by relevance

123456

/illumos-gate/usr/src/cmd/print/printmgr/com/sun/admin/pm/server/
H A DNS.c283 ns_printer_t *printer; in _updateoldyp() local
334 (void) free(printer); in _updateoldyp()
339 printer = (ns_printer_t *)malloc(sizeof (*printer)); in _updateoldyp()
340 memset(printer, 0, sizeof (*printer)); in _updateoldyp()
393 NULL, printer); in _updateoldyp()
429 printer = (ns_printer_t *)malloc(sizeof (*printer)); in _updateoldyp()
430 memset(printer, 0, sizeof (*printer)); in _updateoldyp()
539 printer = (ns_printer_t *)malloc(sizeof (*printer)); in _updateldap()
543 (void) memset(printer, 0, sizeof (*printer)); in _updateldap()
747 printer = (ns_printer_t *)malloc(sizeof (*printer)); in _updateldap()
[all …]
/illumos-gate/usr/src/lib/print/libprint/common/
H A DsunPrinter.oc.conf.txt54 printer-info,
57 printer-location,
61 printer-more-info,
63 printer-name,
80 printer-uri,
88 printer-uri,
104 printer-name
106 printer-aliases
113 printer-name
115 sun-printer-bsdaddr,
[all …]
H A DsunPrinter.at.conf.txt29 attribute printer-uri 1.3.18.0.2.4.1140 cis single
30 attribute printer-xri-supported 1.3.18.0.2.4.1107 cis
31 attribute printer-name 1.3.18.0.2.4.1135 cis single
33 attribute printer-location 1.3.18.0.2.4.1136 cis single
34 attribute printer-info 1.3.18.0.2.4.1139 cis single
35 attribute printer-more-info 1.3.18.0.2.4.1134 cis single
40 attribute printer-charset-supported 1.3.18.0.2.4.1131 cis
49 attribute printer-sides-supported 1.3.18.0.2.4.1123 cis
50 attribute printer-media-supported 1.3.18.0.2.4.1122 cis
62 attribute printer-aliases 1.3.18.0.2.4.1108 cis
[all …]
H A Dns_cmn_printer.c65 ns_printer_t *printer; in ns_printer_create() local
67 if ((printer = (ns_printer_t *)calloc(1, sizeof (*printer))) != NULL) { in ns_printer_create()
68 printer->name = (char *)name; in ns_printer_create()
69 printer->aliases = (char **)aliases; in ns_printer_create()
70 printer->source = (char *)source; in ns_printer_create()
73 return (printer); in ns_printer_create()
100 if ((printer == NULL) || (printer->name == NULL) || (name == NULL)) in ns_printer_match_name()
103 if ((strcmp(printer->name, name) == 0) || in ns_printer_match_name()
104 (list_locate((void **)printer->aliases, in ns_printer_match_name()
141 if ((printer == NULL) || (printer->name == NULL)) in ns_printer_name_list()
[all …]
H A Dns_cmn_kvp.c125 if ((key == NULL) || (printer == NULL) || in ns_r_get_value()
126 (printer->attributes == NULL)) in ns_r_get_value()
141 if (addr->printer == NULL) in ns_r_get_value()
142 addr->printer = strdup(printer->name); in ns_r_get_value()
159 ns_printer_t *printer = in ns_r_get_value() local
165 ns_printer_destroy(printer); in ns_r_get_value()
179 ns_printer_t *printer = in ns_r_get_value() local
186 ns_printer_destroy(printer); in ns_r_get_value()
237 ns_printer_t *printer) in ns_set_value_from_string() argument
239 if (printer == NULL) in ns_set_value_from_string()
[all …]
H A Dns.c77 ns_printer_destroy(ns_printer_t *printer) in ns_printer_destroy() argument
79 if (printer != NULL) { in ns_printer_destroy()
83 free(printer->attributes); in ns_printer_destroy()
86 free(printer->aliases); in ns_printer_destroy()
89 free(printer->name); in ns_printer_destroy()
90 free(printer); in ns_printer_destroy()
115 ns_printer_t *printer = in ns_printer_get_list() local
120 (void *)printer); in ns_printer_get_list()
167 ns_printer_put(const ns_printer_t *printer) in ns_printer_put() argument
172 if ((printer == NULL) || (printer->source == NULL)) in ns_printer_put()
[all …]
H A Dns_bsd_addr.c63 addr->printer = (char *)printer; in bsd_addr_create()
115 printer = list[1]; in string_to_bsd_addr()
291 return (printer); in posix_name()
315 if ((a1->printer == NULL) || (a2->printer == NULL)) in ns_bsd_addr_cmp()
316 return (a1->printer != a2->printer); in ns_bsd_addr_cmp()
318 return (strcmp(a1->printer, a2->printer)); in ns_bsd_addr_cmp()
348 if ((a1->printer == NULL) || (a2->printer == NULL)) { in ns_bsd_addr_cmp_local()
349 return (a1->printer != a2->printer); in ns_bsd_addr_cmp_local()
352 rc = strcmp(a1->printer, a2->printer); in ns_bsd_addr_cmp_local()
381 ns_printer_t *printer; in ns_bsd_addr_get_name() local
[all …]
H A Dnss_convert.c80 if ((printer == NULL) || (printer->attributes == NULL)) in _cvt_printer_to_entry()
83 if (snprintf(buf, buflen, "%s", printer->name) >= buflen) { in _cvt_printer_to_entry()
89 if ((printer->aliases != NULL) && (printer->aliases[0] != NULL)) { in _cvt_printer_to_entry()
90 char **alias = printer->aliases; in _cvt_printer_to_entry()
107 for (i = 0; printer->attributes[i] != NULL && bufferok; i++) { in _cvt_printer_to_entry()
108 ns_kvp_t *kvp = printer->attributes[i]; in _cvt_printer_to_entry()
141 ns_printer_t *printer = NULL; in _cvt_nss_entry_to_printer() local
157 printer = (ns_printer_t *)ns_printer_create( in _cvt_nss_entry_to_printer()
162 printer); in _cvt_nss_entry_to_printer()
202 (void) ns_set_value_from_string(key, buf, printer); in _cvt_nss_entry_to_printer()
[all …]
/illumos-gate/usr/src/cmd/lp/cmd/lpadmin/
H A Ddo_mount.c64 void do_mount (printer, form, pwheel) in do_mount() argument
65 char *printer, in do_mount()
140 inquire_printer_status (printer);
186 if (!a || !do_align(printer, form, pwheel))
194 char *printer,
204 send_message(type, printer, form, pwheel);
219 LP_ERRMSG1 (ERROR, E_ADM_NODEST, printer);
244 do_max_trays(char *printer) in do_max_trays() argument
249 send_message(S_MAX_TRAYS, printer, t); in do_max_trays()
293 char *printer; in inquire_printer_status()
[all …]
H A Dfromclass.c47 void fromclass (printer, class) in fromclass() argument
48 char *printer, in fromclass()
58 if (!searchlist(printer, pc->members)) {
63 _fromclass (printer, class, pc);
72 void fromallclasses (printer) in fromallclasses() argument
73 char *printer; in fromallclasses()
79 if (searchlist(printer, pc->members))
80 _fromclass (printer, pc->name, pc);
94 static void _fromclass (printer, class, pc) in _fromclass() argument
95 char *printer, in _fromclass()
[all …]
H A Ddo_align.c82 char *printer, in do_align()
148 req.destination = printer;
274 accept (printer);
368 enable (printer);
383 enable (printer);
482 static void accept (printer) in accept() argument
483 char *printer; in accept()
511 char *printer, in reject()
540 static void enable (printer) in enable() argument
541 char *printer; in enable()
[all …]
/illumos-gate/usr/src/lib/print/libpapi-dynamic/common/
H A Djob.c150 if ((result = service_connect(svc, printer)) != PAPI_OK) in _papi_job_submit_reference_or_validate()
166 papiJobSubmit(papi_service_t handle, char *printer, in papiJobSubmit() argument
186 papiJobValidate(papi_service_t handle, char *printer, in papiJobValidate() argument
196 papiJobStreamOpen(papi_service_t handle, char *printer, in papiJobStreamOpen() argument
207 if ((result = service_connect(svc, printer)) != PAPI_OK) in papiJobStreamOpen()
268 if ((svc == NULL) || (printer == NULL)) in papiJobQuery()
294 if ((svc == NULL) || (printer == NULL) || (job_id < 0)) in papiJobMove()
316 char *printer, int32_t job_id, char *function) in _papi_job_handle_printer_id() argument
322 if ((svc == NULL) || (printer == NULL) || (job_id < 0)) in _papi_job_handle_printer_id()
411 papiJobCreate(papi_service_t handle, char *printer, in papiJobCreate() argument
[all …]
/illumos-gate/usr/src/lib/print/libpapi-ipp/common/
H A Djob.c169 char *printer, int32_t id, char last, uint16_t type) in send_document_uri() argument
199 internal_job_submit(papi_service_t handle, char *printer, in internal_job_submit() argument
214 if ((svc == NULL) || (printer == NULL) || (job == NULL)) in internal_job_submit()
277 if ((result = service_connect(svc, printer)) != PAPI_OK) in internal_job_submit()
325 printer, id, (files[i+1]?0:1), in internal_job_submit()
335 papiJobSubmit(papi_service_t handle, char *printer, in papiJobSubmit() argument
353 papiJobValidate(papi_service_t handle, char *printer, in papiJobValidate() argument
362 papiJobStreamOpen(papi_service_t handle, char *printer, in papiJobStreamOpen() argument
482 if ((svc == NULL) || (printer == NULL)) in papiJobQuery()
523 char *printer, int32_t job_id, uint16_t type) in _job_cancel_hold_release_restart_promote() argument
[all …]
/illumos-gate/usr/src/cmd/print/bsd-sysv-commands/
H A Dcancel.c85 char *printer = printers[i]; in cancel_jobs_for_user() local
140 char *printer = NULL; in main() local
154 printer, in main()
160 printer = av[c]; in main()
173 rid = job_to_be_queried(svc, printer, id); in main()
182 printer, id, gettext("not-found")); in main()
207 "ListJobs %s: %s\n"), printer, in main()
217 printer, id); in main()
235 printer, rid, mesg); in main()
238 printer, id, mesg); in main()
[all …]
H A Dlp.c74 char *printer = NULL; in main() local
134 printer = optarg; in main()
226 if ((printer == NULL) && in main()
227 ((printer = getenv("PRINTER")) == NULL) && in main()
228 ((printer = getenv("LPDEST")) == NULL)) in main()
229 printer = DEFAULT_DEST; in main()
284 status = papiJobValidate(svc, printer, list, in main()
290 status = papiJobSubmit(svc, printer, list, in main()
296 fprintf(stderr, gettext("%s: %s\n"), printer, in main()
307 if (printer == NULL) in main()
[all …]
H A Dlprm.c62 char *printer = NULL; in main() local
74 printer = optarg; in main()
80 if ((printer == NULL) && in main()
81 ((printer = getenv("PRINTER")) == NULL) && in main()
82 ((printer = getenv("LPDEST")) == NULL)) in main()
83 printer = DEFAULT_DEST; in main()
85 status = papiServiceCreate(&svc, printer, NULL, NULL, cli_auth_callback, in main()
90 printer, verbose_papi_message(svc, status)); in main()
95 berkeley_cancel_request(svc, stdout, printer, in main()
H A Dlpmove.c99 char *printer = NULL; in main() local
102 (void) get_printer_id(av[c], &printer, &id); in main()
109 printer, verbose_papi_message(svc, status)); in main()
114 if (move_job(svc, printer, id, destination) < 0) in main()
122 status = papiPrinterPause(svc, printer, message); in main()
161 printer, in main()
169 printer, in main()
176 " requests\n"), printer); in main()
183 printer, in main()
191 if (move_job(svc, printer, in main()
[all …]
H A Dlpq.c75 char *printer = NULL; in main() local
93 printer = optarg; in main()
105 if ((printer == NULL) && in main()
106 ((printer = getenv("PRINTER")) == NULL) && in main()
107 ((printer = getenv("LPDEST")) == NULL)) in main()
108 printer = DEFAULT_DEST; in main()
110 status = papiServiceCreate(&svc, printer, NULL, NULL, cli_auth_callback, in main()
114 "Failed to contact service for %s: %s\n"), printer, in main()
124 num_jobs = berkeley_queue_report(svc, stdout, printer, format, in main()
H A Dlpr.c71 char *printer = NULL; in main() local
91 printer = optarg; in main()
198 if ((printer == NULL) && in main()
199 ((printer = getenv("PRINTER")) == NULL) && in main()
200 ((printer = getenv("LPDEST")) == NULL)) in main()
201 printer = DEFAULT_DEST; in main()
234 "Failed to contact service for %s: %s\n"), printer, in main()
240 status = papiJobValidate(svc, printer, list, in main()
246 status = papiJobSubmitByReference(svc, printer, list, in main()
249 status = papiJobSubmit(svc, printer, list, in main()
[all …]
/illumos-gate/usr/src/cmd/lp/cmd/lpsched/
H A Ddisp2.c58 char *printer; in s_load_printer() local
65 syslog(LOG_DEBUG, "s_load_printer(%s)", (printer ? printer : "NULL")); in s_load_printer()
67 if (!*printer) in s_load_printer()
85 pps->printer = pp; in s_load_printer()
217 char *printer; in s_unload_printer() local
224 (printer ? printer : "NULL")); in s_unload_printer()
226 if (!*printer || STREQU(printer, NAME_ALL)) in s_unload_printer()
334 char *printer; in s_inquire_printer_status() local
340 if (!*printer || STREQU(printer, NAME_ALL)) { in s_inquire_printer_status()
574 char *printer; in s_paper_allowed() local
[all …]
H A Dexec.c337 printerName = (printer->printer && printer->printer->name in exec()
564 if (printer->printer->dial_info) in exec()
567 printer->printer); in exec()
574 printer->printer); in exec()
579 printer->printer->device); in exec()
582 printer->printer->device); in exec()
666 if (!(printer->printer->daisy)) { in exec()
687 printer->printer->char_sets in exec()
745 printer->printer->name); in exec()
883 if (printer->printer->options) { in exec()
[all …]
H A Ddisp3.c237 char *printer; in s_max_trays() local
248 if (!*printer || !(pps = search_pstatus(printer))) in s_max_trays()
304 else if (!*printer || !(pps = search_pstatus(printer))) in s_mount()
346 (printer ? printer : "NULL"), (form ? form : "NULL"), in s_mount_tray()
353 else if (!*printer || !(pps = search_pstatus(printer))) in s_mount_tray()
390 char *printer, in s_unmount() local
398 (printer ? printer : "NULL"), (form ? form : "NULL"), in s_unmount()
407 else if (!*printer || !(pps = search_pstatus(printer))) in s_unmount()
440 char *printer, in s_unmount_tray() local
452 (printer ? printer : "NULL"), (form ? form : "NULL"), in s_unmount_tray()
[all …]
/illumos-gate/usr/src/cmd/lp/lib/access/
H A Dchange.c69 deny_user_printer(char **user_list, char *printer) in deny_user_printer() argument
71 return (chgaccess(0, user_list, printer, Lp_A_Printers, UACCESSPREFIX)); in deny_user_printer()
79 allow_user_printer(char **user_list, char *printer) in allow_user_printer() argument
81 return (chgaccess(1, user_list, printer, Lp_A_Printers, UACCESSPREFIX)); in allow_user_printer()
89 deny_form_printer(char **form_list, char *printer) in deny_form_printer() argument
91 return (chgaccess(0, form_list, printer, Lp_A_Printers, FACCESSPREFIX)); in deny_form_printer()
99 allow_form_printer(char **form_list, char *printer) in allow_form_printer() argument
101 return (chgaccess(1, form_list, printer, Lp_A_Printers, FACCESSPREFIX)); in allow_form_printer()
109 remove_paper_from_printer(char **form_list, char *printer) in remove_paper_from_printer() argument
111 return (chgaccess(0, form_list, printer, Lp_A_Printers, PACCESSPREFIX)); in remove_paper_from_printer()
[all …]
/illumos-gate/usr/src/lib/print/libpapi-common/common/
H A Dpapi.h335 papi_printer_t *printer);
338 papi_printer_t *printer);
341 papi_printer_t *printer);
356 extern void papiPrinterFree(papi_printer_t printer);
365 char *printer,
374 char *printer,
391 extern papi_status_t papiJobMove(papi_service_t handle, char *printer,
395 extern papi_status_t papiJobHold(papi_service_t handle, char *printer,
404 extern char *papiJobGetPrinterName(papi_job_t printer);
405 extern int32_t papiJobGetId(papi_job_t printer);
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/
H A Dcbcp.c215 cbcp_printpkt(p, plen, printer, arg) in cbcp_printpkt() argument
236 printer(arg, " code=0x%x", code);
238 printer(arg, " id=0x%x", id);
261 printer(arg, " <");
278 printer(arg, " delay=%d", cichar);
285 printer(arg, " (type %d?)", cichar);
288 printer(arg, " '%.*s'", alen, p);
290 printer(arg, " null");
294 printer(arg, ">");
303 printer(arg, "%8B ...", p);
[all …]

123456