/titanic_50/usr/src/cmd/print/printmgr/com/sun/admin/pm/server/ |
H A D | NS.c | 210 char *printer; /* printer name or NULL */ member 283 ns_printer_t *printer; in _updateoldyp() local 308 if ((printer = (ns_printer_t *) in _updateoldyp() 313 printer->attributes = NULL; in _updateoldyp() 314 status = ns_printer_put(printer); in _updateoldyp() 316 (void) free(printer); in _updateoldyp() 320 if ((printer = (ns_printer_t *) in _updateoldyp() 323 ns_get_value_string("use", printer); in _updateoldyp() 326 printer->attributes = NULL; in _updateoldyp() 327 status = ns_printer_put(printer); in _updateoldyp() [all …]
|
/titanic_50/usr/src/lib/print/libprint/common/ |
H A D | sunPrinter.oc.conf.txt | 44 printer-charset-configured, 45 printer-charset-supported, 46 printer-color-supported, 47 printer-compression-supported, 48 printer-copies-supported, 49 printer-current-operator, 50 printer-delivery-orientation-supported, 51 printer-document-format-supported, 52 printer-finishings-supported, 53 printer-generated-natural-language-supported, [all …]
|
H A D | sunPrinter.at.conf.txt | 29 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 32 attribute printer-natural-language-configured 1.3.18.0.2.4.1119 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 36 attribute printer-make-and-model 1.3.18.0.2.4.1138 cis single 37 attribute printer-ipp-versions-supported 1.3.18.0.2.4.1133 cis 38 attribute printer-multiple-document-jobs-supported 1.3.18.0.2.4.1132 bin single [all …]
|
H A D | ns_cmn_printer.c | 69 ns_printer_t *printer; in ns_printer_create() local 71 if ((printer = (ns_printer_t *)calloc(1, sizeof (*printer))) != NULL) { in ns_printer_create() 72 printer->name = (char *)name; in ns_printer_create() 73 printer->aliases = (char **)aliases; in ns_printer_create() 74 printer->source = (char *)source; in ns_printer_create() 75 printer->attributes = (ns_kvp_t **)attributes; in ns_printer_create() 77 return (printer); in ns_printer_create() 102 ns_printer_match_name(ns_printer_t *printer, const char *name) in ns_printer_match_name() argument 104 if ((printer == NULL) || (printer->name == NULL) || (name == NULL)) in ns_printer_match_name() 107 if ((strcmp(printer->name, name) == 0) || in ns_printer_match_name() [all …]
|
H A D | ns_cmn_kvp.c | 120 ns_r_get_value(const char *key, const ns_printer_t *printer, int level) in ns_r_get_value() argument 124 if ((key == NULL) || (printer == NULL) || in ns_r_get_value() 125 (printer->attributes == NULL)) in ns_r_get_value() 132 if ((kvp = list_locate((void **)printer->attributes, in ns_r_get_value() 140 if (addr->printer == NULL) in ns_r_get_value() 141 addr->printer = strdup(printer->name); in ns_r_get_value() 147 for (attrs = printer->attributes; attrs != NULL && *attrs != NULL; in ns_r_get_value() 158 ns_printer_t *printer = in ns_r_get_value() local 161 if ((value = ns_r_get_value(key, printer, in ns_r_get_value() 164 ns_printer_destroy(printer); in ns_r_get_value() [all …]
|
H A D | ns.c | 77 ns_printer_destroy(ns_printer_t *printer) in ns_printer_destroy() argument 79 if (printer != NULL) { in ns_printer_destroy() 80 if (printer->attributes != NULL) { /* attributes */ in ns_printer_destroy() 83 list_iterate((void **)printer->attributes, in ns_printer_destroy() 85 free(printer->attributes); in ns_printer_destroy() 87 if (printer->aliases != NULL) { /* aliases */ in ns_printer_destroy() 88 free(printer->aliases); in ns_printer_destroy() 90 if (printer->name != NULL) /* primary name */ in ns_printer_destroy() 91 free(printer->name); in ns_printer_destroy() 92 free(printer); in ns_printer_destroy() [all …]
|
H A D | ns_bsd_addr.c | 59 bsd_addr_create(const char *server, const char *printer, const char *extension) in bsd_addr_create() argument 65 addr->printer = (char *)printer; in bsd_addr_create() 86 if ((addr->printer != NULL) || (addr->extension != NULL)) in bsd_addr_to_string() 88 if (addr->printer != NULL) in bsd_addr_to_string() 89 if (strlcat(buf, addr->printer, sizeof (buf)) >= sizeof (buf)) { in bsd_addr_to_string() 108 char **list, *tmp, *printer = NULL, *extension = NULL; in string_to_bsd_addr() local 117 printer = list[1]; in string_to_bsd_addr() 122 return (bsd_addr_create(list[0], printer, extension)); in string_to_bsd_addr() 262 ns_printer_t *printer = NULL; in posix_name() local 288 printer = ns_printer_create(strdup(name), NULL, in posix_name() [all …]
|
H A D | nss_convert.c | 75 _cvt_printer_to_entry(ns_printer_t *printer, char *buf, int buflen) in _cvt_printer_to_entry() argument 82 if ((printer == NULL) || (printer->attributes == NULL)) in _cvt_printer_to_entry() 85 if (snprintf(buf, buflen, "%s", printer->name) >= buflen) { in _cvt_printer_to_entry() 91 if ((printer->aliases != NULL) && (printer->aliases[0] != NULL)) { in _cvt_printer_to_entry() 92 char **alias = printer->aliases; in _cvt_printer_to_entry() 109 for (i = 0; printer->attributes[i] != NULL && bufferok; i++) { in _cvt_printer_to_entry() 110 ns_kvp_t *kvp = printer->attributes[i]; in _cvt_printer_to_entry() 147 ns_printer_t *printer = NULL; in _cvt_nss_entry_to_printer() local 163 printer = (ns_printer_t *)ns_printer_create( in _cvt_nss_entry_to_printer() 168 printer); in _cvt_nss_entry_to_printer() [all …]
|
/titanic_50/usr/src/cmd/lp/cmd/lpadmin/ |
H A D | do_mount.c | 64 void do_mount (printer, form, pwheel) in do_mount() argument 65 char *printer, in do_mount() 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); 117 if (form && *form && !is_form_allowed_printer(form, printer)) 118 LP_ERRMSG2 (WARNING, E_ADM_ICKFORM, form, printer); 140 inquire_printer_status (printer); 177 LP_ERRMSG2 (WARNING, E_ADM_ICKPWHEEL, pwheel, printer); 186 if (!a || !do_align(printer, form, pwheel)) [all …]
|
H A D | fromclass.c | 47 void fromclass (printer, class) in fromclass() argument 48 char *printer, in fromclass() 58 if (!searchlist(printer, pc->members)) { 59 LP_ERRMSG2 (ERROR, E_ADM_NOTMEM, printer, class); 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 [all …]
|
H A D | do_align.c | 80 int do_align (printer, form, pwheel) in do_align() argument 81 char *printer, in do_align() 147 req.destination = printer; 265 mount_unmount (S_MOUNT, printer, NB(form), NB(pwheel)); 270 disable (printer, CUZ_MOUNTING, 0); 273 accept (printer); 277 disable (printer, disable_reason, 1); 279 reject (printer, reject_reason); 318 accept (printer); /* someone snuck a reject in! */ 326 LP_ERRMSG1 (ERROR, E_LP_PGONE, printer); [all …]
|
/titanic_50/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, in _papi_job_submit_reference_or_validate() argument 146 if ((svc == NULL) || (printer == NULL) || (files == NULL) || in _papi_job_submit_reference_or_validate() 150 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 170 return (_papi_job_submit_reference_or_validate(handle, printer, in papiJobSubmit() 176 papiJobSubmitByReference(papi_service_t handle, char *printer, in papiJobSubmitByReference() argument 180 return (_papi_job_submit_reference_or_validate(handle, printer, in papiJobSubmitByReference() 186 papiJobValidate(papi_service_t handle, char *printer, in papiJobValidate() argument 190 return (_papi_job_submit_reference_or_validate(handle, printer, in papiJobValidate() 196 papiJobStreamOpen(papi_service_t handle, char *printer, in papiJobStreamOpen() argument [all …]
|
/titanic_50/usr/src/lib/print/libpapi-ipp/common/ |
H A D | job.c | 118 papi_attribute_t **attributes, char *printer, uint16_t type) in populate_job_request() argument 131 ipp_initialize_operational_attributes(svc, &operational, printer, -1); in populate_job_request() 169 char *printer, int32_t id, char last, uint16_t type) in send_document_uri() argument 178 ipp_initialize_operational_attributes(svc, &op, printer, id); in send_document_uri() 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() 292 populate_job_request(svc, &request, job_attributes, printer, req_type); 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 [all …]
|
/titanic_50/usr/src/cmd/print/bsd-sysv-commands/ |
H A D | cancel.c | 85 char *printer = printers[i]; in cancel_jobs_for_user() local 87 status = papiServiceCreate(&svc, printer, NULL, NULL, in cancel_jobs_for_user() 93 printer, verbose_papi_message(svc, status)); in cancel_jobs_for_user() 96 exit_code = berkeley_cancel_request(svc, stdout, printer, 1, in cancel_jobs_for_user() 140 char *printer = NULL; in main() local 147 (void) get_printer_id(av[c], &printer, &id); in main() 148 status = papiServiceCreate(&svc, printer, NULL, in main() 154 printer, in main() 160 printer = av[c]; in main() 173 rid = job_to_be_queried(svc, printer, id); in main() [all …]
|
H A D | lp.c | 74 char *printer = NULL; in main() local 134 printer = optarg; in main() 141 if ((get_printer_id(optarg, &printer, &modify) < 0) || 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() 263 status = papiServiceCreate(&svc, printer, NULL, NULL, cli_auth_callback, in main() 267 "Failed to contact service for %s: %s\n"), printer, in main() 279 status = papiJobModify(svc, printer, modify, list, &job); in main() [all …]
|
H A D | lprm.c | 62 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 D | lpmove.c | 99 char *printer = NULL; in main() local 102 (void) get_printer_id(av[c], &printer, &id); in main() 104 status = papiServiceCreate(&svc, printer, NULL, NULL, 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() 178 status = papiPrinterListJobs(svc, printer, NULL, in main() [all …]
|
H A D | lpq.c | 75 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 D | lpr.c | 72 char *printer = NULL; in main() local 93 printer = optarg; in main() 201 if ((printer == NULL) && in main() 202 ((printer = getenv("PRINTER")) == NULL) && in main() 203 ((printer = getenv("LPDEST")) == NULL)) in main() 204 printer = DEFAULT_DEST; in main() 233 status = papiServiceCreate(&svc, printer, NULL, NULL, cli_auth_callback, in main() 237 "Failed to contact service for %s: %s\n"), printer, in main() 243 status = papiJobValidate(svc, printer, list, in main() 246 status = jobSubmitSTDIN(svc, printer, prefetch, prefetch_len, in main() [all …]
|
/titanic_50/usr/src/cmd/lp/cmd/lpsched/ |
H A D | disp2.c | 58 char *printer; in s_load_printer() local 64 (void) getmessage(m, S_LOAD_PRINTER, &printer); in s_load_printer() 65 syslog(LOG_DEBUG, "s_load_printer(%s)", (printer ? printer : "NULL")); in s_load_printer() 67 if (!*printer) in s_load_printer() 70 else if (!(pp = Getprinter(printer))) { in s_load_printer() 81 } else if ((pps = search_pstatus(printer))) { in s_load_printer() 83 PRINTER *op = pps->printer; in s_load_printer() 85 pps->printer = pp; in s_load_printer() 203 pps->printer->name); in _unload_printer() 217 char *printer; in s_unload_printer() local [all …]
|
H A D | exec.c | 294 PSTATUS *printer; in exec() local 327 printer = va_arg(args, PSTATUS *); in exec() 328 request = printer->request; in exec() 329 ep = printer->exec; in exec() 333 printer = va_arg(args, PSTATUS *); in exec() 335 if (! ( printer->status & (PS_FORM_FAULT | PS_SHOW_FAULT))) { in exec() 338 ep = printer->fault_exec; in exec() 339 printerName = (printer->printer && printer->printer->name in exec() 340 ? printer->printer->name : "??"); in exec() 366 printer = va_arg(args, PSTATUS *); in exec() [all …]
|
H A D | disp3.c | 237 char *printer; in s_max_trays() local 243 (void) getmessage(m, S_MAX_TRAYS, &printer, &numTrays); in s_max_trays() 244 syslog(LOG_DEBUG, "s_max_trays(%s, %d)", (printer ? printer : "NULL"), in s_max_trays() 248 if (!*printer || !(pps = search_pstatus(printer))) in s_max_trays() 291 char *printer, *form, *pwheel_name; in s_mount() local 296 (void) getmessage(m, S_MOUNT, &printer, &form, &pwheel_name); in s_mount() 297 syslog(LOG_DEBUG, "s_mount(%s, %s, %s)", (printer ? printer : "NULL"), in s_mount() 304 else if (!*printer || !(pps = search_pstatus(printer))) in s_mount() 337 char *printer, *form, *pwheel_name; in s_mount_tray() local 343 (void) getmessage(m, S_MOUNT_TRAY, &printer, &form, &pwheel_name, in s_mount_tray() [all …]
|
/titanic_50/usr/src/cmd/lp/lib/access/ |
H A D | change.c | 69 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 …]
|
/titanic_50/usr/src/lib/print/libpapi-common/common/ |
H A D | papi.h | 335 papi_printer_t *printer); 338 papi_printer_t *printer); 341 papi_printer_t *printer); 355 extern papi_attribute_t **papiPrinterGetAttributeList(papi_printer_t printer); 356 extern void papiPrinterFree(papi_printer_t printer); 360 extern papi_status_t papiJobSubmit(papi_service_t handle, char *printer, 365 char *printer, 369 extern papi_status_t papiJobValidate(papi_service_t handle, char *printer, 374 char *printer, 384 extern papi_status_t papiJobQuery(papi_service_t handle, char *printer, [all …]
|
/titanic_50/usr/src/cmd/cmd-inet/usr.bin/pppd/ |
H A D | cbcp.c | 60 void (*printer) __P((void *, const char *, ...)), 222 cbcp_printpkt(p, plen, printer, arg) in cbcp_printpkt() argument 225 void (*printer) __P((void *, const char *, ...)); 232 printer(arg, "too short (%d<%d)", plen, HEADERLEN); 241 printer(arg, " %s", cbcp_codenames[code-1]); 243 printer(arg, " code=0x%x", code); 245 printer(arg, " id=0x%x", id); 248 printer(arg, " header length %d<%d", len, HEADERLEN); 252 printer(arg, " truncated (%d>%d)", len, plen); 268 printer(arg, " <"); [all …]
|