summaryrefslogtreecommitdiff
path: root/lib/libc/string/strmode.c
diff options
context:
space:
mode:
authormatthias <matthias@NetBSD.org>1997-01-30 09:23:46 +0000
committermatthias <matthias@NetBSD.org>1997-01-30 09:23:46 +0000
commit97a71285c86fbf0b8d841ecf3381c4bb650e2cb0 (patch)
tree0c4be017f14bf9ec0e6fbb338c87bdadf9b6537b /lib/libc/string/strmode.c
parent192303707a5d9b9752f48942cd1554f4f02f8692 (diff)
Teach strmode(3) about whiteouts. They get w 'w' now.
Diffstat (limited to 'lib/libc/string/strmode.c')
-rw-r--r--lib/libc/string/strmode.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/libc/string/strmode.c b/lib/libc/string/strmode.c
index c16f1badba0..3ffcbf7cd94 100644
--- a/lib/libc/string/strmode.c
+++ b/lib/libc/string/strmode.c
@@ -33,7 +33,7 @@
#if defined(LIBC_SCCS) && !defined(lint)
/*static char *sccsid = "from: @(#)strmode.c 5.3 (Berkeley) 5/18/90";*/
-static char *rcsid = "$Id: strmode.c,v 1.3 1993/08/26 00:51:54 jtc Exp $";
+static char *rcsid = "$Id: strmode.c,v 1.4 1997/01/30 09:23:47 matthias Exp $";
#endif /* LIBC_SCCS and not lint */
#include <sys/types.h>
@@ -70,6 +70,11 @@ strmode(mode, p)
*p++ = 'p';
break;
#endif
+#ifdef S_IFWHT
+ case S_IFWHT: /* whiteout */
+ *p++ = 'w';
+ break;
+#endif
default: /* unknown */
*p++ = '?';
break;