Source-Changes-HG archive

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

[src/trunk]: src/sys/miscfs/procfs do something reasonable with kernel semaph...



details:   https://anonhg.NetBSD.org/src/rev/60619c389d55
branches:  trunk
changeset: 782880:60619c389d55
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Nov 25 01:03:05 2012 +0000

description:
do something reasonable with kernel semaphores.

diffstat:

 sys/miscfs/procfs/procfs_subr.c  |  5 +++--
 sys/miscfs/procfs/procfs_vnops.c |  8 ++++++--
 2 files changed, 9 insertions(+), 4 deletions(-)

diffs (55 lines):

diff -r 2a0314050830 -r 60619c389d55 sys/miscfs/procfs/procfs_subr.c
--- a/sys/miscfs/procfs/procfs_subr.c   Sun Nov 25 00:36:23 2012 +0000
+++ b/sys/miscfs/procfs/procfs_subr.c   Sun Nov 25 01:03:05 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: procfs_subr.c,v 1.101 2012/05/28 13:16:10 christos Exp $       */
+/*     $NetBSD: procfs_subr.c,v 1.102 2012/11/25 01:03:05 christos Exp $       */
 
 /*-
  * Copyright (c) 2006, 2007, 2008 The NetBSD Foundation, Inc.
@@ -102,7 +102,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: procfs_subr.c,v 1.101 2012/05/28 13:16:10 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: procfs_subr.c,v 1.102 2012/11/25 01:03:05 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -253,6 +253,7 @@
                                break;
                        case DTYPE_KQUEUE:
                        case DTYPE_MISC:
+                       case DTYPE_SEM:
                        symlink:
                                pfs->pfs_mode = S_IRUSR|S_IXUSR|S_IRGRP|
                                    S_IXGRP|S_IROTH|S_IXOTH;
diff -r 2a0314050830 -r 60619c389d55 sys/miscfs/procfs/procfs_vnops.c
--- a/sys/miscfs/procfs/procfs_vnops.c  Sun Nov 25 00:36:23 2012 +0000
+++ b/sys/miscfs/procfs/procfs_vnops.c  Sun Nov 25 01:03:05 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: procfs_vnops.c,v 1.184 2012/05/28 13:16:10 christos Exp $      */
+/*     $NetBSD: procfs_vnops.c,v 1.185 2012/11/25 01:03:05 christos Exp $      */
 
 /*-
  * Copyright (c) 2006, 2007, 2008 The NetBSD Foundation, Inc.
@@ -105,7 +105,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: procfs_vnops.c,v 1.184 2012/05/28 13:16:10 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: procfs_vnops.c,v 1.185 2012/11/25 01:03:05 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -1702,6 +1702,10 @@
                        len = snprintf(bf, sizeof(bf), "%s", "[kqueue]");
                        break;
 
+               case DTYPE_SEM:
+                       len = snprintf(bf, sizeof(bf), "%s", "[ksem]");
+                       break;
+
                default:
                        error = EINVAL;
                        break;



Home | Main Index | Thread Index | Old Index