summaryrefslogtreecommitdiffstats
path: root/usr.bin/patch/inp.h
diff options
context:
space:
mode:
authorgabor <gabor@FreeBSD.org>2013-01-29 17:03:18 +0000
committergabor <gabor@FreeBSD.org>2013-01-29 17:03:18 +0000
commitd992e3eb2a38c97190fad5ec2287b67889a8c5b8 (patch)
tree0df6b0ca34fd3e520676781453dbeff50f662be6 /usr.bin/patch/inp.h
parentdae46a44714fe7cf4281ec2c4b47c3605d458081 (diff)
downloadFreeBSD-src-d992e3eb2a38c97190fad5ec2287b67889a8c5b8.zip
FreeBSD-src-d992e3eb2a38c97190fad5ec2287b67889a8c5b8.tar.gz
- Add a BSD-licensed patch, ported by Pedro F. Giffuni (pfg) from
DragonflyBSD and install it as bsdpatch. WITH_BSD_PATCH makes it default and installs GNU patch as gnupatch. Submitted by: pfg Obtained from: The DragonflyBSD Project
Diffstat (limited to 'usr.bin/patch/inp.h')
-rw-r--r--usr.bin/patch/inp.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/usr.bin/patch/inp.h b/usr.bin/patch/inp.h
new file mode 100644
index 0000000..0f6103f
--- /dev/null
+++ b/usr.bin/patch/inp.h
@@ -0,0 +1,35 @@
+/*
+ * $FreeBSD$
+ * $OpenBSD: inp.h,v 1.8 2003/08/15 08:00:51 otto Exp $
+ * $DragonFly: src/usr.bin/patch/inp.h,v 1.1 2004/09/24 18:44:28 joerg Exp $
+ */
+
+/*
+ * patch - a program to apply diffs to original files
+ *
+ * Copyright 1986, Larry Wall
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following condition is met:
+ * 1. Redistributions of source code must retain the above copyright notice,
+ * this condition and the following disclaimer.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR
+ * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+ * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+ * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ *
+ * -C option added in 1998, original code by Marc Espie, based on FreeBSD
+ * behaviour
+ */
+
+void re_input(void);
+void scan_input(const char *);
+char *ifetch(LINENUM, int);
OpenPOWER on IntegriCloud