/freebsd-13-stable/usr.sbin/lpr/lpc/ |
H A D | lpc.h | 39 struct printer; 49 * initialization work for generic-printer cmds: */ 51 /* routine to do the work for generic-printer cmds: */ 52 void (*c_generic)(struct printer *);
|
H A D | extern.h | 48 void abort_q(struct printer *_pp); 51 void clean_q(struct printer *_pp); 52 void disable_q(struct printer *_pp); 54 void down_q(struct printer *_pp); 55 void enable_q(struct printer *_pp); 56 void generic(void (*_specificrtn)(struct printer *_pp), int _cmdopts, 61 void restart_q(struct printer *_pp); 63 void setstatus_q(struct printer *_pp); 64 void start_q(struct printer *_pp); 65 void status(struct printer *_p [all...] |
H A D | cmds.c | 49 * lpc -- line printer control program -- commands: 88 static void upstat(struct printer *_pp, const char *_msg, int _notify); 110 generic(void (*specificrtn)(struct printer *_pp), int cmdopts, 114 struct printer myprinter, *pp; 121 * that they give will be processed as a printer name. 123 printf("usage: %s {all | printer ...}", argv[0]); 126 printf(" or: down {all | printer} [<text> ...]"); 144 * only the parameters which have to do with printer names. 170 printf("error: No printer name(s) specified before" 172 printf("usage: %s {all | printer [all...] |
/freebsd-13-stable/usr.sbin/lpr/lpd/ |
H A D | extern.h | 40 struct printer; 44 void printjob(struct printer *_pp);
|
H A D | recvjob.c | 49 * Receive printer jobs from the network, queue them and 50 * start the printer daemon. 88 static int readfile(struct printer *_pp, char *_file, size_t _size); 89 static int readjob(struct printer *_pp); 93 recvjob(const char *printer) argument 97 struct printer myprinter, *pp = &myprinter; 100 * Perform lookup for printer name or abbreviation 103 status = getprintcap(printer, pp); 106 frecverr("cannot open printer description file"); 109 frecverr("unknown printer [all...] |
H A D | printjob.c | 134 static void banner(struct printer *_pp, char *_name1, char *_name2); 135 static int dofork(const struct printer *_pp, int _action); 137 static int execfilter(struct printer *_pp, char *_f_cmd, char **_f_av, 139 static void init(struct printer *_pp); 140 static void openpr(const struct printer *_pp); 141 static void opennet(const struct printer *_pp); 142 static void opentty(const struct printer *_pp); 143 static void openrem(const struct printer *pp); 144 static int print(struct printer *_pp, int _format, char *_file); 145 static int printit(struct printer *_p 1749 startprinting(const char *printer) argument [all...] |
/freebsd-13-stable/usr.sbin/lpr/lpq/ |
H A D | lpq.c | 55 * -P used to identify printer as per lpr/lprm 79 static int ckqueue(const struct printer *_pp); 87 const char *printer; local 88 struct printer myprinter, *pp = &myprinter; 90 printer = NULL; 108 case 'P': /* printer name */ 109 printer = optarg; 116 if (!aflag && printer == NULL && (printer = getenv("PRINTER")) == NULL) 117 printer [all...] |
/freebsd-13-stable/usr.sbin/lpr/lprm/ |
H A D | lprm.c | 92 const char *printer; local 96 printer = NULL; 124 printer = &arg[2]; 127 printer = *++argv; 152 if (printer == NULL && (printer = getenv("PRINTER")) == NULL) 153 printer = DEFLP; 155 rmjob(printer);
|
/freebsd-13-stable/usr.sbin/lpr/common_source/ |
H A D | lp.h | 50 struct printer { struct 51 char *printer; /* printer name */ member in struct:printer 76 char *remote_queue; /* RP: remote printer name */ 135 struct printer prtr; /* which printer is it for? */ 152 * Global definitions for the line printer system. 275 char *checkremote(struct printer *_pp); 279 void displayq(struct printer *_pp, int _format); 281 void fatal(const struct printer *_p [all...] |
H A D | printcap.c | 74 static int getprintcap_int(char *_bp, struct printer *_pp); 88 * Read the printcap database for printer `printer' into the 89 * struct printer pointed by `pp'. Return values are as for 99 getprintcap(const char *printer, struct printer *pp) argument 104 if ((status = cgetent(&bp, printcapdb, printer)) < 0) 145 firstprinter(struct printer *pp, int *error) 167 nextprinter(struct printer *pp, int *error) 209 * Also attempt to figure out the canonical name of the printer [all...] |
H A D | startdaemon.c | 55 * Tell the printer daemon that there are new files in the spool directory. 59 startdaemon(const struct printer *pp) 91 if (writel(s, "\1", pp->printer, "\n", (char *)0) <= 0) {
|
H A D | rmjob.c | 79 rmjob(const char *printer) argument 85 struct printer myprinter, *pp = &myprinter; 88 if ((i = getprintcap(printer, pp)) < 0) 123 * Check for an active printer daemon (in which case we 132 fatal(pp, "cannot kill printer daemon"); 142 * Restart the printer daemon if it was killed 145 fatal(pp, "cannot restart printer daemon\n"); 155 lockchk(struct printer *pp, char *slockf) 193 process(const struct printer *pp, char *file) 306 rmremote(const struct printer *p [all...] |
H A D | common.c | 70 * Routines and data common to all the line printer functions. 120 getq(const struct printer *pp, struct jobqueue *(*namelist[])) 277 fatal((struct printer *)0, /* fatal() knows how to deal */ 285 lock_file_name(const struct printer *pp, char *buf, size_t len) 303 status_file_name(const struct printer *pp, char *buf, size_t len) 382 okmsg = "printer and queuing disabled"; 527 trstat_init(struct printer *pp, const char *fname, int filenum) 562 trstat_write(struct printer *pp, tr_sendrecv sendrecv, size_t bytecnt, 636 * <ptrqueue> - name of the printer queue (the short-name...) 650 * ! top=<str> - type of printer (i [all...] |
/freebsd-13-stable/usr.sbin/lpr/chkprintcap/ |
H A D | chkprintcap.c | 56 static int interpret_error(const struct printer *pp, int error); 57 static void make_spool_dir(const struct printer *pp); 58 static void note_spool_dir(const struct printer *pp, const struct stat *st); 73 struct printer myprinter, *pp; 142 warn("%s: %s", pp->printer, pp->spool_dir); 176 interpret_error(const struct printer *pp, int error) 180 err(++problems, "reading printer database"); 183 warnx("%s: loop detected in tc= expansion", pp->printer); 186 warnx("%s: unresolved tc= expansion", pp->printer); 207 char *printer; member in struct:dirlist [all...] |
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/BPF/ |
H A D | BPFMCInstLower.h | 30 BPFMCInstLower(MCContext &ctx, AsmPrinter &printer) argument 31 : Ctx(ctx), Printer(printer) {}
|
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/MSP430/ |
H A D | MSP430MCInstLower.h | 30 MSP430MCInstLower(MCContext &ctx, AsmPrinter &printer) argument 31 : Ctx(ctx), Printer(printer) {}
|
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/WebAssembly/ |
H A D | WebAssemblyMCInstLower.h | 41 WebAssemblyMCInstLower(MCContext &ctx, WebAssemblyAsmPrinter &printer) argument 42 : Ctx(ctx), Printer(printer) {}
|
/freebsd-13-stable/usr.sbin/bsnmpd/modules/snmp_hostres/ |
H A D | hostres_printer_tbl.c | 89 * Create entry into the printer table. 111 * Delete entry from the printer table. 126 * Find a printer by its index 141 * Get the status of a printer 144 get_printer_status(const struct printer *pp) 205 * Called for each printer found in /etc/printcap. 208 handle_printer(struct printer *pp) 216 HRDBG("skipped %s -- remote", pp->printer); 221 HRDBG("skipped %s [device %s] -- remote", pp->printer, pp->lp); 228 HRDBG("printer [all...] |
/freebsd-13-stable/cddl/contrib/opensolaris/tools/ctf/cvt/ |
H A D | alist.c | 200 int (*printer)(void *, void *) = private; 203 printer(el->ale_name, el->ale_value); 209 alist_dump(alist_t *alist, int (*printer)(void *, void *)) 211 if (!printer) 212 printer = alist_def_print_cb; 214 return (hash_iter(alist->al_elements, alist_dump_cb, (void *)printer));
|
/freebsd-13-stable/usr.sbin/lpr/pac/ |
H A D | pac.c | 113 const char *cp, *printer; local 115 printer = NULL; 126 printer = cp; 172 if (printer == NULL && (printer = getenv("PRINTER")) == NULL) 173 printer = DEFLP; 174 if (!chkprinter(printer)) { 175 printf("pac: unknown printer %s\n", printer); 423 * Perform lookup for printer nam [all...] |
/freebsd-13-stable/contrib/tcpdump/ |
H A D | print.c | 41 struct printer { struct 46 static const struct printer printers[] = { 253 const struct printer *p; 272 * If we don't have a printer for DLT_USER2, and type is 273 * DLT_USER2, we look up the printer for DLT_PKTAP and use 297 if_printer printer; local 299 printer = lookup_printer(type); 300 if (printer == NULL) { 310 return printer; 335 * Restore the original snapend, as a printer migh [all...] |
H A D | print-pktap.c | 22 /* \summary: Apple's DLT_PKTAP printer */ 93 * This is the top level routine of the printer. 'p' points 105 if_printer printer; local 147 if ((printer = lookup_printer(dlt)) != NULL) { 151 hdrlen += printer(ndo, &nhdr, p);
|
H A D | print-ppi.c | 5 /* \summary: Oracle DLT_PPI printer */ 56 if_printer printer; local 95 if ((printer = lookup_printer(dlt)) != NULL) { 99 hdrlen = printer(ndo, &nhdr, p); 114 * This is the top level routine of the printer. 'p' points
|
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/AArch64/ |
H A D | AArch64MCInstLower.h | 35 AArch64MCInstLower(MCContext &ctx, AsmPrinter &printer);
|
/freebsd-13-stable/usr.sbin/lpr/lpr/ |
H A D | lpr.c | 61 * using information from a printer data base. 118 static void chkprinter(const char *_ptrname, struct printer *_pp); 120 static void copy(const struct printer *_pp, int _f, const char _n[]); 124 static char *lmktemp(const struct printer *_pp, const char *_id, 126 static void mktemps(const struct printer *_pp); 138 const char *arg, *cp, *printer; local 145 struct printer myprinter, *pp = &myprinter; 147 printer = NULL; 194 case 'P': /* specifiy printer name */ 195 printer [all...] |