summaryrefslogtreecommitdiffstats
path: root/usr.bin/patch/util.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* signal handlers should not call exit() due to possibility of reenteringderaadt2019-08-171-1/+2
| | | | | libc (stdio etc), instead do the unlink tasks then call _exit() instead ok millert
* Remove support for automatically checking files out of RCS. Themillert2015-07-261-2/+1
| | | | | behavior is confusing to users and even GNU patch no longer does it by default. OK krw@ guenther@
* The function savestr allows NULL return values during Plan A patching so intobias2014-12-131-1/+2
| | | | | | case of out of memory conditions, Plan B can step in. In many cases, NULL value is not properly handled, so use xstrdup here (it's outside Plan A/B patching, which means that even Plan B relies on successful operations).
* umask juggling not needed; with Lionel Fourquaux.otto2005-06-201-2/+2
| | | | ok millert@ espie@
* Do not call out mkdir -p, but reuse the code from mkdir(1).espie2005-05-161-1/+4
| | | | | | | | | | | Removes the possibility of nasty stuff happening thanks to unquoted arguments in system(1). Also plug a small memory leak. Problems noticed by Lionel Fourquaud. okay millert@, deraadt@
* spacingderaadt2004-08-051-2/+2
|
* o fairly major man page reorganizationmillert2003-10-311-2/+3
| | | | | | 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@
* Add license from patch.c to original source files missing a license.otto2003-08-151-1/+27
| | | | ok deraadt@
* More cleanup: sprinkled some const, removed ugly EXTERN/INTERN.h,otto2003-07-281-11/+12
| | | | | | some rewriting of code to make it more readable and more KNF. ok millert@ tedu@ deraadt@
* Add POSIX -b option but don't change the default beahvior wrt backupsmillert2003-07-251-2/+3
| | | | yet. The old -b option is now -z (matches GNU patch).
* nicerderaadt2003-07-221-4/+4
|
* More cleanup.otto2003-07-221-8/+8
| | | | ok millert@ tedu@
* fix headerderaadt2003-07-211-1/+1
|
* knf and other cleanup; ok ottoderaadt2003-07-211-14/+14
|
* remove junk; ok otto teduderaadt2003-07-181-76/+13
|
* 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 argumentmillert1999-01-031-2/+1
|
* Support the long options that FSF's patch version has. $OpenBSD$ addedniklas1996-06-101-1/+1
|
* initial import of NetBSD treederaadt1995-10-181-0/+82