summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1997-06-13 13:57:21 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1997-06-13 13:57:21 +0000
commitd2ca0f3b4b49d629ba1f7a0e5b266b6a927b7b2f (patch)
treec026fea37beb7a071e7d33d26202c3bcfb5735a0
parentdeb8de3eea7da2958ed7a0a7445e59e19151349a (diff)
whitespace support; some netbsd pr..
-rw-r--r--lib/libc/string/strmode.34
-rw-r--r--lib/libc/string/strmode.c7
2 files changed, 9 insertions, 2 deletions
diff --git a/lib/libc/string/strmode.3 b/lib/libc/string/strmode.3
index ba2dfbf4a20..af16a2beb16 100644
--- a/lib/libc/string/strmode.3
+++ b/lib/libc/string/strmode.3
@@ -29,7 +29,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $OpenBSD: strmode.3,v 1.2 1996/08/19 08:34:20 tholo Exp $
+.\" $OpenBSD: strmode.3,v 1.3 1997/06/13 13:57:20 deraadt Exp $
.\"
.Dd July 31, 1991
.Dt STRMODE 3
@@ -71,6 +71,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 cc66071acd0..5e7f15e857e 100644
--- a/lib/libc/string/strmode.c
+++ b/lib/libc/string/strmode.c
@@ -32,7 +32,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char *rcsid = "$OpenBSD: strmode.c,v 1.2 1996/08/19 08:34:20 tholo Exp $";
+static char *rcsid = "$OpenBSD: strmode.c,v 1.3 1997/06/13 13:57:20 deraadt Exp $";
#endif /* LIBC_SCCS and not lint */
#include <sys/types.h>
@@ -69,6 +69,11 @@ strmode(mode, p)
*p++ = 'p';
break;
#endif
+#ifdef S_IFWHT
+ case S_IFWHT: /* whiteout */
+ *p++ = 'w';
+ break;
+#endif
default: /* unknown */
*p++ = '?';
break;