blob: 275b4fb287d3a36d45cf195a676d6be1f4f9da30 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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
|