dmake: do not set MAKEFLAGS=k
[unleashed/tickless.git] / usr / src / lib / libshell / common / data / solaris_cmdlist.h
blob030a2d5898767b0c37acf4806284dc98eb6f3b4e
1 /*
2 * CDDL HEADER START
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 * or http://www.opensolaris.org/os/licensing.
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
19 * CDDL HEADER END
23 * Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
26 #ifndef _SOLARIS_KSH_CMDLIST_H
27 #define _SOLARIS_KSH_CMDLIST_H
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
34 * List builtins for Solaris.
35 * The list here is partially autogenerated and partially hand-picked
36 * based on compatibility with the native Solaris versions of these
37 * tools
41 * Commands which are 100% compatible with native Solaris versions (/bin is
42 * a softlink to ./usr/bin, ksh93 takes care about the lookup)
44 #define BINCMDLIST(f) \
45 { "/bin/" #f, NV_BLTIN|NV_BLTINOPT|NV_NOFREE, bltin(f) },
46 #define USRBINCMDLIST(f) \
47 { "/usr/bin/" #f, NV_BLTIN|NV_BLTINOPT|NV_NOFREE, bltin(f) },
48 #define SBINCMDLIST(f) \
49 { "/sbin/" #f, NV_BLTIN|NV_BLTINOPT|NV_NOFREE, bltin(f) },
50 #define SUSRBINCMDLIST(f) \
51 { "/usr/sbin/" #f, NV_BLTIN|NV_BLTINOPT|NV_NOFREE, bltin(f) },
52 /* POSIX compatible commands */
53 #ifdef SHOPT_USR_GNU_BIN_BUILTINS
54 /* GNU coreutils compatible commands */
55 #define GNUCMDLIST(f) \
56 { "/usr/gnu/bin/" #f, NV_BLTIN|NV_BLTINOPT|NV_NOFREE, bltin(f) },
57 #else
58 #define GNUCMDLIST(f)
59 #endif
61 * Make all ksh93 builtins accessible when /usr/ast/bin was added to
62 * /usr/ccs/bin:/usr/bin:/bin:/opt/SUNWspro/bin
64 #define ASTCMDLIST(f) \
65 { "/usr/ast/bin/" #f, NV_BLTIN|NV_BLTINOPT|NV_NOFREE, bltin(f) },
67 /* undo ast_map.h #defines to avoid collision */
68 #undef basename
69 #undef dirname
70 #undef mktemp
72 /* Generated data, do not edit. */
73 ASTCMDLIST(basename)
74 GNUCMDLIST(basename)
75 ASTCMDLIST(cat)
76 BINCMDLIST(cat)
77 ASTCMDLIST(chgrp)
78 ASTCMDLIST(chmod)
79 ASTCMDLIST(chown)
80 BINCMDLIST(chown)
81 ASTCMDLIST(cksum)
82 BINCMDLIST(cksum)
83 GNUCMDLIST(cksum)
84 ASTCMDLIST(cmp)
85 BINCMDLIST(cmp)
86 ASTCMDLIST(comm)
87 BINCMDLIST(comm)
88 GNUCMDLIST(comm)
89 ASTCMDLIST(cp)
90 ASTCMDLIST(cut)
91 BINCMDLIST(cut)
92 GNUCMDLIST(cut)
93 ASTCMDLIST(date)
94 ASTCMDLIST(dirname)
95 BINCMDLIST(dirname)
96 GNUCMDLIST(dirname)
97 ASTCMDLIST(egrep)
98 ASTCMDLIST(expr)
99 GNUCMDLIST(expr)
100 ASTCMDLIST(fds)
101 ASTCMDLIST(fgrep)
102 ASTCMDLIST(fmt)
103 ASTCMDLIST(fold)
104 BINCMDLIST(fold)
105 GNUCMDLIST(fold)
106 ASTCMDLIST(grep)
107 ASTCMDLIST(head)
108 BINCMDLIST(head)
109 ASTCMDLIST(id)
110 ASTCMDLIST(join)
111 BINCMDLIST(join)
112 GNUCMDLIST(join)
113 ASTCMDLIST(ln)
114 ASTCMDLIST(logname)
115 BINCMDLIST(logname)
116 GNUCMDLIST(logname)
117 ASTCMDLIST(md5sum)
118 ASTCMDLIST(mkdir)
119 BINCMDLIST(mkdir)
120 GNUCMDLIST(mkdir)
121 ASTCMDLIST(mkfifo)
122 BINCMDLIST(mkfifo)
123 GNUCMDLIST(mkfifo)
124 ASTCMDLIST(mktemp)
125 BINCMDLIST(mktemp)
126 GNUCMDLIST(mktemp)
127 ASTCMDLIST(mv)
128 ASTCMDLIST(paste)
129 BINCMDLIST(paste)
130 GNUCMDLIST(paste)
131 ASTCMDLIST(pathchk)
132 BINCMDLIST(pathchk)
133 GNUCMDLIST(pathchk)
134 ASTCMDLIST(readlink)
135 ASTCMDLIST(rev)
136 BINCMDLIST(rev)
137 ASTCMDLIST(rm)
138 ASTCMDLIST(rmdir)
139 BINCMDLIST(rmdir)
140 GNUCMDLIST(rmdir)
141 GNUCMDLIST(sleep)
142 ASTCMDLIST(stty)
143 ASTCMDLIST(sum)
144 BINCMDLIST(sum)
145 ASTCMDLIST(sync)
146 BINCMDLIST(sync)
147 GNUCMDLIST(sync)
148 SBINCMDLIST(sync)
149 SUSRBINCMDLIST(sync)
150 ASTCMDLIST(tail)
151 BINCMDLIST(tail)
152 ASTCMDLIST(tee)
153 BINCMDLIST(tee)
154 GNUCMDLIST(tee)
155 ASTCMDLIST(tty)
156 BINCMDLIST(tty)
157 GNUCMDLIST(tty)
158 ASTCMDLIST(uname)
159 ASTCMDLIST(uniq)
160 BINCMDLIST(uniq)
161 GNUCMDLIST(uniq)
162 ASTCMDLIST(wc)
163 BINCMDLIST(wc)
164 GNUCMDLIST(wc)
165 ASTCMDLIST(xgrep)
166 BINCMDLIST(xgrep)
168 /* Mandatory for ksh93 test suite and AST scripts */
169 BINCMDLIST(getconf)
171 #ifdef __cplusplus
173 #endif
175 #endif /* !_SOLARIS_KSH_CMDLIST_H */