diff options
author | 2003-06-26 18:19:29 +0000 | |
---|---|---|
committer | 2003-06-26 18:19:29 +0000 | |
commit | 66e5764e648f1cef39cdf0423fa96337157ae2bb (patch) | |
tree | 5062c9570941887e8e12cf84fa7be215b17faad0 /usr.bin/diff/diff.h | |
parent | Quote % characters in macro lines; (diff) | |
download | wireguard-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.h | 4 |
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); |