summaryrefslogtreecommitdiffstats
path: root/usr.bin/patch/util.c
AgeCommit message (Expand)AuthorFilesLines
2019-12-02Use getline(3) to handle lines longer than 8192 bytes in patch filesjca1-4/+4
2019-08-17signal handlers should not call exit() due to possibility of reenteringderaadt1-7/+23
2019-06-28When system calls indicate an error they return -1, not some arbitraryderaadt1-7/+7
2018-12-30Delete unnecessary <libgen.h> #includesguenther1-2/+1
2018-04-07Remove unused pathnames.h header since patch was refactoring into not invokinganton1-2/+1
2015-07-26Remove support for automatically checking files out of RCS. Themillert1-25/+1
2015-01-16Replace <sys/param.h> with <limits.h> and other less dirty headers wherederaadt1-4/+3
2014-12-13The function savestr allows NULL return values during Plan A patching so intobias1-1/+17
2014-11-22Remove SCCS support. For this to work, we would need "get", which we don'ttobias1-5/+3
2013-11-26unsigned char casts for ctypederaadt1-5/+5
2010-07-24Send normal output to stdout instead of everything to stderr. Thisray1-3/+3
2010-01-08Don't leak memory after strdup() in makedirs().oga1-2/+4
2009-10-27rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andderaadt1-5/+1
2006-03-11type police and assorted cleanup. From Lionel Fourquaux; ok ray@otto1-2/+3
2005-06-20umask juggling not needed; with Lionel Fourquaux.otto1-6/+3
2005-05-16Do not call out mkdir -p, but reuse the code from mkdir(1).espie1-9/+8
2004-11-19Allow for path names containing spaces and other funny chars (exceptotto1-4/+6
2004-08-05spacingderaadt1-2/+2
2003-10-31o fairly major man page reorganizationmillert1-19/+30
2003-08-15Add license from patch.c to original source files missing a license.otto1-2/+28
2003-08-01- use stdbool.h instead of roll-your-own booleansotto1-4/+4
2003-07-31Unbreak relative directory handling. Tweak from millert@otto1-4/+5
2003-07-30Make prompting POSIX-compliant. POSIX states "The patch utilitymillert1-34/+18
2003-07-29o add pathnames.hmillert1-6/+8
2003-07-28Don't treat consecutive slashes as path components; matches POSIXmillert1-7/+7
2003-07-28More cleanup: sprinkled some const, removed ugly EXTERN/INTERN.h,otto1-32/+29
2003-07-28Make patch(1) exit value match POSIX and be consistent with diff.millert1-5/+5
2003-07-25Add POSIX -b option but don't change the default beahvior wrt backupsmillert1-86/+67
2003-07-22just about nothingderaadt1-3/+3
2003-07-22More cleanup.otto1-12/+35
2003-07-21fix headerderaadt1-2/+2
2003-07-21remove a bit more junkderaadt1-3/+3
2003-07-21knf and other cleanup; ok ottoderaadt1-304/+298
2003-07-18remove junk; ok otto teduderaadt1-107/+98
2003-04-08strcpy trashing, help from tedu; ok teduderaadt1-3/+3
2003-04-05string fixes; ok miod henningderaadt1-3/+3
1999-12-04a few more overflows goneprovos1-37/+16
1999-12-04revert strlcpy to strcpy for one case.provos1-3/+3
1999-12-04avoid overflowsprovos1-9/+12
1999-01-11fix seg fault on sparcmarc1-3/+3
1999-01-03Use 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 argumentmillert1-13/+10
1997-09-22Start of -Wall and cleaning up icky bits.millert1-25/+18
1996-09-24sprintf -> snprintf except where guaranteed safe.millert1-4/+4
1996-06-10Support the long options that FSF's patch version has. $OpenBSD$ addedniklas1-1/+3
1995-10-18initial import of NetBSD treederaadt1-0/+441