From 5f4c3fa8c992a73cf3a590bb05e0fcfe882394cd Mon Sep 17 00:00:00 2001 From: millert Date: Tue, 16 Mar 2004 00:40:34 +0000 Subject: POSIX specifies that in directory mode device special files and FIFOs shall be skipped. Other types of files may be skipped too (this is implementation-dependent). In directory mode, just skip anything that is not a regular file or directory. 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 7f658699fa3..d9af1a94c0e 100644 --- a/usr.bin/diff/diff.h +++ b/usr.bin/diff/diff.h @@ -1,4 +1,4 @@ -/* $OpenBSD: diff.h,v 1.26 2004/01/07 17:18:32 otto Exp $ */ +/* $OpenBSD: diff.h,v 1.27 2004/03/16 00:40:34 millert Exp $ */ /*- * Copyright (c) 1991, 1993 @@ -62,6 +62,8 @@ #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 */ struct excludes { char *pattern; -- cgit v1.2.3-59-g8ed1b