Lines Matching refs:line

140 				while ((i = read(fd, line, sizeof(line))) > 0)
141 (void) fwrite(line, 1, i, stdout);
197 while ((i = read(fd, line,
198 sizeof(line))) > 0)
199 fwrite(line, 1, i, stdout);
231 (void) snprintf(line, sizeof(line), "%c%s", format ? '\4' : '\3',
233 cp = line;
234 for (i = 0; i < requests && cp-line+10 < sizeof(line) - 1; i++) {
238 for (i = 0; i < users && cp - line + 1 + strlen(user[i]) <
239 sizeof(line) - 1; i++) {
244 strcat(line, "\n");
256 i = strlen(line);
257 if (write(fd, line, i) != i)
259 while ((i = read(fd, line, sizeof(line))) > 0)
260 filtered_write(line, i, stdout);
268 * or carriage-returns instead of line-feeds. Clean those up before echoing
269 * the lpq-info line(s) to stdout. The info may also be missing any kind of
270 * end-of-line character. This also turns CRLF and LFCR into a plain LF.
406 * one line which starts with some format-specifier ('a'-'z'), and
407 * a second line ('N'ame) which indicates the original name the user
409 * for a single Name-line, if the user requested multiple copies of
410 * that file. Standard lpr puts the format-spec line(s) before the
411 * Name-line, while lprNG puts the Name-line before the format-spec
412 * line(s). This section needs to handle the lines in either order.
419 switch (line[0]) {
421 if (!inlist(line+1, cf)) {
426 printf("\n%s: ", line+1);
427 col = strlen(line+1) + 2;
435 printf("%-10s %-3d ", line+1, jnum);
441 if (line[0] < 'a' || line[0] > 'z')
443 if (copycnt == 0 || strcmp(file, line+1) != 0) {
444 strlcpy(file, line + 1, sizeof(file));
454 strlcpy(savedname, line + 1, sizeof(savedname));
468 /* a safeguard in case the N-ame line is missing */
517 * Fill the line with blanks to the specified column