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]
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
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
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 #define XPG6CMDLIST(f) \
54 { "/usr/xpg6/bin/" #f, NV_BLTIN|NV_BLTINOPT|NV_NOFREE, bltin(f) },
55 #define XPG4CMDLIST(f) \
56 { "/usr/xpg4/bin/" #f, NV_BLTIN|NV_BLTINOPT|NV_NOFREE, bltin(f) },
57 #ifdef SHOPT_USR_GNU_BIN_BUILTINS
58 /* GNU coreutils compatible commands */
59 #define GNUCMDLIST(f) \
60 { "/usr/gnu/bin/" #f, NV_BLTIN|NV_BLTINOPT|NV_NOFREE, bltin(f) },
65 * Make all ksh93 builtins accessible when /usr/ast/bin was added to
66 * /usr/xpg6/bin:/usr/xpg4/bin:/usr/ccs/bin:/usr/bin:/bin:/opt/SUNWspro/bin
68 #define ASTCMDLIST(f) \
69 { "/usr/ast/bin/" #f, NV_BLTIN|NV_BLTINOPT|NV_NOFREE, bltin(f) },
71 /* undo ast_map.h #defines to avoid collision */
76 /* Generated data, do not edit. */
187 /* Mandatory for ksh93 test suite and AST scripts */
194 #endif /* !_SOLARIS_KSH_CMDLIST_H */