Module Name: src Committed By: pooka Date: Thu Feb 17 17:55:36 UTC 2011
Modified Files: src/lib/libpuffs: subr.c Log Message: Support rest of file types in vtype -> s_ifmt To generate a diff of this commit: cvs rdiff -u -r1.26 -r1.27 src/lib/libpuffs/subr.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/lib/libpuffs/subr.c diff -u src/lib/libpuffs/subr.c:1.26 src/lib/libpuffs/subr.c:1.27 --- src/lib/libpuffs/subr.c:1.26 Thu Feb 17 15:41:34 2011 +++ src/lib/libpuffs/subr.c Thu Feb 17 17:55:36 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: subr.c,v 1.26 2011/02/17 15:41:34 pooka Exp $ */ +/* $NetBSD: subr.c,v 1.27 2011/02/17 17:55:36 pooka Exp $ */ /* * Copyright (c) 2006 Antti Kantee. All Rights Reserved. @@ -27,7 +27,7 @@ #include <sys/cdefs.h> #if !defined(lint) -__RCSID("$NetBSD: subr.c,v 1.26 2011/02/17 15:41:34 pooka Exp $"); +__RCSID("$NetBSD: subr.c,v 1.27 2011/02/17 17:55:36 pooka Exp $"); #endif /* !lint */ #include <sys/types.h> @@ -298,6 +298,21 @@ case VBLK: mode |= S_IFBLK; break; + case VSOCK: + mode |= S_IFSOCK; + break; + case VFIFO: + mode |= S_IFIFO; + break; + case VREG: + mode |= S_IFREG; + break; + case VLNK: + mode |= S_IFLNK; + break; + case VDIR: + mode |= S_IFDIR; + break; default: break; }