From 97a71285c86fbf0b8d841ecf3381c4bb650e2cb0 Mon Sep 17 00:00:00 2001 From: matthias Date: Thu, 30 Jan 1997 09:23:46 +0000 Subject: [PATCH] Teach strmode(3) about whiteouts. They get w 'w' now. --- lib/libc/string/strmode.3 | 4 +++- lib/libc/string/strmode.c | 7 ++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/lib/libc/string/strmode.3 b/lib/libc/string/strmode.3 index 4f5d23e66ced..0049d4e7f2b3 100644 --- a/lib/libc/string/strmode.3 +++ b/lib/libc/string/strmode.3 @@ -30,7 +30,7 @@ .\" SUCH DAMAGE. .\" .\" from: @(#)strmode.3 5.4 (Berkeley) 7/31/91 -.\" $Id: strmode.3,v 1.3 1994/01/10 23:59:00 jtc Exp $ +.\" $Id: strmode.3,v 1.4 1997/01/30 09:23:46 matthias Exp $ .\" .Dd July 31, 1991 .Dt STRMODE 3 @@ -72,6 +72,8 @@ symbolic link fifo .It s socket +.It w +whiteout .It ? unknown inode type .El diff --git a/lib/libc/string/strmode.c b/lib/libc/string/strmode.c index c16f1badba03..3ffcbf7cd942 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 @@ -69,6 +69,11 @@ strmode(mode, p) case S_IFIFO: /* fifo */ *p++ = 'p'; break; +#endif +#ifdef S_IFWHT + case S_IFWHT: /* whiteout */ + *p++ = 'w'; + break; #endif default: /* unknown */ *p++ = '?';