xref: /illumos-gate/usr/src/cmd/ast/libshell/mapfile-vers (revision 8226594fdd4479be135127f43632f1f995074654)
1#
2# CDDL HEADER START
3#
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.
7#
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.
12#
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]
18#
19# CDDL HEADER END
20#
21
22#
23# Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
24# Copyright 2021 OmniOS Community Edition (OmniOSce) Association.
25#
26
27#
28# MAPFILE HEADER START
29#
30# WARNING:  STOP NOW.  DO NOT MODIFY THIS FILE.
31# Object versioning must comply with the rules detailed in
32#
33#	usr/src/lib/README.mapfiles
34#
35# You should not be making modifications here until you've read the most current
36# copy of that file. If you need help, contact a gatekeeper for guidance.
37#
38# MAPFILE HEADER END
39#
40
41$mapfile_version 2
42
43SYMBOL_VERSION SUNWprivate_1.1 {
44    global:
45	plugin_version;
46
47	sh_access;
48	sh_addbuiltin;
49	sh_bltin_tree;
50	sh_close;
51	sh_delay;
52	sh_dup;
53	sh_eval;
54	sh_exec;
55	sh_exit;
56	sh_fcntl;
57	sh_fmtq;
58	sh_fmtqf;
59	sh_fun;
60	sh_funscope;
61	sh_getinterp;
62	sh_getscope;
63	sh_init;
64	sh_iogetiop;
65	sh_isoption;
66	sh_main;
67	sh_menu;
68	sh_offoption;
69	sh_onoption;
70	sh_open;
71	sh_parse;
72	sh_pathopen;
73	sh_pipe;
74	sh_read;
75	sh_reinit;
76	sh_seek;
77	sh_setscope;
78	sh_sigcheck;
79	sh_strnum;
80	sh_subfork;
81	sh_tdump;
82	sh_trap;
83	sh_waitnotify;
84	sh_waitsafe;
85	sh_write;
86
87	nv_adddisc;
88	nv_aindex;
89	nv_associative;
90	nv_clone;
91	nv_close;
92	nv_context;
93	nv_create;
94	nv_dict;
95	nv_disc;
96	nv_discfun;
97	nv_getn;
98	nv_getnum;
99	nv_getsub;
100	nv_getv;
101	nv_getval;
102	nv_hasdisc;
103	nv_isnull;
104	nv_lastdict;
105	nv_name;
106	nv_newattr;
107	nv_nextsub;
108	nv_open;
109	nv_opensub;
110	nv_putsub;
111	nv_putv;
112	nv_putval;
113	nv_scan;
114	nv_search;
115	nv_setarray;
116	nv_setdisc;
117	nv_setref;
118	nv_setsize;
119	nv_settype;
120	nv_setvec;
121	nv_setvtree;
122	nv_unset;
123
124	# semi-private, needed for shcomp
125$if _ELF64
126	$if _x86
127	sh	{ ASSERT = { TYPE = OBJECT; SIZE = 1888; }; };
128	$elif _sparc
129	sh	{ ASSERT = { TYPE = OBJECT; SIZE = 1920; }; };
130	$else
131	$error Unknown architecture
132	$endif
133$elif _ELF32
134	$if _x86
135	sh	{ ASSERT = { TYPE = OBJECT; SIZE = 1216; }; };
136	$elif _sparc
137	sh	{ ASSERT = { TYPE = OBJECT; SIZE = 1224; }; };
138	$else
139	$error Unknown architecture
140	$endif
141$else
142$error unknown ELFCLASS
143$endif
144	e_dict	{ ASSERT = { TYPE = OBJECT; SIZE = 9; }; };
145
146    local:
147	*;
148};
149
150# Builtin shell commands
151# (see libshell/common/include/builtins.h)
152# Note: We have to export all the |b_*()| symbols that the "builtin" command
153# can load builtins which are not enabled by the default OS/Net configuration.
154SYMBOL_VERSION SUNWprivate_1.1 {
155    global:
156	B_echo;
157	B_login;
158	b_alarm;
159	b_alias;
160	b_bg;
161	b_break;
162	b_builtin;
163	b_cd;
164	b_close;
165	b_command;
166	b_dot_cmd;
167	b_dup;
168	b_eval;
169	b_exec;
170	b_false;
171	b_getopts;
172	b_hist;
173	b_jobs;
174	b_kill;
175	b_let;
176	b_open;
177	b_poll;
178	b_print;
179	b_printf;
180	b_pwd;
181	b_read;
182	b_readonly;
183	b_return;
184	b_rewind;
185	b_set;
186	b_shift;
187	b_sleep;
188	b_stat;
189	b_test;
190	b_tmpfile;
191	b_trap;
192	b_true;
193	b_typeset;
194	b_ulimit;
195	b_umask;
196	b_unalias;
197	b_unset;
198	b_vpath;
199	b_wait;
200	b_whence;
201    local:
202	*;
203};
204