Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin Add the ability to:
details: https://anonhg.NetBSD.org/src/rev/7aaaa5efb0a5
branches: trunk
changeset: 1008772:7aaaa5efb0a5
user: christos <christos%NetBSD.org@localhost>
date: Thu Apr 02 17:41:33 2020 +0000
description:
Add the ability to:
1. list all ioctls (-l)
2. print the internal definition symbolically
3. search by name
$ ioctlprint -f "%n %E %e\n" TIOCGETA
TIOCGETA _IOR('t', 19, struct termios) _IOR('t',0x13,0x2c)
diffstat:
usr.bin/kdump/ioctlprint.1 | 2 +-
usr.bin/kdump/kdump.c | 4 ++--
usr.bin/kdump/mkioctls | 2 +-
usr.bin/ktrace/ktrace.h | 10 +++++++++-
4 files changed, 13 insertions(+), 5 deletions(-)
diffs (58 lines):
diff -r 081923010747 -r 7aaaa5efb0a5 usr.bin/kdump/ioctlprint.1
--- a/usr.bin/kdump/ioctlprint.1 Thu Apr 02 17:40:33 2020 +0000
+++ b/usr.bin/kdump/ioctlprint.1 Thu Apr 02 17:41:33 2020 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: ioctlprint.1,v 1.3 2020/04/02 17:40:33 christos Exp $
+.\" $NetBSD: ioctlprint.1,v 1.4 2020/04/02 17:41:34 christos Exp $
.\"
.\" Copyright (c) 2020 The NetBSD Foundation, Inc.
.\" All rights reserved.
diff -r 081923010747 -r 7aaaa5efb0a5 usr.bin/kdump/kdump.c
--- a/usr.bin/kdump/kdump.c Thu Apr 02 17:40:33 2020 +0000
+++ b/usr.bin/kdump/kdump.c Thu Apr 02 17:41:33 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kdump.c,v 1.134 2020/04/02 17:40:33 christos Exp $ */
+/* $NetBSD: kdump.c,v 1.135 2020/04/02 17:41:34 christos Exp $ */
/*-
* Copyright (c) 1988, 1993
@@ -39,7 +39,7 @@
#if 0
static char sccsid[] = "@(#)kdump.c 8.4 (Berkeley) 4/28/95";
#else
-__RCSID("$NetBSD: kdump.c,v 1.134 2020/04/02 17:40:33 christos Exp $");
+__RCSID("$NetBSD: kdump.c,v 1.135 2020/04/02 17:41:34 christos Exp $");
#endif
#endif /* not lint */
diff -r 081923010747 -r 7aaaa5efb0a5 usr.bin/kdump/mkioctls
--- a/usr.bin/kdump/mkioctls Thu Apr 02 17:40:33 2020 +0000
+++ b/usr.bin/kdump/mkioctls Thu Apr 02 17:41:33 2020 +0000
@@ -1,5 +1,5 @@
#!/bin/sh
-# $NetBSD: mkioctls,v 1.54 2020/04/02 17:40:33 christos Exp $
+# $NetBSD: mkioctls,v 1.55 2020/04/02 17:41:34 christos Exp $
#
# Copyright (c) 1994
# The Regents of the University of California. All rights reserved.
diff -r 081923010747 -r 7aaaa5efb0a5 usr.bin/ktrace/ktrace.h
--- a/usr.bin/ktrace/ktrace.h Thu Apr 02 17:40:33 2020 +0000
+++ b/usr.bin/ktrace/ktrace.h Thu Apr 02 17:41:33 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ktrace.h,v 1.20 2011/04/27 00:00:47 joerg Exp $ */
+/* $NetBSD: ktrace.h,v 1.21 2020/04/02 17:41:33 christos Exp $ */
/*-
* Copyright (c) 1988, 1993
@@ -44,3 +44,11 @@
const char *ioctlname(u_long);
const char *siginfocodename(int, int);
void dumpfile(const char *, int, int);
+
+struct ioctlinfo {
+ const char *name;
+ const char *expr;
+ unsigned long value;
+};
+
+extern const struct ioctlinfo ioctlinfo[];
Home |
Main Index |
Thread Index |
Old Index