diff options
Diffstat (limited to '')
-rw-r--r-- | src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common/mknames.sed | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common/mknames.sed b/src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common/mknames.sed new file mode 100644 index 00000000..275b4fb2 --- /dev/null +++ b/src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common/mknames.sed @@ -0,0 +1,38 @@ +#$Id: mknames.sed $ +## @file +# pure sed version of mknames.sh. +# + +1b heading +$b footer +/DIF_SUBR_MAX/b end +s/^#[[:space:]]*define[[:space:]][[:space:]]*\(DIF_SUBR_[a-zA-Z0-9_]*\).*$/ case \1: \ + return "\L\1";/p +b end + +:heading +i\/* Autogenerated source file - DO NOT EDIT! */ +i\/* +i\ * Copyright 2003 Sun Microsystems, Inc. All rights reserved. +i\ * Use is subject to license terms. +i\ */ +i\#include <dtrace.h> +i\const char *dtrace_subrstr(dtrace_hdl_t *dtp, int subr) +i\{ +i\ (void)dtp; +i\ switch (subr) +i\ { +b end + +:footer +i\ default: +i\ return "unknown"; +i\ } +i\} +b end + + + + +:end + |