summaryrefslogtreecommitdiffstats
path: root/usr.bin/diff/diff.h
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2003-06-26 18:19:29 +0000
committermillert <millert@openbsd.org>2003-06-26 18:19:29 +0000
commit66e5764e648f1cef39cdf0423fa96337157ae2bb (patch)
tree5062c9570941887e8e12cf84fa7be215b17faad0 /usr.bin/diff/diff.h
parentQuote % characters in macro lines; (diff)
downloadwireguard-openbsd-66e5764e648f1cef39cdf0423fa96337157ae2bb.tar.xz
wireguard-openbsd-66e5764e648f1cef39cdf0423fa96337157ae2bb.zip
Fix temp file handling.
o honor TMPDIR environment variable as per man page o need 2 temp files if both file1 and file2 are devices o add error() and errorx() which cleanup temp file and then call err() and errx() respectively. OK tedu@
Diffstat (limited to 'usr.bin/diff/diff.h')
-rw-r--r--usr.bin/diff/diff.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/diff/diff.h b/usr.bin/diff/diff.h
index 4c33f03dba0..fc155fcf2a9 100644
--- a/usr.bin/diff/diff.h
+++ b/usr.bin/diff/diff.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: diff.h,v 1.9 2003/06/26 04:52:26 millert Exp $ */
+/* $OpenBSD: diff.h,v 1.10 2003/06/26 18:19:29 millert Exp $ */
/*
* Copyright (C) Caldera International Inc. 2001-2002.
@@ -76,4 +76,6 @@ void diffdir(char **);
void diffreg(void);
int max(int, int);
int min(int, int);
+__dead void error(const char *, ...);
+__dead void errorx(const char *, ...);
__dead void done(int);