From 66e5764e648f1cef39cdf0423fa96337157ae2bb Mon Sep 17 00:00:00 2001 From: millert Date: Thu, 26 Jun 2003 18:19:29 +0000 Subject: 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@ --- usr.bin/diff/diff.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'usr.bin/diff/diff.h') 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); -- cgit v1.2.3-59-g8ed1b