From 32adbfb76516082a6df498a61500395a81652210 Mon Sep 17 00:00:00 2001 From: Xavier Santolaria Date: Fri, 5 May 2006 15:47:37 +0000 Subject: - fix rcsdiff exit status on success/errors; now matches gnu/usr.bin/rcs. - add DIAGNOSTICS section to rcsdiff.1 wrt exit codes. ok ray@ and jmc@ for man page bits. --- usr.bin/rcs/diff.h | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) (limited to 'usr.bin/rcs/diff.h') diff --git a/usr.bin/rcs/diff.h b/usr.bin/rcs/diff.h index 73b3144716a..fdf7cfa821e 100644 --- a/usr.bin/rcs/diff.h +++ b/usr.bin/rcs/diff.h @@ -1,4 +1,4 @@ -/* $OpenBSD: diff.h,v 1.1 2006/04/26 02:55:13 joris Exp $ */ +/* $OpenBSD: diff.h,v 1.2 2006/05/05 15:47:36 xsa Exp $ */ /* * Copyright (C) Caldera International Inc. 2001-2002. * All rights reserved. @@ -64,14 +64,12 @@ * @(#)diffreg.c 8.1 (Berkeley) 6/6/93 */ -#ifndef CVS_DIFF_H -#define CVS_DIFF_H +#ifndef RCS_DIFF_H +#define RCS_DIFF_H #include "buf.h" #include "rcs.h" -#define CVS_DIFF_DEFCTX 3 /* default context length */ - /* * Output format options */ @@ -87,14 +85,7 @@ */ #define D_SAME 0 /* Files are the same */ #define D_DIFFER 1 /* Files are different */ -#define D_BINARY 2 /* Binary files are different */ -#define D_COMMON 3 /* Subdirectory common to both dirs */ -#define D_ONLY 4 /* Only exists in one directory */ -#define D_MISMATCH1 5 /* path1 was a dir, path2 a file */ -#define D_MISMATCH2 6 /* path1 was a file, path2 a dir */ -#define D_ERROR 7 /* An error occurred */ -#define D_SKIPPED1 8 /* path1 was a special file */ -#define D_SKIPPED2 9 /* path2 was a special file */ +#define D_ERROR 2 /* An error occurred */ struct rcs_lines; @@ -111,4 +102,4 @@ extern BUF *diffbuf; extern RCSNUM *diff_rev1; extern RCSNUM *diff_rev2; -#endif +#endif /* RCS_DIFF_H */ -- cgit v1.2.3