Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/fstat Update fstat for audio(4) and pad(4) devices.



details:   https://anonhg.NetBSD.org/src/rev/1627f55c93be
branches:  trunk
changeset: 832988:1627f55c93be
user:      nat <nat%NetBSD.org@localhost>
date:      Mon Jun 04 01:42:49 2018 +0000

description:
Update fstat for audio(4) and pad(4) devices.

XXX - pullup 8.

Ok christos@.

diffstat:

 usr.bin/fstat/misc.c |  16 +++++++++++++---
 1 files changed, 13 insertions(+), 3 deletions(-)

diffs (44 lines):

diff -r be66a86a290a -r 1627f55c93be usr.bin/fstat/misc.c
--- a/usr.bin/fstat/misc.c      Sun Jun 03 22:32:57 2018 +0000
+++ b/usr.bin/fstat/misc.c      Mon Jun 04 01:42:49 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: misc.c,v 1.17 2016/12/30 21:08:23 christos Exp $       */
+/*     $NetBSD: misc.c,v 1.18 2018/06/04 01:42:49 nat Exp $    */
 
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: misc.c,v 1.17 2016/12/30 21:08:23 christos Exp $");
+__RCSID("$NetBSD: misc.c,v 1.18 2018/06/04 01:42:49 nat Exp $");
 
 #include <stdbool.h>
 #include <sys/param.h>
@@ -102,7 +102,11 @@
     { .n_name = "vnops" },
 #define NL_XENEVT      17
     { .n_name = "xenevt_fileops" },
-#define NL_MAX         18
+#define NL_AUDIO       18
+    { .n_name = "audio_fileops" },
+#define NL_PAD         19
+    { .n_name = "pad_fileops" },
+#define NL_MAX         20
     { .n_name = NULL }
 };
 
@@ -277,6 +281,12 @@
        case NL_CRYPTO:
                printf("* crypto %p\n", f->f_data);
                return 0;
+       case NL_AUDIO:
+               printf("* audio %p\n", f->f_data);
+               return 0;
+       case NL_PAD:
+               printf("* pad %p\n", f->f_data);
+               return 0;
        case NL_MAX:
                printf("* %s ops=%p %p\n", name, f->f_ops, f->f_data);
                return 0;



Home | Main Index | Thread Index | Old Index