ctlinfo.c (79746) | ctlinfo.c (83684) |
---|---|
1/* 2 * ------+---------+---------+---------+---------+---------+---------+---------* 3 * Copyright (c) 2001 - Garance Alistair Drosehn <gad@FreeBSD.org>. 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 19 unchanged lines hidden (view full) --- 28 * are those of the authors and should not be interpreted as representing 29 * official policies, either expressed or implied, of the FreeBSD Project. 30 * 31 * ------+---------+---------+---------+---------+---------+---------+---------* 32 */ 33 34#ifndef lint 35static const char rcsid[] = | 1/* 2 * ------+---------+---------+---------+---------+---------+---------+---------* 3 * Copyright (c) 2001 - Garance Alistair Drosehn <gad@FreeBSD.org>. 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 19 unchanged lines hidden (view full) --- 28 * are those of the authors and should not be interpreted as representing 29 * official policies, either expressed or implied, of the FreeBSD Project. 30 * 31 * ------+---------+---------+---------+---------+---------+---------+---------* 32 */ 33 34#ifndef lint 35static const char rcsid[] = |
36 "$FreeBSD: head/usr.sbin/lpr/common_source/ctlinfo.c 79746 2001-07-15 05:29:38Z gad $"; | 36 "$FreeBSD: head/usr.sbin/lpr/common_source/ctlinfo.c 83684 2001-09-20 01:04:50Z gad $"; |
37#endif /* not lint */ 38 39/* 40 * ctlinfo - This collection of routines will know everything there is to 41 * know about the information inside a control file ('cf*') which is used 42 * to describe a print job in lpr & friends. The eventual goal is that it 43 * will be the ONLY source file to know what's inside these control-files. 44 */ --- 133 unchanged lines hidden (view full) --- 178 * appear multiple times in a control file (once per datafile): 179 * 180 * N - "name" of file (for display purposes, used by 'lpq') 181 * S - "stat() info" used for symbolic link ('lpr -s') 182 * security checks. 183 * 184 * The following indicate actions to take on a given datafile. The same 185 * datafile may appear on more than one "print this file" command in the | 37#endif /* not lint */ 38 39/* 40 * ctlinfo - This collection of routines will know everything there is to 41 * know about the information inside a control file ('cf*') which is used 42 * to describe a print job in lpr & friends. The eventual goal is that it 43 * will be the ONLY source file to know what's inside these control-files. 44 */ --- 133 unchanged lines hidden (view full) --- 178 * appear multiple times in a control file (once per datafile): 179 * 180 * N - "name" of file (for display purposes, used by 'lpq') 181 * S - "stat() info" used for symbolic link ('lpr -s') 182 * security checks. 183 * 184 * The following indicate actions to take on a given datafile. The same 185 * datafile may appear on more than one "print this file" command in the |
186 * control file. Note that ALL ids with lowercase letters are commands 187 * to "print this file": | 186 * control file. Note that ALL ids with lowercase letters are expected 187 * to be actions to "print this file": |
188 * | 188 * |
189 * f - "file name", a plain-text file to print 190 * l - "file name", text file with control chars to print (some 191 * printers recognize this id as a request to print a 192 * postscript file) 193 * p - "file name", text file to print with pr(1) 194 * t - "file name", troff(1) file to print 195 * n - "file name", ditroff(1) file to print 196 * d - "file name", dvi file to print 197 * g - "file name", plot(1G) file to print | 189 * c - "file name", cifplot file to print. This action appears 190 * when the user has requested 'lpr -c'. 191 * d - "file name", dvi file to print, user requested 'lpr -d' 192 * f - "file name", a plain-text file to print = "standard" 193 * g - "file name", plot(1G) file to print, ie 'lpr -g' 194 * l - "file name", text file with control chars which should 195 * be printed literally, ie 'lpr -l' (note: some printers 196 * take this id as a request to print a postscript file) 197 * n - "file name", ditroff(1) file to print, ie 'lpr -n' 198 * o - "file name", a postscript file to print. This id is 199 * described in the original RFC, but not much has been 200 * done with it. This 'lpr' does not generate control 201 * lines with 'o'-actions, but lpd's printjob processing 202 * will treat it the same as 'f'. 203 * p - "file name", text file to print with pr(1), ie 'lpr -p' 204 * t - "file name", troff(1) file to print, ie 'lpr -t' |
198 * v - "file name", plain raster file to print | 205 * v - "file name", plain raster file to print |
199 * c - "file name", cifplot file to print | |
200 * 201 * U - "file name" of datafile to unlink (ie, remove file 202 * from spool directory. To be done in a 'Pass 2', 203 * AFTER having processed all datafiles in the job). 204 * 205 */ 206 207void --- 644 unchanged lines hidden --- | 206 * 207 * U - "file name" of datafile to unlink (ie, remove file 208 * from spool directory. To be done in a 'Pass 2', 209 * AFTER having processed all datafiles in the job). 210 * 211 */ 212 213void --- 644 unchanged lines hidden --- |