Commit Graph

15 Commits

Author SHA1 Message Date
Xin LI
821df508e8 Revert most part of 200420 as requested, as more review and polish is
needed.
2009-12-13 03:14:06 +00:00
Xin LI
6f2d322192 Remove unneeded header includes from usr.bin/ except contributed code.
Tested with:	make universe
2009-12-11 23:35:38 +00:00
Tim J. Robbins
19657ec3b8 Add support for multibyte characters and characters that take up more
than one column position.
2004-06-24 15:12:29 +00:00
David Malone
f4ac32def2 ANSIify function definitions.
Add some constness to avoid some warnings.
Remove use register keyword.
Deal with missing/unneeded extern/prototypes.
Some minor type changes/casts to avoid warnings.

Reviewed by:	md5
2002-09-04 23:29:10 +00:00
Tim J. Robbins
b887806d7b Only advance the column position for printable characters, update manual
page to emphasise that we count column positions, not characters.
2002-06-17 12:11:05 +00:00
Tim J. Robbins
fb2582c006 If a file cannot be processed, try to process any remaining files
then exit non-zero.
2002-05-25 03:04:28 +00:00
Andrey A. Chernov
a243305fbe Localize it, LC_CTYPE 2002-04-19 09:02:16 +00:00
Tim J. Robbins
13e06695bf Add the -b option (break at byte position, not column number) and the -s
option (try to break at word bounaries) for SUSv3 conformance.

Partially based on the NetBSD version, with the following changes:
 - style(9)
 - break on <blank>s, not spaces, per POSIX (and GNU)
 - when looking for last space on line, search backwards instead of
   forwards; less comparisons needed this way.
 - use LINE_MAX macro instead of a magic number and a comment saying it is
   LINE_MAX.

PR:		36245
Reviewed by:	mike
Obtained from:	NetBSD (partially)
2002-04-18 03:33:51 +00:00
Warner Losh
f1bb2cd2aa remove __P 2002-03-22 01:22:50 +00:00
Philippe Charnier
a9c9a0d15f Make clear that -w gets an argument. Add __FBSDID and remove unused
#include
2001-12-12 18:25:53 +00:00
Warner Losh
b07b8563ff optarg and optind are declared in unistd.h.
h_error is declared in netdb.h
2000-09-04 05:59:25 +00:00
Peter Wemm
c3aac50f28 $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
Philippe Charnier
f589c9aafa Add usage(), use err(3). 1997-07-08 10:59:50 +00:00
Warner Losh
1c8af87873 compare return value from getopt against -1 rather than EOF, per the final
posix standard on the topic.
1997-03-29 04:34:07 +00:00
Rodney W. Grimes
9b50d90275 BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00