pr.c (102944) | pr.c (108470) |
---|---|
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 102944 2002-09-04 23:29:10Z dwmalone $"); | 51__FBSDID("$FreeBSD: head/usr.bin/pr/pr.c 108470 2002-12-30 21:18:15Z schweikh $"); |
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> --- 1372 unchanged lines hidden (view full) --- 1432 pfail(); 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 | 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> --- 1372 unchanged lines hidden (view full) --- 1432 pfail(); 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 * an reasonable way, adjust the length of the printf by | 1440 * a reasonable way, adjust the length of the printf by |
1441 * changing HDFMT to allow a length max as an arguement 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); --- 385 unchanged lines hidden --- | 1441 * changing HDFMT to allow a length max as an arguement 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); --- 385 unchanged lines hidden --- |