summaryrefslogtreecommitdiffstats
path: root/usr.bin/patch/patch.c
diff options
context:
space:
mode:
authorsobrado <sobrado@openbsd.org>2007-04-18 21:52:24 +0000
committersobrado <sobrado@openbsd.org>2007-04-18 21:52:24 +0000
commit153b0c7157776aa7ee070b6aa5b627548e7ef2cd (patch)
treebf04d5649a64889cd7f0790fd5e5957f5e145884 /usr.bin/patch/patch.c
parentUse atomic operations to change the pending software interrupt mask. (diff)
downloadwireguard-openbsd-153b0c7157776aa7ee070b6aa5b627548e7ef2cd.tar.xz
wireguard-openbsd-153b0c7157776aa7ee070b6aa5b627548e7ef2cd.zip
adds a detailed synopsis to the man page; sorts options in
the description list and adds missing arguments; syncs usage() written with a lot of useful advice by jmc@ ok by jmc@
Diffstat (limited to 'usr.bin/patch/patch.c')
-rw-r--r--usr.bin/patch/patch.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/usr.bin/patch/patch.c b/usr.bin/patch/patch.c
index 3f90c2e725c..2ecee815ff5 100644
--- a/usr.bin/patch/patch.c
+++ b/usr.bin/patch/patch.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: patch.c,v 1.44 2006/03/11 19:41:30 otto Exp $ */
+/* $OpenBSD: patch.c,v 1.45 2007/04/18 21:52:24 sobrado Exp $ */
/*
* patch - a program to apply diffs to original files
@@ -27,7 +27,7 @@
*/
#ifndef lint
-static const char rcsid[] = "$OpenBSD: patch.c,v 1.44 2006/03/11 19:41:30 otto Exp $";
+static const char rcsid[] = "$OpenBSD: patch.c,v 1.45 2007/04/18 21:52:24 sobrado Exp $";
#endif /* not lint */
#include <sys/types.h>
@@ -605,10 +605,11 @@ static __dead void
usage(void)
{
fprintf(stderr,
-"usage: patch [-bcCeEflnNRstuv] [-B backup-prefix] [-d directory] [-D symbol]\n"
+"usage: patch [-bCcEeflNnRstuv] [-B backup-prefix] [-D symbol] [-d directory]\n"
" [-F max-fuzz] [-i patchfile] [-o out-file] [-p strip-count]\n"
-" [-r rej-name] [-V {numbered,existing,simple}] [-z backup-ext]\n"
-" [origfile [patchfile]]\n");
+" [-r rej-name] [-V t | nil | never] [-x number] [-z backup-ext]\n"
+" [--posix] [origfile [patchfile]]\n"
+" patch <patchfile\n");
my_exit(EXIT_SUCCESS);
}