Changeset 3232 in MondoRescue for branches/3.2/mindi-busybox/printutils/lpd.c
- Timestamp:
- Jan 1, 2014, 12:47:38 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.2/mindi-busybox/printutils/lpd.c
r2725 r3232 71 71 */ 72 72 73 //usage:#define lpd_trivial_usage 74 //usage: "SPOOLDIR [HELPER [ARGS]]" 75 //usage:#define lpd_full_usage "\n\n" 76 //usage: "SPOOLDIR must contain (symlinks to) device nodes or directories" 77 //usage: "\nwith names matching print queue names. In the first case, jobs are" 78 //usage: "\nsent directly to the device. Otherwise each job is stored in queue" 79 //usage: "\ndirectory and HELPER program is called. Name of file to print" 80 //usage: "\nis passed in $DATAFILE variable." 81 //usage: "\nExample:" 82 //usage: "\n tcpsvd -E 0 515 softlimit -m 999999 lpd /var/spool ./print" 83 73 84 #include "libbb.h" 74 85 … … 92 103 // SECURITY: 93 104 size_t max = 4 * 1024; // more than enough for commands! 94 return xmalloc_reads(STDIN_FILENO, NULL,&max);105 return xmalloc_reads(STDIN_FILENO, &max); 95 106 } 96 107
Note:
See TracChangeset
for help on using the changeset viewer.