pr.c (132672) | pr.c (151701) |
---|---|
1/*- 2 * Copyright (c) 1991 Keith Muller. 3 * Copyright (c) 1993 4 * The Regents of the University of California. All rights reserved. 5 * 6 * This code is derived from software contributed to Berkeley by 7 * Keith Muller of the University of California, San Diego. 8 * --- 34 unchanged lines hidden (view full) --- 43 44#if 0 45#ifndef lint 46static char sccsid[] = "@(#)pr.c 8.2 (Berkeley) 4/16/94"; 47#endif /* not lint */ 48#endif 49 50#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1991 Keith Muller. 3 * Copyright (c) 1993 4 * The Regents of the University of California. All rights reserved. 5 * 6 * This code is derived from software contributed to Berkeley by 7 * Keith Muller of the University of California, San Diego. 8 * --- 34 unchanged lines hidden (view full) --- 43 44#if 0 45#ifndef lint 46static char sccsid[] = "@(#)pr.c 8.2 (Berkeley) 4/16/94"; 47#endif /* not lint */ 48#endif 49 50#include <sys/cdefs.h> |
51__FBSDID("$FreeBSD: head/usr.bin/pr/pr.c 132672 2004-07-26 20:24:59Z charnier $"); | 51__FBSDID("$FreeBSD: head/usr.bin/pr/pr.c 151701 2005-10-26 17:37:54Z jhb $"); |
52 53#include <sys/types.h> 54#include <sys/time.h> 55#include <sys/stat.h> 56 57#include <ctype.h> 58#include <errno.h> 59#include <langinfo.h> --- 1373 unchanged lines hidden (view full) --- 1433 return(1); 1434 } 1435 /* 1436 * posix is not clear if the header is subject to line length 1437 * restrictions. The specification for header line format 1438 * in the spec clearly does not limit length. No pr currently 1439 * restricts header length. However if we need to truncate in 1440 * a reasonable way, adjust the length of the printf by | 52 53#include <sys/types.h> 54#include <sys/time.h> 55#include <sys/stat.h> 56 57#include <ctype.h> 58#include <errno.h> 59#include <langinfo.h> --- 1373 unchanged lines hidden (view full) --- 1433 return(1); 1434 } 1435 /* 1436 * posix is not clear if the header is subject to line length 1437 * restrictions. The specification for header line format 1438 * in the spec clearly does not limit length. No pr currently 1439 * restricts header length. However if we need to truncate in 1440 * a reasonable way, adjust the length of the printf by |
1441 * changing HDFMT to allow a length max as an arguement printf. | 1441 * changing HDFMT to allow a length max as an argument to printf. |
1442 * buf (which contains the offset spaces and time field could 1443 * also be trimmed 1444 * 1445 * note only the offset (if any) is processed for tab expansion 1446 */ 1447 if (offst && otln(buf, offst, &ips, &ops, -1)) 1448 return(1); 1449 (void)printf(HDFMT,buf+offst, fname, pagcnt); --- 384 unchanged lines hidden --- | 1442 * buf (which contains the offset spaces and time field could 1443 * also be trimmed 1444 * 1445 * note only the offset (if any) is processed for tab expansion 1446 */ 1447 if (offst && otln(buf, offst, &ips, &ops, -1)) 1448 return(1); 1449 (void)printf(HDFMT,buf+offst, fname, pagcnt); --- 384 unchanged lines hidden --- |