summaryrefslogtreecommitdiffstats
path: root/usr.bin/diff/diff.h
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2004-03-16 00:40:34 +0000
committermillert <millert@openbsd.org>2004-03-16 00:40:34 +0000
commit5f4c3fa8c992a73cf3a590bb05e0fcfe882394cd (patch)
treef531dd735f940af417621b3f0eeb3a7893e008a1 /usr.bin/diff/diff.h
parentAnd two promise pciide, from chris@ (diff)
downloadwireguard-openbsd-5f4c3fa8c992a73cf3a590bb05e0fcfe882394cd.tar.xz
wireguard-openbsd-5f4c3fa8c992a73cf3a590bb05e0fcfe882394cd.zip
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@
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 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;