aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/lsvfs
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>1997-03-03 17:21:57 +0000
committerBruce Evans <bde@FreeBSD.org>1997-03-03 17:21:57 +0000
commit9361c5abbd07ba5b97a7ca3aacbe1d93a83b8bfb (patch)
treee124502a493226451c15bca4d4944555a9c47085 /usr.bin/lsvfs
parente4d202a8ae8bc0d6f77a55b7253ae7a12e7baca8 (diff)
downloadsrc-9361c5abbd07ba5b97a7ca3aacbe1d93a83b8bfb.tar.gz
src-9361c5abbd07ba5b97a7ca3aacbe1d93a83b8bfb.zip
Notes
Diffstat (limited to 'usr.bin/lsvfs')
-rw-r--r--usr.bin/lsvfs/lsvfs.c16
1 files changed, 11 insertions, 5 deletions
diff --git a/usr.bin/lsvfs/lsvfs.c b/usr.bin/lsvfs/lsvfs.c
index 124aa0434315..ce63d0ea529a 100644
--- a/usr.bin/lsvfs/lsvfs.c
+++ b/usr.bin/lsvfs/lsvfs.c
@@ -3,14 +3,15 @@
* Garrett A. Wollman, September 1994
* This file is in the public domain.
*
- * $Id$
+ * $Id: lsvfs.c,v 1.7 1997/02/22 19:55:59 peter Exp $
*/
-#include <sys/types.h>
#include <sys/param.h>
#include <sys/mount.h>
-#include <stdio.h>
+
#include <err.h>
+#include <stdio.h>
+#include <string.h>
#define FMT "%-32.32s %5d %5d %s\n"
#define HDRFMT "%-32.32s %5.5s %5.5s %s\n"
@@ -58,7 +59,8 @@ fmt_flags(int flags)
/*
* NB: if you add new flags, don't forget to add them here vvvvvv too.
*/
- static char buf[sizeof "static, network, read-only, synthetic, loopback"];
+ static char buf[sizeof
+ "static, network, read-only, synthetic, loopback, unicode"];
int comma = 0;
buf[0] = '\0';
@@ -88,6 +90,10 @@ fmt_flags(int flags)
strcat(buf, "loopback");
}
+ if(flags & VFCF_UNICODE) {
+ if(comma++) strcat(buf, ", ");
+ strcat(buf, "unicode");
+ }
+
return buf;
}
-