summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin/patch/util.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove our hacked GNU patch.pfg2013-09-031-458/+0
| | | | | | | | | | | The old (2.1) GNU patch has outlived its days. The major local changes have been moved into the less restrictedly licensed patch(1) we adopted in usr.bin/ . A much newer version of GNU patch is available in the ports tree (devel/patch). Disconnect from the build and remove.
* Change the internal buffer used to store input lines from a static buffersepotvin2009-05-081-7/+7
| | | | | | | | to a dynamically allocated one in order to support input lines of arbitrary length. Approved by: kan (mentor) MFC after: 1 month
* Change parts of the source code to make it closer to style(9), mainlygad2002-05-211-300/+322
| | | | | | | | | | changing indentation and some comments. Main goal is not perfect style, but just to reduce differences with NetBSD. The object code is exactly the same after this change as before it (except for assert() statements which have moved). Reviewed by: /sbin/md5 on i386 Obtained from: NetBSD
* Add many prototypes and ANSI-ize 'patch. Not a complete job of it, but it getsgad2002-04-281-16/+8
| | | | | | | | | our patch to look a little more like NetBSD's, and has the nice characteristic that the object code is exactly the same after the change as before it (even in patch.c and pch.c, which have pesky 'assert' statements in them). Reviewed by: /sbin/md5 on i386, alpha, sparc64 MFC after: 3 days
* Add `_PATH_DEVZERO'.obrien2000-12-091-2/+6
| | | | Use _PATH_* where where possible.
* Resurrect patch 2.1 without FreeBSD Index: hackache1998-01-211-0/+440
|
* Upgrade to 2.5 (contrib version)ache1998-01-041-440/+0
|
* Add (unsigned char) cast to ctype macrosache1997-10-231-4/+4
|
* fix compilation warnings in patch... (with slight modification)jmg1997-03-171-2/+2
| | | | | | | | also remove -Wall that I acidentally committed last time I was here... Submitted-by: Philippe Charnier Closes PR#2998
* Fix a problem with patch in that is will always default, even when thejmg1997-02-131-2/+9
| | | | | | | | | | | | | controlling terminal is closed. Now the function ask() will return 1 when th input is known to come from a file or terminal, or it will return 0 when ther was a read error. Modified the question "Skip patch?" so that on an error from ask it will skip the patch instead of looping. Closes PR#777 2.2 candidate
* Remove trailing whitespace.rgrimes1995-05-301-3/+3
|
* b-maked patch-2.10paul1993-06-191-0/+433
OpenPOWER on IntegriCloud