summaryrefslogtreecommitdiffstats
path: root/sbin/ddb/ddb.h
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2007-12-26 09:38:22 +0000
committerrwatson <rwatson@FreeBSD.org>2007-12-26 09:38:22 +0000
commit26638a0b23b767589c0cb57146d5a303580589fb (patch)
tree71816d3f1c455d3d295ee99647ac62144bb65b12 /sbin/ddb/ddb.h
parent6ff1515c5f8d3787a46b92ded45aacb75cec051e (diff)
downloadFreeBSD-src-26638a0b23b767589c0cb57146d5a303580589fb.zip
FreeBSD-src-26638a0b23b767589c0cb57146d5a303580589fb.tar.gz
Add command-line tool ddb(8), which allows DDB(4) scripts to be
managed from userspace. It is largely a wrapper for sysctl() calls, but because the sysctls for adding and removing scripts are awkward to use directly, this provides an easier-to-use interface. MFC after: 3 months
Diffstat (limited to 'sbin/ddb/ddb.h')
-rw-r--r--sbin/ddb/ddb.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/sbin/ddb/ddb.h b/sbin/ddb/ddb.h
new file mode 100644
index 0000000..50128bd
--- /dev/null
+++ b/sbin/ddb/ddb.h
@@ -0,0 +1,37 @@
+/*-
+ * Copyright (c) 2007 Robert N. M. Watson
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ *
+ * $FreeBSD$
+ */
+
+#ifndef DDB_H
+#define DDB_H
+
+void ddb_script(int argc, char *argv[]);
+void ddb_scripts(int argc, char *argv[]);
+void ddb_unscript(int argc, char *argv[]);
+void usage(void);
+
+#endif /* DDB_H */
OpenPOWER on IntegriCloud