summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin/patch/util.h
diff options
context:
space:
mode:
authorgad <gad@FreeBSD.org>2002-04-28 01:33:45 +0000
committergad <gad@FreeBSD.org>2002-04-28 01:33:45 +0000
commitb200c6709f032c3ceaac65a061b2f1198173bd0c (patch)
tree7f720dcbd2c5958c3ebe9655a3d746b461a5aac7 /gnu/usr.bin/patch/util.h
parent69091a8284855bbf8bc967d6baf599b1fbc7f077 (diff)
downloadFreeBSD-src-b200c6709f032c3ceaac65a061b2f1198173bd0c.zip
FreeBSD-src-b200c6709f032c3ceaac65a061b2f1198173bd0c.tar.gz
Add many prototypes and ANSI-ize 'patch. Not a complete job of it, but it gets
our patch to look a little more like NetBSD's, and has the nice characteristic that the object code is exactly the same after the change as before it (even in patch.c and pch.c, which have pesky 'assert' statements in them). Reviewed by: /sbin/md5 on i386, alpha, sparc64 MFC after: 3 days
Diffstat (limited to 'gnu/usr.bin/patch/util.h')
-rw-r--r--gnu/usr.bin/patch/util.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/gnu/usr.bin/patch/util.h b/gnu/usr.bin/patch/util.h
index 0576826..f31f2e2 100644
--- a/gnu/usr.bin/patch/util.h
+++ b/gnu/usr.bin/patch/util.h
@@ -74,15 +74,15 @@
EXT char serrbuf[BUFSIZ]; /* buffer for stderr */
-char *fetchname();
-int move_file();
-void copy_file();
-void say();
-void fatal();
-void pfatal();
-int ask();
-char *savestr();
-void set_signals();
-void ignore_signals();
-void makedirs();
-char *basename();
+char *fetchname(char *_at, int _strip_leading, int _assume_exists);
+int move_file(char *_from, char *_to);
+void copy_file(char *_from, char *_to);
+void say(/*const char *pat, long _arg1, long _arg2, long _arg3*/);
+void fatal();
+void pfatal();
+int ask(/*const char *pat, long _arg1, long _arg2, long _arg3*/);
+char *savestr(char *_s);
+void set_signals(int _reset);
+void ignore_signals(void);
+void makedirs(/*char *_filename, bool _striplast*/);
+char *basename();
OpenPOWER on IntegriCloud