Module Name: src Committed By: nat Date: Mon Jun 4 01:42:49 UTC 2018
Modified Files: src/usr.bin/fstat: misc.c Log Message: Update fstat for audio(4) and pad(4) devices. XXX - pullup 8. Ok christos@. To generate a diff of this commit: cvs rdiff -u -r1.17 -r1.18 src/usr.bin/fstat/misc.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/usr.bin/fstat/misc.c diff -u src/usr.bin/fstat/misc.c:1.17 src/usr.bin/fstat/misc.c:1.18 --- src/usr.bin/fstat/misc.c:1.17 Fri Dec 30 21:08:23 2016 +++ src/usr.bin/fstat/misc.c Mon Jun 4 01:42:49 2018 @@ -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 @@ static struct nlist nl[] = { { .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 @@ pmisc(struct file *f, const char *name) 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;