#
# This file and its contents are supplied under the terms of the
# Common Development and Distribution License ("CDDL"), version 1.0.
# You may only use this file in accordance with the terms of version
# 1.0 of the CDDL.
#
# A full copy of the text of the CDDL should have accompanied this
# source.  A copy of the CDDL is also available via the Internet at
# http://www.illumos.org/license/CDDL.
#

#
# Copyright 2011 Nexenta Systems, Inc.  All rights reserved.
#

#
# MAPFILE HEADER START
#
# WARNING:  STOP NOW.  DO NOT MODIFY THIS FILE.
# Object versioning must comply with the rules detailed in
#
#	usr/src/lib/README.mapfiles
#
# You should not be making modifications here until you've read the most current
# copy of that file. If you need help, contact a gatekeeper for guidance.
#
# MAPFILE HEADER END
#

$mapfile_version 2

#
# This is a mapfile that defines a filter for libcurses so that
# libraries such as libreadline can link with this and NOT force
# the choice of which curses library will be used.  The NODIRECT
# flag lets other libraries earlier in the link order provide the
# symbols below, in which case those will be used by all calls
# to these functions _instead_ of the libcurses ones.  Cool, eh?
#

SYMBOL_VERSION ILLUMOS_0.1 {
    global:

$if _ELF32
	BC		{ TYPE = COMMON; SIZE = 4; FLAGS = NODIRECT;
			  FILTER = libcurses.so.1; };
	UP		{ TYPE = COMMON; SIZE = 4; FLAGS = NODIRECT;
			  FILTER = libcurses.so.1; };
$endif
$if _ELF64
	BC		{ TYPE = COMMON; SIZE = 8; FLAGS = NODIRECT;
			  FILTER = libcurses.so.1; };
	UP		{ TYPE = COMMON; SIZE = 8; FLAGS = NODIRECT;
			  FILTER = libcurses.so.1; };
$endif
	PC		{ TYPE = COMMON; SIZE = 1; FLAGS = NODIRECT;
			  FILTER = libcurses.so.1; };
	ospeed		{ TYPE = COMMON; SIZE = 2; FLAGS = NODIRECT;
			  FILTER = libcurses.so.1; };

	tgetent		{ TYPE = FUNCTION; FLAGS = NODIRECT;
			  FILTER = libcurses.so.1; };
	tgetflag	{ TYPE = FUNCTION; FLAGS = NODIRECT;
			  FILTER = libcurses.so.1 };
	tgetnum		{ TYPE = FUNCTION; FLAGS = NODIRECT;
			  FILTER = libcurses.so.1 };
	tgetstr		{ TYPE = FUNCTION; FLAGS = NODIRECT;
			  FILTER = libcurses.so.1 };
	tgoto		{ TYPE = FUNCTION; FLAGS = NODIRECT;
			  FILTER = libcurses.so.1 };
	tputs		{ TYPE = FUNCTION; FLAGS = NODIRECT;
			  FILTER = libcurses.so.1 };
};