History log of /openbsd-src/usr.bin/patch/common.h (Results 1 – 25 of 30)
Revision Date Author Comments
# 5fbd5e42 02-Dec-2019 jca <jca@openbsd.org>

Use getline(3) to handle lines longer than 8192 bytes in patch files

Spotted by jsg@ when working on mesa. Diff tested by sthen@ in
a partial i386 bulk. Input from and ok jsg@ millert@


# 7e39cfac 26-Jul-2015 millert <millert@openbsd.org>

Remove support for automatically checking files out of RCS. The
behavior is confusing to users and even GNU patch no longer does
it by default. OK krw@ guenther@


# 031a0470 25-Nov-2014 tobias <tobias@openbsd.org>

Introduce strtolinenum to properly check line numbers while parsing:
no signs, no spaces, just digits, 0 <= x <= LONG_MAX

ok millert, otto


# 0529800e 22-Nov-2014 tobias <tobias@openbsd.org>

Remove SCCS support. For this to work, we would need "get", which we don't
even have in ports. XSI functionality of POSIX, therefore optional.

ok deraadt, schwarze, tedu


# 5e2529bc 11-Mar-2006 otto <otto@openbsd.org>

type police and assorted cleanup. From Lionel Fourquaux; ok ray@


# 53900eee 31-Oct-2003 millert <millert@openbsd.org>

o fairly major man page reorganization
o add --posix option for strict POSIX conformance
o change filename determination to match GNU patch
Tested by various people, including a full ports build by n

o fairly major man page reorganization
o add --posix option for strict POSIX conformance
o change filename determination to match GNU patch
Tested by various people, including a full ports build by naddy@

show more ...


# ddf7b806 15-Aug-2003 otto <otto@openbsd.org>

Add license from patch.c to original source files missing a license.

ok deraadt@


# 9f4ed7c2 10-Aug-2003 otto <otto@openbsd.org>

Do not add an extra newline at the end if the last line of the input
file contains no newline and the diff does not touch the last line.
Contributions from millert@.

ok millert@ tedu@


# 0e9f50d8 01-Aug-2003 otto <otto@openbsd.org>

- use stdbool.h instead of roll-your-own booleans
- fix some -Wall warnings
- fix asserts: in some cases remove them, in other cases they have
become Internal errors or detection of malformed patch f

- use stdbool.h instead of roll-your-own booleans
- fix some -Wall warnings
- fix asserts: in some cases remove them, in other cases they have
become Internal errors or detection of malformed patch files.
- fix some free() related code

ok millert@ tedu@

show more ...


# da07b79c 31-Jul-2003 otto <otto@openbsd.org>

Print a maximum of one invalid line number warning per patch in a patch file.
Thanks to espie@ for spotting the problem.

ok millert@ henning@ espie@


# 04e367a6 28-Jul-2003 deraadt <deraadt@openbsd.org>

minor knf and cleanups; otto ok


# 03269102 28-Jul-2003 otto <otto@openbsd.org>

More cleanup: sprinkled some const, removed ugly EXTERN/INTERN.h,
some rewriting of code to make it more readable and more KNF.

ok millert@ tedu@ deraadt@


# 8d035106 22-Jul-2003 millert <millert@openbsd.org>

Missed this in the rejname commit.


# fb8601a0 22-Jul-2003 otto <otto@openbsd.org>

More cleanup.
ok millert@ tedu@


# 72e24984 21-Jul-2003 deraadt <deraadt@openbsd.org>

fix header


# 1422fa04 21-Jul-2003 deraadt <deraadt@openbsd.org>

remove a bit more junk


# be55ebd7 21-Jul-2003 deraadt <deraadt@openbsd.org>

knf and other cleanup; ok otto


# 5dc74f7d 18-Jul-2003 deraadt <deraadt@openbsd.org>

remove junk; ok otto tedu


# c437d280 08-Apr-2003 deraadt <deraadt@openbsd.org>

oh, and the false protos can go


# c374abf0 08-Apr-2003 deraadt <deraadt@openbsd.org>

Strcat and Strcpy are no longer used


# 8b6f9cfe 03-Jan-1999 millert <millert@openbsd.org>

Use libc basename(3) and dirname(3) instead of defining our own. Also clean up some nasty assumptions that basename() returns a pointer that lies within its argument


# 71eaa2b5 22-Sep-1997 millert <millert@openbsd.org>

Start of -Wall and cleaning up icky bits.


# 26c743a2 06-Sep-1997 niklas <niklas@openbsd.org>

I hate static buffer sizes! Prolongue the max length of a line to 8K
(from 1K which a patch in ports/print/ghostscript5 had a line longer than).


# 6d4c2cc8 24-Jun-1997 dgregor <dgregor@openbsd.org>

*** empty log message ***


# 047169ab 17-Jan-1997 millert <millert@openbsd.org>

rindex -> strrchr


12