summaryrefslogtreecommitdiff
path: root/usr.bin/find/function.c
diff options
context:
space:
mode:
authorcgd <cgd@NetBSD.org>1993-03-24 22:56:32 +0000
committercgd <cgd@NetBSD.org>1993-03-24 22:56:32 +0000
commit7c6490bf10e7166fa34fed1a9ccf8a31e5e74499 (patch)
tree3d207ad653a3a48d54c65e13952c01335fb87033 /usr.bin/find/function.c
parent609f072018b4fef9a7322e559c4eaf6d4ccc19f7 (diff)
added support for "kernfs" and "fdesc" to -fstype
Diffstat (limited to 'usr.bin/find/function.c')
-rw-r--r--usr.bin/find/function.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/usr.bin/find/function.c b/usr.bin/find/function.c
index 08cd151424b..e3a6c7b4638 100644
--- a/usr.bin/find/function.c
+++ b/usr.bin/find/function.c
@@ -369,12 +369,32 @@ c_fstype(arg)
new = palloc(N_FSTYPE, f_fstype);
switch(*arg) {
+ case 'f':
+ if (!strcmp(arg, "fdesc")) {
+#ifdef MOUNT_FDESC
+ new->flags = MOUNT_FDESC;
+ return(new);
+#else
+ err("unknown file type %s", arg);
+#endif
+ }
+ break;
case 'i':
if (!strcmp(arg, "isofs")) {
new->flags = MOUNT_ISOFS;
return(new);
}
break;
+ case 'k':
+ if (!strcmp(arg, "kernfs")) {
+#ifdef MOUNT_KERNFS
+ new->flags = MOUNT_KERNFS;
+ return(new);
+#else
+ err("unknown file type %s", arg);
+#endif
+ }
+ break;
case 'l':
if (!strcmp(arg, "local")) {
new->flags = MOUNT_NONE;