Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libpuffs Support rest of file types in vtype -> s_ifmt



details:   https://anonhg.NetBSD.org/src/rev/deefa4e4cc9f
branches:  trunk
changeset: 762217:deefa4e4cc9f
user:      pooka <pooka%NetBSD.org@localhost>
date:      Thu Feb 17 17:55:36 2011 +0000

description:
Support rest of file types in vtype -> s_ifmt

diffstat:

 lib/libpuffs/subr.c |  19 +++++++++++++++++--
 1 files changed, 17 insertions(+), 2 deletions(-)

diffs (40 lines):

diff -r b52929e30a31 -r deefa4e4cc9f lib/libpuffs/subr.c
--- a/lib/libpuffs/subr.c       Thu Feb 17 17:18:08 2011 +0000
+++ b/lib/libpuffs/subr.c       Thu Feb 17 17:55:36 2011 +0000
@@ -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;
        }



Home | Main Index | Thread Index | Old Index