summaryrefslogtreecommitdiffstats
path: root/usr.bin/fold/fold.c
Commit message (Collapse)AuthorAgeFilesLines
* Add missing static keywords to fold(1)ed2011-11-061-2/+2
|
* Remove the advertising clause from UCB copyrighted files in usr.bin. Thisjoel2010-12-111-4/+0
| | | | | | | | | is in accordance with the information provided at ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change Also add $FreeBSD$ to a few files to keep svn happy. Discussed with: imp, rwatson
* Fix a segmentation fault in argument processing.dumbbell2010-11-061-9/+25
| | | | | | | | | | The crash was caused by a command line such as this one: # foldl -b1 PR: bin/151592 Reported by: Marcus Reid <marcus@blazingdot.com> Tested by: Marcus Reid <marcus@blazingdot.com> MFC after: 3 days
* Revert most part of 200420 as requested, as more review and polish isdelphij2009-12-131-0/+1
| | | | needed.
* Remove unneeded header includes from usr.bin/ except contributed code.delphij2009-12-111-1/+0
| | | | Tested with: make universe
* Add support for multibyte characters and characters that take up moretjr2004-06-241-24/+27
| | | | than one column position.
* ANSIify function definitions.dwmalone2002-09-041-9/+5
| | | | | | | | | 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
* Only advance the column position for printable characters, update manualtjr2002-06-171-2/+4
| | | | page to emphasise that we count column positions, not characters.
* If a file cannot be processed, try to process any remaining filestjr2002-05-251-3/+5
| | | | then exit non-zero.
* Localize it, LC_CTYPEache2002-04-191-1/+4
|
* Add the -b option (break at byte position, not column number) and the -stjr2002-04-181-28/+82
| | | | | | | | | | | | | | | | 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)
* remove __Pimp2002-03-221-2/+2
|
* Make clear that -w gets an argument. Add __FBSDID and remove unusedcharnier2001-12-121-3/+3
| | | | #include
* optarg and optind are declared in unistd.h.imp2000-09-041-2/+0
| | | | h_error is declared in netdb.h
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Add usage(), use err(3).charnier1997-07-081-11/+24
|
* compare return value from getopt against -1 rather than EOF, per the finalimp1997-03-291-1/+1
| | | | posix standard on the topic.
* BSD 4.4 Lite Usr.bin Sourcesrgrimes1994-05-271-0/+152
OpenPOWER on IntegriCloud