/illumos-gate/usr/src/lib/print/libprint/common/ |
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_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_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 | 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...] |
H A D | nss_write.c | 91 _file_put_printer(const char *file, const ns_printer_t *printer) argument 152 if (!((strcmp(printer->name, "all") == 0) && 153 (printer->attributes == NULL))) { 156 (void) _cvt_printer_to_entry((ns_printer_t *)printer, 164 if (ns_printer_match_name(tmp, printer->name) 194 * Support for writing a printer into the FILES /etc/printers.conf 198 files_put_printer(const ns_printer_t *printer) argument 202 return (_file_put_printer(file, printer)); 206 * Support for writing a printer into the NIS printers.conf.byname 246 nis_put_printer(const ns_printer_t *printer) argument [all...] |
/illumos-gate/usr/src/cmd/print/bsd-sysv-commands/ |
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 | 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 | 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 | 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 | disable.c | 124 char *printer = av[optind++]; local 126 status = papiServiceCreate(&svc, printer, NULL, NULL, 131 printer, verbose_papi_message(svc, status)); 135 status = papiPrinterDisable(svc, printer, reason); 137 printf(gettext("printer \"%s\" now disabled\n"), 138 printer); 142 printer); 151 printer, verbose_papi_message(svc, status)); 157 cancel_active_job(svc, printer);
|
H A D | lp.c | 74 char *printer = NULL; local 134 printer = optarg; 141 if ((get_printer_id(optarg, &printer, &modify) < 0) || 226 if ((printer == NULL) && 227 ((printer = getenv("PRINTER")) == NULL) && 228 ((printer = getenv("LPDEST")) == NULL)) 229 printer = DEFAULT_DEST; 263 status = papiServiceCreate(&svc, printer, NULL, NULL, cli_auth_callback, 267 "Failed to contact service for %s: %s\n"), printer, 279 status = papiJobModify(svc, printer, modif [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...] |
/illumos-gate/usr/src/cmd/lp/cmd/lpadmin/ |
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...] |
/illumos-gate/usr/src/lib/print/libpapi-dynamic/common/ |
H A D | papi_impl.h | 74 papi_printer_t *printer; member in struct:__anon4326
|
/illumos-gate/usr/src/lib/print/libpapi-lpd/common/ |
H A D | papi_impl.h | 64 printer_t *printer; member in struct:__anon4335 70 uri_t *uri; /* printer uri */ 71 cache_t *cache; /* printer/job cache */
|
H A D | printer.c | 28 /* $Id: printer.c 149 2006-04-25 16:55:01Z njacobs $ */ 54 papi_printer_t *printer) 60 if ((svc == NULL) || (name == NULL) || (printer == NULL)) 64 *printer = NULL; 66 if ((contains("printer-state", requested_attrs) == 1) || 67 (contains("printer-state-reasons", requested_attrs) == 1)) 69 (printer_t **)printer); 71 if ((status == PAPI_OK) && (*printer == NULL)) { 74 *printer = p = calloc(1, sizeof (*p)); 77 PAPI_ATTR_APPEND, "printer 51 papiPrinterQuery(papi_service_t handle, char *name, char **requested_attrs, papi_attribute_t **job_attributes, papi_printer_t *printer) argument 129 papiPrinterGetAttributeList(papi_printer_t printer) argument 140 papiPrinterFree(papi_printer_t printer) argument [all...] |
/illumos-gate/usr/src/cmd/print/lpget/ |
H A D | lpget.c | 52 gettext("Usage: %s [-k key] [list|(printer) ...]\n"), 73 display_value(ns_printer_t *printer, char *name, char **keys) argument 77 if (printer != NULL) { 83 printer); 88 ns_kvp_t **list = printer->attributes; 90 for (list = printer->attributes; 98 printer);
|
/illumos-gate/usr/src/cmd/logadm/ |
H A D | lut.c | 171 printer(const char *lhs, void *rhs, void *arg) function 200 lut_walk(r, printer, r); 207 lut_walk(dupr, printer, dupr);
|
/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 | loadaccess.c | 59 load_userprinter_access(char *printer, char ***pallow, char ***pdeny) argument 61 return (loadaccess(Lp_A_Printers, printer, UACCESSPREFIX, pallow, 70 load_formprinter_access(char *printer, char ***pallow, char ***pdeny) argument 72 return (loadaccess(Lp_A_Printers, printer, FACCESSPREFIX, pallow, 81 load_paperprinter_access(char *printer, char ***pallow, char ***pdeny) argument 83 return (loadaccess(Lp_A_Printers, printer, PACCESSPREFIX, pallow,
|
/illumos-gate/usr/src/cmd/print/lpset/ |
H A D | lpset.c | 90 "[-a key=value] [-d key] (printer)\n"), 108 *printer = NULL, local 177 printer = av[optind]; 179 if (strchr(printer, ':') != NULL) { 182 printer); 247 /* get the printer object */ 248 if ((printer_obj = ns_printer_get_name(printer, ins)) == NULL) { 251 ("%s: unknown printer\n"), printer); 257 "could not initialize printer objec [all...] |
/illumos-gate/usr/src/cmd/print/printmgr/com/sun/admin/pm/client/ |
H A D | pmAccess.java | 59 String printer = null; field in class:pmAccess 196 printer = pnameText.getText().trim(); 200 if (printer.equals("")) { 207 if (!Valid.remotePrinterName(printer)) { 209 Debug.message("CLNT:pmAccess:Printer name invalid: " + printer); 251 exist = PrinterUtil.exists(printer, mytop.ns); 288 // Set the printer attributes 289 newpr.setPrinterName(printer); 348 "Continue.creating.access.for.this.printer?")); 393 Debug.warning("CLNT:pmAccess:printer exist [all...] |