changeset 13230:7c8ff70cc6ed

364 remove libplot Reviewed by: gwr@nexenta.com Approved by: gwr@nexenta.com
author Garrett D'Amore <garrett@nexenta.com>
date Fri, 29 Oct 2010 09:19:27 -0700
parents 178433b2c76a
children 7f155a30c9c8
files usr/src/cmd/Makefile usr/src/cmd/tplot/Makefile usr/src/cmd/tplot/banner.c usr/src/cmd/tplot/driver.c usr/src/cmd/tplot/mapfile-intf usr/src/cmd/tplot/tplot.sh usr/src/cmd/tplot/vplot.c usr/src/lib/Makefile usr/src/lib/libplot/Makefile usr/src/lib/libplot/plot.h usr/src/lib/libplot/plot/Makefile usr/src/lib/libplot/plot/Makefile.com usr/src/lib/libplot/plot/amd64/Makefile usr/src/lib/libplot/plot/common/arc.c usr/src/lib/libplot/plot/common/box.c usr/src/lib/libplot/plot/common/circle.c usr/src/lib/libplot/plot/common/close.c usr/src/lib/libplot/plot/common/con.h usr/src/lib/libplot/plot/common/cont.c usr/src/lib/libplot/plot/common/dot.c usr/src/lib/libplot/plot/common/erase.c usr/src/lib/libplot/plot/common/label.c usr/src/lib/libplot/plot/common/line.c usr/src/lib/libplot/plot/common/linmod.c usr/src/lib/libplot/plot/common/llib-lplot usr/src/lib/libplot/plot/common/mapfile-vers usr/src/lib/libplot/plot/common/move.c usr/src/lib/libplot/plot/common/open.c usr/src/lib/libplot/plot/common/point.c usr/src/lib/libplot/plot/common/putsi.c usr/src/lib/libplot/plot/common/space.c usr/src/lib/libplot/plot/i386/Makefile usr/src/lib/libplot/plot/sparc/Makefile usr/src/lib/libplot/plot/sparcv9/Makefile usr/src/lib/libplot/t300/Makefile usr/src/lib/libplot/t300/Makefile.com usr/src/lib/libplot/t300/amd64/Makefile usr/src/lib/libplot/t300/common/arc.c usr/src/lib/libplot/t300/common/box.c usr/src/lib/libplot/t300/common/circle.c usr/src/lib/libplot/t300/common/close.c usr/src/lib/libplot/t300/common/con.h usr/src/lib/libplot/t300/common/dot.c usr/src/lib/libplot/t300/common/erase.c usr/src/lib/libplot/t300/common/label.c usr/src/lib/libplot/t300/common/line.c usr/src/lib/libplot/t300/common/linmod.c usr/src/lib/libplot/t300/common/llib-l300 usr/src/lib/libplot/t300/common/mapfile-vers usr/src/lib/libplot/t300/common/move.c usr/src/lib/libplot/t300/common/open.c usr/src/lib/libplot/t300/common/point.c usr/src/lib/libplot/t300/common/space.c usr/src/lib/libplot/t300/common/subr.c usr/src/lib/libplot/t300/i386/Makefile usr/src/lib/libplot/t300/sparc/Makefile usr/src/lib/libplot/t300/sparcv9/Makefile usr/src/lib/libplot/t300s/Makefile usr/src/lib/libplot/t300s/Makefile.com usr/src/lib/libplot/t300s/amd64/Makefile usr/src/lib/libplot/t300s/common/arc.c usr/src/lib/libplot/t300s/common/box.c usr/src/lib/libplot/t300s/common/circle.c usr/src/lib/libplot/t300s/common/close.c usr/src/lib/libplot/t300s/common/con.h usr/src/lib/libplot/t300s/common/dot.c usr/src/lib/libplot/t300s/common/erase.c usr/src/lib/libplot/t300s/common/label.c usr/src/lib/libplot/t300s/common/line.c usr/src/lib/libplot/t300s/common/linmod.c usr/src/lib/libplot/t300s/common/llib-l300s usr/src/lib/libplot/t300s/common/mapfile-vers usr/src/lib/libplot/t300s/common/move.c usr/src/lib/libplot/t300s/common/open.c usr/src/lib/libplot/t300s/common/point.c usr/src/lib/libplot/t300s/common/space.c usr/src/lib/libplot/t300s/common/subr.c usr/src/lib/libplot/t300s/i386/Makefile usr/src/lib/libplot/t300s/sparc/Makefile usr/src/lib/libplot/t300s/sparcv9/Makefile usr/src/lib/libplot/t4014/Makefile usr/src/lib/libplot/t4014/Makefile.com usr/src/lib/libplot/t4014/amd64/Makefile usr/src/lib/libplot/t4014/common/arc.c usr/src/lib/libplot/t4014/common/box.c usr/src/lib/libplot/t4014/common/circle.c usr/src/lib/libplot/t4014/common/close.c usr/src/lib/libplot/t4014/common/con.h usr/src/lib/libplot/t4014/common/dot.c usr/src/lib/libplot/t4014/common/erase.c usr/src/lib/libplot/t4014/common/label.c usr/src/lib/libplot/t4014/common/line.c usr/src/lib/libplot/t4014/common/linemod.c usr/src/lib/libplot/t4014/common/llib-l4014 usr/src/lib/libplot/t4014/common/mapfile-vers usr/src/lib/libplot/t4014/common/move.c usr/src/lib/libplot/t4014/common/open.c usr/src/lib/libplot/t4014/common/point.c usr/src/lib/libplot/t4014/common/scale.c usr/src/lib/libplot/t4014/common/space.c usr/src/lib/libplot/t4014/common/subr.c usr/src/lib/libplot/t4014/i386/Makefile usr/src/lib/libplot/t4014/sparc/Makefile usr/src/lib/libplot/t4014/sparcv9/Makefile usr/src/lib/libplot/t450/Makefile usr/src/lib/libplot/t450/Makefile.com usr/src/lib/libplot/t450/amd64/Makefile usr/src/lib/libplot/t450/common/arc.c usr/src/lib/libplot/t450/common/box.c usr/src/lib/libplot/t450/common/circle.c usr/src/lib/libplot/t450/common/close.c usr/src/lib/libplot/t450/common/con.h usr/src/lib/libplot/t450/common/dot.c usr/src/lib/libplot/t450/common/erase.c usr/src/lib/libplot/t450/common/label.c usr/src/lib/libplot/t450/common/line.c usr/src/lib/libplot/t450/common/linmod.c usr/src/lib/libplot/t450/common/llib-l450 usr/src/lib/libplot/t450/common/mapfile-vers usr/src/lib/libplot/t450/common/move.c usr/src/lib/libplot/t450/common/open.c usr/src/lib/libplot/t450/common/point.c usr/src/lib/libplot/t450/common/space.c usr/src/lib/libplot/t450/common/subr.c usr/src/lib/libplot/t450/i386/Makefile usr/src/lib/libplot/t450/sparc/Makefile usr/src/lib/libplot/t450/sparcv9/Makefile usr/src/lib/libplot/vt0/Makefile usr/src/lib/libplot/vt0/Makefile.com usr/src/lib/libplot/vt0/amd64/Makefile usr/src/lib/libplot/vt0/common/arc.c usr/src/lib/libplot/vt0/common/box.c usr/src/lib/libplot/vt0/common/circle.c usr/src/lib/libplot/vt0/common/close.c usr/src/lib/libplot/vt0/common/con.h usr/src/lib/libplot/vt0/common/dot.c usr/src/lib/libplot/vt0/common/erase.c usr/src/lib/libplot/vt0/common/frame.c usr/src/lib/libplot/vt0/common/label.c usr/src/lib/libplot/vt0/common/line.c usr/src/lib/libplot/vt0/common/linmod.c usr/src/lib/libplot/vt0/common/llib-lvt0 usr/src/lib/libplot/vt0/common/mapfile-vers usr/src/lib/libplot/vt0/common/move.c usr/src/lib/libplot/vt0/common/open.c usr/src/lib/libplot/vt0/common/point.c usr/src/lib/libplot/vt0/common/space.c usr/src/lib/libplot/vt0/common/subr.c usr/src/lib/libplot/vt0/i386/Makefile usr/src/lib/libplot/vt0/sparc/Makefile usr/src/lib/libplot/vt0/sparcv9/Makefile usr/src/pkg/manifests/SUNWcs.mf usr/src/pkg/manifests/developer-library-lint.mf usr/src/pkg/manifests/system-header.mf usr/src/pkg/manifests/system-library.mf
diffstat 155 files changed, 0 insertions(+), 9074 deletions(-) [+]
line wrap: on
line diff
--- a/usr/src/cmd/Makefile	Mon Oct 25 04:08:25 2010 +0530
+++ b/usr/src/cmd/Makefile	Fri Oct 29 09:19:27 2010 -0700
@@ -408,7 +408,6 @@
 	tip		\
 	tnf		\
 	touch		\
-	tplot		\
 	tput		\
 	tr		\
 	trapstat	\
--- a/usr/src/cmd/tplot/Makefile	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,70 +0,0 @@
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-
-#
-# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
-# Use is subject to license terms.
-#
-# ident	"%Z%%M%	%I%	%E% SMI"
-#
-
-TPROG= t4014 t300 t300s t450
-PROG= $(TPROG) vplot
-SHFILES= tplot
-
-# include common definitions
-include ../Makefile.cmd
-
-CLOBBERFILES += $(SHFILES)
-
-# conditional assignments
-t% := LDLIBS += -l$(@F:t%=%)
-t% := MAPFILES = $(MAPFILE.INT) $(MAPFILE.NGB)
-t% := LDFLAGS += $(MAPFILES:%=-M%)
-
-.KEEP_STATE:
-
-all: $(PROG) $(SHFILES)
-
-$(TPROG): driver.o $$(MAPFILES)
-	$(LINK.c) -o $@ driver.o $(LDLIBS)
-	$(POST_PROCESS)
-
-$(ROOTSHFILES):	$(SHFILES)
-
-vplot: vplot.o banner.o
-	$(LINK.c) -o $@ vplot.o banner.o $(LDLIBS)
-	$(POST_PROCESS)
-
-install: $(ROOTLIBPROG) $(ROOTSHFILES)
-
-clean:
-	$(RM) driver.o vplot.o banner.o
-
-lint:
-	$(LINT.c) driver.c $(LDLIBS) -l4014
-	$(LINT.c) driver.c $(LDLIBS) -l300
-	$(LINT.c) driver.c $(LDLIBS) -l300s
-	$(LINT.c) driver.c $(LDLIBS) -l450
-	$(LINT.c) vplot.c banner.c $(LDLIBS)
-
-# include common targets
-include ../Makefile.targ
--- a/usr/src/cmd/tplot/banner.c	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,168 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License").  You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-
-/*
- * Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
- * Use is subject to license terms.
- */
-
-/*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
-/*	  All Rights Reserved  	*/
-
-#pragma ident	"%Z%%M%	%I%	%E% SMI"
-
-#include <stdio.h>
-#include <sys/types.h>
-#include <time.h>
-
-#define	FF	'\014'
-unsigned char	chrtab[][16] = {
-0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000, /*, sp, */
-0010,0010,0010,0010,0010,0010,0010,0010,0000,0000,0010,0000,0000,0000,0000,0000, /*, !, */
-0024,0024,0024,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000, /*, ", */
-0000,0000,0000,0044,0044,0176,0044,0044,0176,0044,0044,0000,0000,0000,0000,0000, /*, #, */
-0000,0010,0010,0010,0076,0101,0100,0076,0001,0101,0076,0010,0010,0000,0000,0000, /*, $, */
-0000,0000,0000,0141,0142,0004,0010,0010,0020,0043,0103,0000,0000,0000,0000,0000, /*, %, */
-0000,0000,0070,0104,0110,0060,0060,0111,0106,0106,0071,0000,0000,0000,0000,0000, /*, &, */
-0004,0010,0020,0040,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000, /*, ', */
-0000,0004,0010,0020,0040,0040,0040,0040,0040,0040,0020,0010,0004,0000,0000,0000, /*, (, */
-0000,0040,0020,0010,0004,0004,0004,0004,0004,0004,0010,0020,0040,0000,0000,0000, /*, ), */
-0000,0000,0000,0010,0111,0052,0034,0177,0034,0052,0111,0010,0000,0000,0000,0000, /*, *, */
-0000,0000,0000,0000,0010,0010,0010,0177,0010,0010,0010,0000,0000,0000,0000,0000, /*, +, */
-0000,0000,0000,0000,0000,0000,0000,0000,0000,0030,0030,0010,0020,0000,0000,0000, /*, ,, */
-0000,0000,0000,0000,0000,0000,0000,0176,0000,0000,0000,0000,0000,0000,0000,0000, /*, -, */
-0000,0000,0000,0000,0000,0000,0000,0000,0000,0030,0030,0000,0000,0000,0000,0000, /*, ., */
-0000,0000,0001,0002,0004,0010,0010,0010,0020,0040,0100,0000,0000,0000,0000,0000, /*, /, */
-0000,0030,0044,0102,0102,0102,0102,0102,0102,0044,0030,0000,0000,0000,0000,0000, /*, 0, */
-0000,0010,0030,0010,0010,0010,0010,0010,0010,0010,0034,0000,0000,0000,0000,0000, /*, 1, */
-0000,0070,0104,0004,0004,0010,0020,0040,0100,0100,0174,0000,0000,0000,0000,0000, /*, 2, */
-0000,0176,0004,0004,0010,0014,0002,0002,0002,0104,0070,0000,0000,0000,0000,0000, /*, 3, */
-0000,0004,0014,0024,0044,0104,0176,0004,0004,0004,0004,0000,0000,0000,0000,0000, /*, 4, */
-0000,0174,0100,0100,0130,0144,0002,0002,0102,0044,0030,0000,0000,0000,0000,0000, /*, 5, */
-0000,0074,0102,0100,0130,0144,0102,0102,0102,0044,0030,0000,0000,0000,0000,0000, /*, 6, */
-0000,0176,0004,0004,0010,0010,0020,0020,0040,0040,0040,0000,0000,0000,0000,0000, /*, 7, */
-0000,0034,0042,0101,0042,0076,0101,0101,0101,0101,0076,0000,0000,0000,0000,0000, /*, 8, */
-0000,0034,0042,0101,0101,0101,0043,0036,0004,0010,0020,0040,0000,0000,0000,0000, /*, 9, */
-0000,0000,0000,0000,0000,0000,0030,0030,0000,0030,0030,0000,0000,0000,0000,0000, /*, :, */
-0000,0000,0000,0000,0000,0000,0030,0030,0000,0030,0030,0020,0040,0000,0000,0000, /*, ;, */
-0002,0004,0010,0020,0040,0100,0040,0020,0010,0004,0002,0000,0000,0000,0000,0000, /*, <, */
-0000,0000,0000,0000,0177,0000,0177,0000,0000,0000,0000,0000,0000,0000,0000,0000, /*, =, */
-0100,0040,0020,0010,0004,0002,0004,0010,0020,0040,0100,0000,0000,0000,0000,0000, /*, >, */
-0000,0030,0044,0102,0001,0002,0004,0010,0010,0000,0010,0000,0000,0000,0000,0000, /*, ?, */
-0000,0074,0102,0101,0115,0123,0121,0121,0121,0111,0046,0000,0000,0000,0000,0000, /*, @, */
-0000,0010,0024,0042,0101,0101,0177,0101,0101,0101,0101,0000,0000,0000,0000,0000, /*, A, */
-0000,0176,0101,0101,0101,0176,0101,0101,0101,0101,0176,0000,0000,0000,0000,0000, /*, B, */
-0000,0076,0101,0100,0100,0100,0100,0100,0100,0101,0076,0000,0000,0000,0000,0000, /*, C, */
-0000,0176,0101,0101,0101,0101,0101,0101,0101,0101,0176,0000,0000,0000,0000,0000, /*, D, */
-0000,0176,0100,0100,0100,0170,0100,0100,0100,0100,0177,0000,0000,0000,0000,0000, /*, E, */
-0000,0177,0100,0100,0100,0174,0100,0100,0100,0100,0100,0000,0000,0000,0000,0000, /*, F, */
-0000,0076,0101,0100,0100,0117,0101,0101,0101,0101,0076,0000,0000,0000,0000,0000, /*, G, */
-0000,0101,0101,0101,0101,0176,0101,0101,0101,0101,0101,0000,0000,0000,0000,0000, /*, H, */
-0000,0034,0010,0010,0010,0010,0010,0010,0010,0010,0034,0000,0000,0000,0000,0000, /*, I, */
-0000,0016,0004,0004,0004,0004,0004,0004,0104,0104,0070,0000,0000,0000,0000,0000, /*, J, */
-0000,0101,0102,0104,0110,0120,0160,0110,0104,0102,0101,0000,0000,0000,0000,0000, /*, K, */
-0000,0100,0100,0100,0100,0100,0100,0100,0100,0100,0177,0000,0000,0000,0000,0000, /*, L, */
-0000,0101,0143,0125,0111,0101,0101,0101,0101,0101,0101,0000,0000,0000,0000,0000, /*, M, */
-0000,0101,0141,0121,0111,0105,0103,0101,0101,0101,0101,0000,0000,0000,0000,0000, /*, N, */
-0000,0076,0101,0101,0101,0101,0101,0101,0101,0101,0076,0000,0000,0000,0000,0000, /*, O, */
-0000,0176,0101,0101,0101,0176,0100,0100,0100,0100,0100,0000,0000,0000,0000,0000, /*, P, */
-0000,0076,0101,0101,0101,0101,0101,0101,0131,0105,0076,0002,0001,0000,0000,0000, /*, Q, */
-0000,0176,0101,0101,0101,0176,0104,0102,0101,0101,0101,0000,0000,0000,0000,0000, /*, R, */
-0000,0076,0101,0100,0100,0076,0001,0001,0001,0101,0076,0000,0000,0000,0000,0000, /*, S, */
-0000,0177,0010,0010,0010,0010,0010,0010,0010,0010,0010,0000,0000,0000,0000,0000, /*, T, */
-0000,0101,0101,0101,0101,0101,0101,0101,0101,0101,0076,0000,0000,0000,0000,0000, /*, U, */
-0000,0101,0101,0101,0101,0101,0101,0101,0042,0024,0010,0000,0000,0000,0000,0000, /*, V, */
-0000,0101,0101,0101,0101,0111,0111,0125,0143,0101,0101,0000,0000,0000,0000,0000, /*, W, */
-0000,0101,0101,0042,0024,0010,0024,0042,0101,0101,0101,0000,0000,0000,0000,0000, /*, X, */
-0000,0101,0042,0024,0010,0010,0010,0010,0010,0010,0010,0000,0000,0000,0000,0000, /*, Y, */
-0000,0177,0001,0002,0004,0010,0020,0040,0100,0100,0177,0000,0000,0000,0000,0000, /*, Z, */
-0000,0034,0020,0020,0020,0020,0020,0020,0020,0020,0020,0034,0000,0000,0000,0000, /*, [, */
-0000,0000,0100,0040,0020,0010,0010,0010,0004,0002,0001,0000,0000,0000,0000,0000, /*, , \, */
-0000,0070,0010,0010,0010,0010,0010,0010,0010,0010,0010,0070,0000,0000,0000,0000, /*, ], */
-0010,0024,0042,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000, /*, ^, */
-0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0377,0000,0000, /*, _, */
-0040,0020,0010,0004,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000, /*, `, */
-0000,0000,0000,0000,0000,0074,0002,0076,0102,0102,0076,0000,0000,0000,0000,0000, /*, a, */
-0000,0100,0100,0100,0100,0174,0102,0102,0102,0102,0174,0000,0000,0000,0000,0000, /*, b, */
-0000,0000,0000,0000,0000,0074,0102,0100,0100,0102,0074,0000,0000,0000,0000,0000, /*, c, */
-0002,0002,0002,0002,0002,0076,0102,0102,0102,0102,0076,0000,0000,0000,0000,0000, /*, d, */
-0000,0000,0000,0000,0000,0074,0102,0174,0100,0102,0074,0000,0000,0000,0000,0000, /*, e, */
-0000,0016,0020,0020,0020,0176,0020,0020,0020,0020,0020,0000,0000,0000,0000,0000, /*, f, */
-0000,0000,0000,0000,0000,0076,0102,0102,0102,0102,0076,0002,0002,0102,0076,0000, /*, g, */
-0000,0100,0100,0100,0100,0174,0102,0102,0102,0102,0102,0000,0000,0000,0000,0000, /*, h, */
-0000,0000,0000,0010,0000,0030,0010,0010,0010,0010,0034,0000,0000,0000,0000,0000, /*, i, */
-0000,0000,0000,0010,0000,0030,0010,0010,0010,0010,0010,0010,0010,0050,0020,0000, /*, j, */
-0000,0100,0100,0100,0100,0106,0110,0120,0160,0110,0106,0000,0000,0000,0000,0000, /*, k, */
-0000,0030,0010,0010,0010,0010,0010,0010,0010,0010,0034,0000,0000,0000,0000,0000, /*, l, */
-0000,0000,0000,0000,0000,0166,0111,0111,0111,0111,0111,0000,0000,0000,0000,0000, /*, m, */
-0000,0000,0000,0000,0100,0174,0102,0102,0102,0102,0102,0000,0000,0000,0000,0000, /*, n, */
-0000,0000,0000,0000,0000,0074,0102,0102,0102,0102,0074,0000,0000,0000,0000,0000, /*, o, */
-0000,0000,0000,0000,0000,0174,0102,0102,0102,0102,0174,0100,0100,0100,0100,0000, /*, p, */
-0000,0000,0000,0000,0000,0076,0102,0102,0102,0102,0076,0002,0002,0002,0002,0000, /*, q, */
-0000,0000,0000,0000,0000,0134,0142,0100,0100,0100,0100,0000,0000,0000,0000,0000, /*, r, */
-0000,0000,0000,0000,0000,0076,0100,0074,0002,0102,0074,0000,0000,0000,0000,0000, /*, s, */
-0000,0020,0020,0020,0020,0176,0020,0020,0020,0020,0014,0000,0000,0000,0000,0000, /*, t, */
-0000,0000,0000,0000,0000,0102,0102,0102,0102,0102,0075,0000,0000,0000,0000,0000, /*, u, */
-0000,0000,0000,0000,0000,0101,0101,0101,0042,0024,0010,0000,0000,0000,0000,0000, /*, v, */
-0000,0000,0000,0000,0000,0111,0111,0111,0111,0111,0066,0000,0000,0000,0000,0000, /*, w, */
-0000,0000,0000,0000,0000,0102,0044,0030,0030,0044,0102,0000,0000,0000,0000,0000, /*, x, */
-0000,0000,0000,0000,0000,0102,0102,0102,0042,0024,0010,0020,0040,0100,0000,0000, /*, y, */
-0000,0000,0000,0000,0000,0176,0004,0010,0020,0040,0176,0000,0000,0000,0000,0000, /*, z, */
-0000,0014,0020,0020,0020,0020,0040,0020,0020,0020,0020,0014,0000,0000,0000,0000, /*, {, */
-0000,0010,0010,0010,0010,0000,0000,0010,0010,0010,0010,0000,0000,0000,0000,0000, /*, |, */
-0000,0030,0010,0010,0010,0010,0004,0010,0010,0010,0010,0030,0000,0000,0000,0000, /*, }, */
-0020,0052,0004,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000, /*, ~, */
-0000,0176,0176,0176,0176,0176,0176,0176,0176,0176,0176,0000,0000,0000,0000,0000, /*, del, */
-};
-
-void
-banner(FILE *out, char *s)
-{
-	long timeb;
-	char *sp;
-	int i, j, t, lsw;
-
-	for(lsw=0; s[lsw] && lsw<5; lsw++);
-	fprintf(out, "\n\n\n\n\n\n\n\n");
-	for (i=0; i<16; i++) {
-		if(lsw < 5)
-			fprintf(out, "                ");
-		for (sp=s; *sp; sp++) {
-			if (*sp<=' '|| *sp >'}')
-				continue;
-			fprintf(out, "  ");
-			t = chrtab[*sp - ' '][i];
-			for (j=7; j>=0; j--)
-				if ((t>>j) & 01)
-					putc('X', out);
-				else
-					putc(' ', out);
-		}
-		putc('\n', out);
-	}
-	fprintf(out, "\n\n\n\n\n\n\n\n");
-	time(&timeb);
-	fprintf(out, "                ");
-	fprintf(out, ctime(&timeb));
-	putc(FF, out);
-}
-
--- a/usr/src/cmd/tplot/driver.c	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,193 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License").  You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-
-/*
- * Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
- * Use is subject to license terms.
- */
-
-/*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
-/*	  All Rights Reserved  	*/
-
-#pragma ident	"%Z%%M%	%I%	%E% SMI"
-
-#include <stdio.h>
-#include <math.h>
-#include <errno.h>
-
-float deltx = 4095.0;
-float delty = 4095.0;
-
-static void	fplt(FILE *);
-static int	getsi(FILE *);
-static void	getsd(char *, FILE *);
-
-int
-main(int argc, char **argv)
-{
-	int std=1;
-	FILE *fin;
-
-	while(argc-- > 1) {
-		if(*argv[1] == '-')
-			switch(argv[1][1]) {
-				case 'l':
-					deltx = atoi(&argv[1][2]) - 1;
-					break;
-				case 'w':
-					delty = atoi(&argv[1][2]) - 1;
-					break;
-				}
-
-		else {
-			std = 0;
-			if ((fin = fopen(argv[1], "r")) == NULL) {
-				fprintf(stderr, "can't open %s\n", argv[1]);
-				exit(1);
-				}
-			fplt(fin);
-			}
-		argv++;
-		}
-	if (std)
-		fplt( stdin );
-	return (0);
-}
-
-
-static void
-fplt(FILE *fin)
-{
-	int c;
-	char s[256];
-	int xi,yi,x0,y0,x1,y1,r,dx,n,i;
-	int pat[256];
-
-	openpl();
-	while((c=getc(fin)) != EOF){
-		switch(c){
-		case 'm':
-			xi = getsi(fin);
-			yi = getsi(fin);
-			move(xi,yi);
-			break;
-		case 'l':
-			x0 = getsi(fin);
-			y0 = getsi(fin);
-			x1 = getsi(fin);
-			y1 = getsi(fin);
-			line(x0,y0,x1,y1);
-			break;
-		case 't':
-			getsd(s,fin);
-			label(s);
-			break;
-		case 'e':
-			erase();
-			break;
-		case 'p':
-			xi = getsi(fin);
-			yi = getsi(fin);
-			point(xi,yi);
-			break;
-		case 'n':
-			xi = getsi(fin);
-			yi = getsi(fin);
-			cont(xi,yi);
-			break;
-		case 's':
-			x0 = getsi(fin);
-			y0 = getsi(fin);
-			x1 = getsi(fin);
-			y1 = getsi(fin);
-			space(x0,y0,x1,y1);
-			break;
-		case 'a':
-			xi = getsi(fin);
-			yi = getsi(fin);
-			x0 = getsi(fin);
-			y0 = getsi(fin);
-			x1 = getsi(fin);
-			y1 = getsi(fin);
-			arc(xi,yi,x0,y0,x1,y1);
-			break;
-		case 'c':
-			xi = getsi(fin);
-			yi = getsi(fin);
-			r = getsi(fin);
-			circle(xi,yi,r);
-			break;
-		case 'f':
-			getsd(s,fin);
-			linemod(s);
-			break;
-		case 'd':
-			xi = getsi(fin);
-			yi = getsi(fin);
-			dx = getsi(fin);
-			n = getsi(fin);
-			for(i=0; i<n; i++)pat[i] = getsi(fin);
-			dot(xi,yi,dx,n,pat);
-			break;
-			}
-		}
-	closepl();
-}
-
-static int
-getsi(FILE *fin)
-{
-	/* get an integer stored in 2 ascii bytes. */
-	short a, b;
-	if((b = getc(fin)) == EOF)
-		return(EOF);
-	if((a = getc(fin)) == EOF)
-		return(EOF);
-	a = a<<8;
-	return(a|b);
-}
-
-static void
-getsd(char *s, FILE *fin)
-{
-	for( ; *s = getc(fin); s++)
-		if(*s == '\n')
-			break;
-	*s = '\0';
-}
-
-int
-matherr(struct exception *x)
-{
-if(x->type==DOMAIN)
-	{errno=EDOM;
-	if(!strcmp("log",x->name))x->retval = (-HUGE);
-	else x->retval = 0;
-	return(1);
-	}
-else  if ((x->type)==SING)
-	{errno=EDOM;
-	x->retval = (-HUGE);
-	return(1);
-	}
-else return(0);
-}
--- a/usr/src/cmd/tplot/mapfile-intf	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,48 +0,0 @@
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-
-#
-# Copyright (c) 2007, 2010, Oracle and/or its affiliates. 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
-
-# t* utilities interpose on a couple of libm and libt* items.
-SYMBOL_SCOPE {
-	global:
-		matherr		{ FLAGS = INTERPOSE };
-		deltx		{ FLAGS = INTERPOSE };
-		delty		{ FLAGS = INTERPOSE };
-};
--- a/usr/src/cmd/tplot/tplot.sh	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,41 +0,0 @@
-#!/usr/bin/sh
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License, Version 1.0 only
-# (the "License").  You may not use this file except in compliance
-# with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-#	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T
-#	  All Rights Reserved
-
-
-#ident	"%Z%%M%	%I%	%E% SMI"
-
-case $1 in
--T*)	t=$1
-	shift ;;
-*)	t=-T$TERM
-esac
-case $t in
--T450)	exec /usr/lib/t450 $*;;
--T300)	exec /usr/lib/t300 $*;;
--T300S|-T300s)	exec /usr/lib/t300s $*;;
--Tver)	exec /usr/lib/vplot $*;;
--Ttek|-T4014)	exec /usr/lib/t4014 $* ;;
-*)  echo terminal type not known 1>&2; exit 1
-esac
--- a/usr/src/cmd/tplot/vplot.c	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,482 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License").  You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/*
- * Copyright 2002 Sun Microsystems, Inc.  All rights reserved.
- * Use is subject to license terms.
- */
-
-/*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
-/*	  All Rights Reserved  	*/
-
-
-#pragma ident	"%Z%%M%	%I%	%E% SMI"
-
-#include <stdio.h>
-#include <signal.h>
-#include <values.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <fcntl.h>
-#include <sgtty.h>
-#include <stdlib.h>
-
-#define	NB	88
-#define	BSIZ	512
-#define	mapx(x)	((1536*((x)-botx)/del)+centx)
-#define	mapy(y)	((1536*(del-(y)+boty)/del)-centy)
-#define	SOLID -1
-#define	DOTTED 014
-#define	SHORTDASHED 034
-#define	DOTDASHED 054
-#define	LONGDASHED 074
-#define	SETSTATE	(('v'<<8)+1)
-#define	NEG_MASK  (MAXINT<<(2*BITS(char)))
-#define	MAXCHAR   ((char)~((char)(1<<BITS(char)-1)))
-#define	BUILDINT(ubyte, lbyte)  \
-	ubyte > MAXCHAR \
-	? (ubyte << BITS(char))|lbyte|NEG_MASK \
-	: (ubyte << BITS(char))|lbyte
-
-int	linmod	= SOLID;
-int	again;
-int	done1;
-extern char	chrtab[][16];
-short	plotcom[] = { 0200, 0, 0, 0 };
-short	eotcom[] = { 0210, 0, 0, 0 };
-char	blocks	[NB][BSIZ];
-short	obuf[264];
-int	lastx;
-int	lasty;
-double	topx	= 1536;
-double	topy	= 1536;
-double	botx	= 0;
-double	boty	= 0;
-int	centx;
-int	centy;
-double	delx	= 1536;
-double	dely	= 1536;
-double	del	= 1536;
-int	bflag;
-int	fflag;
-char	*banname;
-FILE	*vpstr;
-
-struct	buf {
-	int	bno;
-	char	*block;
-};
-struct	buf	bufs[NB];
-
-int	in, out;
-char picname[] = "/var/tmp/rasterXXXXXX";
-char *picture;
-
-void	getpict(void);
-void	plotch(int);
-void	putpict(void);
-void	line(int, int, int, int);
-void	point(int, int);
-void	getblk(int);
-void	onintr(void);
-
-int
-main(int argc, char **argv)
-{
-	int i;
-	int c;
-	char *fname;
-
-	while ((c = getopt(argc, argv, "e:b:")) != EOF)
-	switch (c) {
-		case 'b':
-			bflag++;
-			banname = optarg;
-			break;
-
-		case 'e':
-			fname = optarg;
-			fflag++;
-			break;
-
-		case '?':
-			fprintf(stderr,
-			    "usage: vplot [ -f raster ] [ file ]\n");
-			exit(1);
-	}
-	if (fflag) {
-		if ((in = open(fname, O_RDONLY)) < 0) {
-			fprintf(stderr, "vplot: cannot open %s\n", fname);
-			exit(1);
-		}
-		putpict();
-		exit(0);
-	}
-	if (optind < argc)
-		if (freopen(argv[optind], "r", stdin) == NULL) {
-			fprintf(stderr,
-			    "vplot: cannot open %s\n", argv[optind]);
-			exit(1);
-		}
-	signal(SIGTERM, (void (*)(int))onintr);
-	if (signal(SIGINT, SIG_IGN) != SIG_IGN)
-		signal(SIGINT, (void (*)(int))onintr);
-	if (signal(SIGHUP, SIG_IGN) != SIG_IGN)
-		signal(SIGHUP, (void (*)(int))onintr);
-another:
-	for (i = 0; i < NB; i++) {
-		bufs[i].bno = -1;
-		bufs[i].block = blocks[i];
-	}
-
-	if ((picture = mktemp(picname)) == NULL) {
-		fprintf(stderr, "vplot: cannot create unique tmp. file name\n");
-		exit(1);
-	}
-
-	if ((out = open(picture, (O_WRONLY|O_CREAT|O_TRUNC|O_EXCL),
-	    (S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH))) == -1) {
-		fprintf(stderr, "vplot: cannot open %s\n", picture);
-		exit(1);
-	}
-
-	zseek(out, 32*32);
-	write(out, blocks[0], BSIZ);
-/*
- * delete following code when filsys deals properly with
- * holes in files
- */
-	for (i = 0; i < 512; i++)
-		blocks[0][i] = 0;
-	zseek(out, 0);
-	for (i = 0; i < 32*32; i++)
-		write(out, blocks[0], 512);
-	getpict();
-	for (i = 0; i < NB; i++)
-		if (bufs[i].bno != -1) {
-			zseek(out, bufs[i].bno);
-			write(out, bufs[i].block, BSIZ);
-		}
-	putpict();
-	if (again) {
-		close(out);
-		goto another;
-	}
-	unlink(picture);
-	return (0);
-}
-
-void
-getpict(void)
-{
-	int x1, y1;
-
-	again = 0;
-	for (;;)
-	switch (x1 = getc(stdin)) {
-	case 's':
-		botx = getw(stdin);
-		boty = getw(stdin);
-		topx = getw(stdin);
-		topy = getw(stdin);
-		delx = topx-botx;
-		dely = topy-boty;
-		if (dely/delx > 1536./2048.)
-			del = dely;
-		else
-			del = delx * (1566./2048.);
-		centx = 0;
-		centx = (2048 - mapx(topx)) / 2;
-		centy = 0;
-		centy = mapy(topy) / 2;
-		continue;
-
-	case 'l':
-		done1 |= 01;
-		x1 = mapx(getw(stdin));
-		y1 = mapy(getw(stdin));
-		lastx = mapx(getw(stdin));
-		lasty = mapy(getw(stdin));
-		line(x1, y1, lastx, lasty);
-		continue;
-
-	case 'm':
-		lastx = mapx(getw(stdin));
-		lasty = mapy(getw(stdin));
-		continue;
-
-	case 't':
-		done1 |= 01;
-		while ((x1 = getc(stdin)) != '\n')
-			plotch(x1);
-		continue;
-
-	case 'e':
-		if (done1) {
-			again++;
-			return;
-		}
-		continue;
-
-	case 'p':
-		done1 |= 01;
-		lastx = mapx(getw(stdin));
-		lasty = mapy(getw(stdin));
-		point(lastx, lasty);
-		point(lastx+1, lasty);
-		point(lastx, lasty+1);
-		point(lastx+1, lasty+1);
-		continue;
-
-	case 'n':
-		done1 |= 01;
-		x1 = mapx(getw(stdin));
-		y1 = mapy(getw(stdin));
-		line(lastx, lasty, x1, y1);
-		lastx = x1;
-		lasty = y1;
-		continue;
-
-	case 'f':
-		getw(stdin);
-		getc(stdin);
-		switch (getc(stdin)) {
-		case 't':
-			linmod = DOTTED;
-			break;
-		default:
-		case 'i':
-			linmod = SOLID;
-			break;
-		case 'g':
-			linmod = LONGDASHED;
-			break;
-		case 'r':
-			linmod = SHORTDASHED;
-			break;
-		case 'd':
-			linmod = DOTDASHED;
-			break;
-		}
-		while ((x1 = getc(stdin)) != '\n')
-			if (x1 == -1)
-				return;
-		continue;
-
-	case 'd':
-		getw(stdin);
-		getw(stdin);
-		getw(stdin);
-		x1 = getw(stdin);
-		while (--x1 >= 0)
-			getw(stdin);
-		continue;
-
-	case -1:
-		return;
-
-	default:
-		printf("Botch\n");
-		return;
-	}
-}
-
-void
-plotch(int c)
-{
-	int j;
-	char *cp;
-	int i;
-
-	if (c < ' ' || c > 0177)
-		return;
-	cp = chrtab[c-' '];
-	for (i = -16; i < 16; i += 2) {
-		c = *cp++;
-		for (j = 7; j >= 0; --j)
-			if ((c>>j)&1) {
-				point(lastx+6-j*2, lasty+i);
-				point(lastx+7-j*2, lasty+i);
-				point(lastx+6-j*2, lasty+i+1);
-				point(lastx+7-j*2, lasty+i+1);
-			}
-	}
-	lastx += 16;
-}
-
-int	f; /* versatec file number */
-
-void
-putpict(void)
-{
-	int x;
-	short *ip, *op;
-	int y;
-
-	if (f == 0) {
-		f = open("/dev/vp", O_WRONLY);
-		if (f < 0) {
-			fprintf(stderr, "Cannot open vp\n");
-			unlink(picture);
-			exit(1);
-		}
-		vpstr = fdopen(f, "w");
-		if (bflag)  {
-			banner(vpstr, banname);
-			fflush(vpstr);
-		}
-		ioctl(f, TIOCSETP, plotcom);
-	}
-	op = obuf;
-	lseek(in, 0L, 0);
-	for (y = 0; y < 2048; y++) {
-		if ((y&077) == 0)
-			read(in, blocks[0], 32*BSIZ);
-		for (x = 0; x < 32; x++)  {
-			ip = (short *)&blocks[x][(y&077)<<3];
-			*op++ = *ip++;
-			*op++ = *ip++;
-			*op++ = *ip++;
-			*op++ = *ip++;
-		}
-		*op++ = 0;
-		*op++ = 0;
-		*op++ = 0;
-		*op++ = 0;
-		if (y&1) {
-			write(f, (char *)obuf, sizeof (obuf));
-			op = obuf;
-		}
-	}
-}
-
-void
-line(int x0, int y0, int x1, int y1)
-{
-	int dx, dy;
-	int xinc, yinc;
-	int res1;
-	int res2;
-	int slope;
-
-	xinc = 1;
-	yinc = 1;
-	if ((dx = x1-x0) < 0) {
-		xinc = -1;
-		dx = -dx;
-	}
-	if ((dy = y1-y0) < 0) {
-		yinc = -1;
-		dy = -dy;
-	}
-	slope = xinc*yinc;
-	res1 = 0;
-	res2 = 0;
-	if (dx >= dy)
-	while (x0 != x1) {
-	if ((x0 + slope*y0) & linmod)
-	if (((x0>>6) + ((y0&~077)>>1)) == bufs[0].bno)
-		bufs[0].block[((y0&077)<<3)+((x0>>3)&07)] |= 1 << (7-(x0&07));
-	else
-		point(x0, y0);
-		if (res1 > res2) {
-			res2 += dx - res1;
-			res1 = 0;
-			y0 += yinc;
-		}
-		res1 += dy;
-		x0 += xinc;
-	} else while (y0 != y1) {
-	if ((x0 + slope * y0) & linmod)
-		if (((x0 >> 6) + ((y0 & ~077) >> 1)) == bufs[0].bno)
-			bufs[0].block[((y0 & 077) << 3)+((x0 >> 3) & 07)]
-			    |= 1 << (7 - (x0& 07));
-	else
-		point(x0, y0);
-		if (res1 > res2) {
-			res2 += dy - res1;
-			res1 = 0;
-			x0 += xinc;
-		}
-		res1 += dx;
-		y0 += yinc;
-	}
-	if ((x1+slope*y1)&linmod)
-	if (((x1>>6) + ((y1&~077)>>1)) == bufs[0].bno)
-		bufs[0].block[((y1&077)<<3)+((x1>>3)&07)] |= 1 << (7-(x1&07));
-	else
-		point(x1, y1);
-}
-
-void
-point(int x, int y)
-{
-	int bno;
-
-	bno = ((x&03700)>>6) + ((y&03700)>>1);
-	if (bno != bufs[0].bno) {
-		if (bno < 0 || bno >= 1024)
-			return;
-		getblk(bno);
-	}
-	bufs[0].block[((y&077)<<3)+((x>>3)&07)] |= 1 << (7-(x&07));
-}
-
-void
-getblk(int b)
-{
-	struct buf *bp1, *bp2;
-	char *tp;
-
-loop:
-	for (bp1 = bufs; bp1 < &bufs[NB]; bp1++) {
-		if (bp1->bno == b || bp1->bno == -1) {
-			tp = bp1->block;
-			for (bp2 = bp1; bp2 > bufs; --bp2) {
-				bp2->bno = (bp2-1)->bno;
-				bp2->block = (bp2-1)->block;
-			}
-			bufs[0].bno = b;
-			bufs[0].block = tp;
-			return;
-		}
-	}
-	zseek(out, bufs[NB-1].bno);
-	write(out, bufs[NB-1].block, BSIZ);
-	zseek(in, b);
-	read(in, bufs[NB-1].block, BSIZ);
-	bufs[NB-1].bno = b;
-	goto loop;
-}
-
-void
-onintr(void)
-{
-	unlink(picture);
-	exit(1);
-}
-
-
-int
-zseek(int a, int b)
-{
-	return (lseek(a, (long)b*512, 0));
-}
--- a/usr/src/lib/Makefile	Mon Oct 25 04:08:25 2010 +0530
+++ b/usr/src/lib/Makefile	Fri Oct 29 09:19:27 2010 -0700
@@ -127,7 +127,6 @@
 	libumem		\
 	libnvpair	.WAIT	\
 	libexacct	\
-	libplot		\
 	libldap4	\
 	libsasl		\
 	libldap5	\
@@ -435,7 +434,6 @@
 	libpctx		\
 	libpicl		\
 	libpicltree	\
-	libplot		\
 	libpool		\
 	libpp		\
 	libproc		\
--- a/usr/src/lib/libplot/Makefile	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,60 +0,0 @@
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License, Version 1.0 only
-# (the "License").  You may not use this file except in compliance
-# with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-#
-#ident	"%Z%%M%	%I%	%E% SMI"
-#
-# Copyright (c) 1989 by Sun Microsystems, Inc.
-#
-# lib/libplot/Makefile
-#
-# include global definitions
-include ../../Makefile.master
-
-SUBDIRS= plot t300 t300s t4014 t450 vt0
-
-all:=	  TARGET= all
-clean:=   TARGET= clean
-clobber:= TARGET= clobber
-install:= TARGET= install
-lint:=	  TARGET= lint
-
-HDRS=	plot.h
-ROOTHDRDIR=	$(ROOT)/usr/include
-ROOTHDRS=	$(HDRS:%=$(ROOTHDRDIR)/%)
-CHECKHDRS=	$(HDRS:%.h=%.check)
-
-# install rule for install_h target
-$(ROOTHDRDIR)/%: %
-	$(INS.file)
-
-.KEEP_STATE:
-
-all clean clobber install lint: $(SUBDIRS)
-
-install_h: $(ROOTHDRS)
-
-check:  $(CHECKHDRS)
-$(SUBDIRS): FRC
-	@cd $@; pwd; $(MAKE) $(TARGET)
-
-
-FRC:
--- a/usr/src/lib/libplot/plot.h	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,78 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License").  You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/*
- * Copyright (c) 1997 by Sun Microsystems, Inc.
- * All rights reserved
- */
-
-#ifndef	_PLOT_H
-#define	_PLOT_H
-
-#pragma ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 1.2	*/
-
-#ifdef	__cplusplus
-extern "C" {
-#endif
-
-#ifdef	__STDC__
-
-extern	void arc(short, short, short, short, short, short);
-extern	void box(short, short, short, short);
-extern	void circle(short, short, short);
-extern	void closepl(void);
-extern	void closevt(void);
-extern	void cont(short, short);
-extern	void erase(void);
-extern	void label(char *);
-extern	void line(short, short, short, short);
-extern	void linmod(char *);
-extern	void move(short, short);
-extern	void openpl(void);
-extern	void openvt(void);
-extern	void point(short, short);
-extern	void space(short, short, short, short);
-
-#else
-
-extern	void arc();
-extern	void box();
-extern	void circle();
-extern	void closepl();
-extern	void closevt();
-extern	void cont();
-extern	void erase();
-extern	void label();
-extern	void line();
-extern	void linmod();
-extern	void move();
-extern	void openpl();
-extern	void openvt();
-extern	void point();
-extern	void space();
-
-#endif /* __STDC__ */
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* _PLOT_H */
--- a/usr/src/lib/libplot/plot/Makefile	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,48 +0,0 @@
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-#
-# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
-# Use is subject to license terms.
-#
-# ident	"%Z%%M%	%I%	%E% SMI"
-#
-
-include		../../Makefile.lib
-
-SUBDIRS =	$(MACH)
-$(BUILD64)SUBDIRS += $(MACH64)
-
-all :=		TARGET= all
-clean :=	TARGET= clean
-clobber :=	TARGET= clobber
-delete :=	TARGET= delete
-install :=	TARGET= install
-lint :=		TARGET= lint
-
-.KEEP_STATE:
-
-all clean clobber delete install lint: $(SUBDIRS)
-
-
-$(SUBDIRS):	FRC
-	 @cd $@; pwd; $(MAKE) $(TARGET)
-
-FRC:
--- a/usr/src/lib/libplot/plot/Makefile.com	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,64 +0,0 @@
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-#
-# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
-# Use is subject to license terms.
-#
-# ident	"%Z%%M%	%I%	%E% SMI"
-#
-
-LIBRARY= libplot.a
-VERS= .1
-
-OBJECTS=	\
-	arc.o	box.o	circle.o	close.o	\
-	cont.o	dot.o	erase.o		label.o	\
-	line.o	linmod.o	move.o	open.o	\
-	point.o	putsi.o	space.o
-
-# include library definitions
-include ../../../Makefile.lib
-
-SRCDIR =	../common
-
-LIBS =		$(DYNLIB) $(LINTLIB)
-
-$(LINTLIB):= SRCS=../common/llib-lplot
-
-LINTSRC=	$(LINTLIB:%.ln=%)
-
-CFLAGS +=	$(CCVERBOSE)
-LDLIBS += -lc
-
-.KEEP_STATE:
-
-lint: lintcheck
-
-# include library targets
-include ../../../Makefile.targ
-
-pics/%.o: ../common/%.c
-	$(COMPILE.c) -o $@ $<
-	$(POST_PROCESS_O)
-
-# install rule for lint library target
-$(ROOTLINTDIR)/%:	../common/%
-	$(INS.file)
--- a/usr/src/lib/libplot/plot/amd64/Makefile	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,39 +0,0 @@
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-#
-# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
-# Use is subject to license terms.
-#
-# ident	"%Z%%M%	%I%	%E% SMI"
-#
-
-include ../Makefile.com
-include ../../../Makefile.lib.64
-
-LINTFLAGS64 +=	-erroff=E_ASSIGMENT_CAUSE_LOSS_PREC
-
-LIBS= $(DYNLIB) $(LINTLIB)
-
-.KEEP_STATE:
-
-all: $(LIBS)
-
-install: all $(ROOTLIBS64) $(ROOTLINKS64)
--- a/usr/src/lib/libplot/plot/common/arc.c	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,47 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License").  You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
-/*	  All Rights Reserved  	*/
-
-
-/*
- * Copyright (c) 1997 by Sun Microsystems, Inc.
- * All rights reserved
- */
-
-#pragma ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 1.2	*/
-/*LINTLIBRARY*/
-
-#include <stdio.h>
-#include "con.h"
-
-void
-arc(short xi, short yi, short x0, short y0, short x1, short y1)
-{
-	(void) putc('a', stdout);
-	putsi(xi);
-	putsi(yi);
-	putsi(x0);
-	putsi(y0);
-	putsi(x1);
-	putsi(y1);
-}
--- a/usr/src/lib/libplot/plot/common/box.c	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,45 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License").  You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
-/*	  All Rights Reserved  	*/
-
-
-/*
- * Copyright (c) 1997 by Sun Microsystems, Inc.
- * All rights reserved
- */
-
-#pragma ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 1.2	*/
-/*LINTLIBRARY*/
-
-#include <plot.h>
-
-void
-box(short x0, short y0, short x1, short y1)
-{
-	move(x0, y0);
-	cont(x0, y1);
-	cont(x1, y1);
-	cont(x1, y0);
-	cont(x0, y0);
-	move(x1, y1);
-}
--- a/usr/src/lib/libplot/plot/common/circle.c	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,44 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License").  You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
-/*	  All Rights Reserved  	*/
-
-
-/*
- * Copyright (c) 1997 by Sun Microsystems, Inc.
- * All rights reserved
- */
-
-#pragma ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 1.2	*/
-/*LINTLIBRARY*/
-
-#include <stdio.h>
-#include "con.h"
-
-void
-circle(short x, short y, short r)
-{
-	(void) putc('c', stdout);
-	putsi(x);
-	putsi(y);
-	putsi(r);
-}
--- a/usr/src/lib/libplot/plot/common/close.c	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,46 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License").  You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
-/*	  All Rights Reserved  	*/
-
-
-/*
- * Copyright (c) 1997 by Sun Microsystems, Inc.
- * All rights reserved
- */
-
-#pragma ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 1.2	*/
-/*LINTLIBRARY*/
-
-#include <stdio.h>
-
-void
-closevt(void)
-{
-	(void) fflush(stdout);
-}
-
-void
-closepl(void)
-{
-	(void) fflush(stdout);
-}
--- a/usr/src/lib/libplot/plot/common/con.h	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,31 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License").  You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/*
- * Copyright (c) 1997 by Sun Microsystems, Inc.
- * All rights reserved
- */
-
-#pragma ident	"%Z%%M%	%I%	%E% SMI"
-
-#include <termio.h>
-
-extern void putsi(short);
--- a/usr/src/lib/libplot/plot/common/cont.c	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,43 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License").  You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
-/*	  All Rights Reserved  	*/
-
-
-/*
- * Copyright (c) 1997 by Sun Microsystems, Inc.
- * All rights reserved
- */
-
-#pragma ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 1.2	*/
-/*LINTLIBRARY*/
-
-#include <stdio.h>
-#include "con.h"
-
-void
-cont(short xi, short yi)
-{
-	(void) putc('n', stdout);
-	putsi(xi);
-	putsi(yi);
-}
--- a/usr/src/lib/libplot/plot/common/dot.c	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,48 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License").  You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
-/*	  All Rights Reserved  	*/
-
-
-/*
- * Copyright (c) 1997 by Sun Microsystems, Inc.
- * All rights reserved
- */
-
-#pragma ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 1.2	*/
-/*LINTLIBRARY*/
-
-#include <stdio.h>
-#include "con.h"
-
-void
-dot(short xi, short yi, short dx, short n, short pat[])
-{
-	short i;
-	(void) putc('d', stdout);
-	putsi(xi);
-	putsi(yi);
-	putsi(dx);
-	putsi(n);
-	for (i = 0; i < n; i++)
-		putsi(pat[i]);
-}
--- a/usr/src/lib/libplot/plot/common/erase.c	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,40 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License").  You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
-/*	  All Rights Reserved  	*/
-
-
-/*
- * Copyright (c) 1997 by Sun Microsystems, Inc.
- * All rights reserved
- */
-
-#pragma ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 1.2	*/
-/*LINTLIBRARY*/
-
-#include <stdio.h>
-
-void
-erase(void)
-{
-	(void) putc('e', stdout);
-}
--- a/usr/src/lib/libplot/plot/common/label.c	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,44 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License").  You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
-/*	  All Rights Reserved  	*/
-
-
-/*
- * Copyright (c) 1997 by Sun Microsystems, Inc.
- * All rights reserved
- */
-
-#pragma ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 1.2	*/
-/*LINTLIBRARY*/
-
-#include <stdio.h>
-
-void
-label(char *s)
-{
-	int i;
-	(void) putc('t', stdout);
-	for (i = 0; s[i]; )
-		(void) putc(s[i++], stdout);
-	(void) putc('\n', stdout);
-}
--- a/usr/src/lib/libplot/plot/common/line.c	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,45 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License").  You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
-/*	  All Rights Reserved  	*/
-
-
-/*
- * Copyright (c) 1997 by Sun Microsystems, Inc.
- * All rights reserved
- */
-
-#pragma ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 1.2	*/
-/*LINTLIBRARY*/
-
-#include <stdio.h>
-#include "con.h"
-
-void
-line(short x0, short y0, short x1, short y1)
-{
-	(void) putc('l', stdout);
-	putsi(x0);
-	putsi(y0);
-	putsi(x1);
-	putsi(y1);
-}
--- a/usr/src/lib/libplot/plot/common/linmod.c	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,44 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License").  You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
-/*	  All Rights Reserved  	*/
-
-
-/*
- * Copyright (c) 1997 by Sun Microsystems, Inc.
- * All rights reserved
- */
-
-#pragma ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 1.2	*/
-/*LINTLIBRARY*/
-
-#include <stdio.h>
-
-void
-linemod(char *s)
-{
-	int i;
-	(void) putc('f', stdout);
-	for (i = 0; s[i]; )
-		(void) putc(s[i++], stdout);
-	(void) putc('\n', stdout);
-}
--- a/usr/src/lib/libplot/plot/common/llib-lplot	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,48 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License").  You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/*
- * Copyright (c) 1997 by Sun Microsystems, Inc.
- * All rights reserved
- */
-
-#pragma ident	"%Z%%M%	%I%	%E% SMI" 
-
-/*LINTLIBRARY*/
-/*PROTOLIB1*/
-
-#include <stdio.h>
-
-void 	arc(short, short, short, short, short, short);
-void 	box(short, short, short, short);
-void 	circle(short, short, short);
-void 	closelp(void);
-void 	closevt(void);
-void 	cont(short, short);
-void 	erase(void);
-void 	label(char *);
-void 	line(short, short);
-void 	linemod(char *);
-void 	move(short, short);
-void 	openpt();
-void 	openvt();
-void 	point(short, short);
-void 	space(short, short, short, short);
--- a/usr/src/lib/libplot/plot/common/mapfile-vers	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,67 +0,0 @@
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-#
-# Copyright (c) 2006, 2010, Oracle and/or its affiliates. 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
-
-SYMBOL_VERSION SUNW_1.1 {
-    global:
-	arc;
-	box;
-	circle;
-	closepl;
-	closevt;
-	cont;
-	erase;
-	label;
-	line;
-	linemod;
-	move;
-	openpl;
-	openvt;
-	point;
-	space;
-};
-
-SYMBOL_VERSION SUNWprivate_1.1 {
-    global:
-	dot;
-	_lib_version;
-	putsi;
-    local:
-	*;
-};
--- a/usr/src/lib/libplot/plot/common/move.c	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,43 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License").  You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
-/*	  All Rights Reserved  	*/
-
-
-/*
- * Copyright (c) 1997 by Sun Microsystems, Inc.
- * All rights reserved
- */
-
-#pragma ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 1.2	*/
-/*LINTLIBRARY*/
-
-#include <stdio.h>
-#include "con.h"
-
-void
-move(short xi, short yi)
-{
-	(void) putc('m', stdout);
-	putsi(xi);
-	putsi(yi);
-}
--- a/usr/src/lib/libplot/plot/common/open.c	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,42 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License").  You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
-/*	  All Rights Reserved  	*/
-
-
-/*
- * Copyright (c) 1997 by Sun Microsystems, Inc.
- * All rights reserved
- */
-
-#pragma ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 1.2	*/
-/*LINTLIBRARY*/
-
-void
-openvt(void)
-{
-}
-
-void
-openpl(void)
-{
-}
--- a/usr/src/lib/libplot/plot/common/point.c	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,43 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License").  You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
-/*	  All Rights Reserved  	*/
-
-
-/*
- * Copyright (c) 1997 by Sun Microsystems, Inc.
- * All rights reserved
- */
-
-#pragma ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 1.2	*/
-/*LINTLIBRARY*/
-
-#include <stdio.h>
-#include "con.h"
-
-void
-point(short xi, short yi)
-{
-	(void) putc('p', stdout);
-	putsi(xi);
-	putsi(yi);
-}
--- a/usr/src/lib/libplot/plot/common/putsi.c	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,42 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License").  You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
-/*	  All Rights Reserved  	*/
-
-
-/*
- * Copyright (c) 1997 by Sun Microsystems, Inc.
- * All rights reserved
- */
-
-#pragma ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 1.2	*/
-/*LINTLIBRARY*/
-
-#include <stdio.h>
-#include "con.h"
-
-void
-putsi(short a)
-{
-	(void) putc((char)a, stdout);
-	(void) putc((char)(a>>8), stdout);
-}
--- a/usr/src/lib/libplot/plot/common/space.c	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,45 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License").  You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
-/*	  All Rights Reserved  	*/
-
-
-/*
- * Copyright (c) 1997 by Sun Microsystems, Inc.
- * All rights reserved
- */
-
-#pragma ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 1.2	*/
-/*LINTLIBRARY*/
-
-#include <stdio.h>
-#include "con.h"
-
-void
-space(short x0, short y0, short x1, short y1)
-{
-	(void) putc('s', stdout);
-	putsi(x0);
-	putsi(y0);
-	putsi(x1);
-	putsi(y1);
-}
--- a/usr/src/lib/libplot/plot/i386/Makefile	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,34 +0,0 @@
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-#
-# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
-# Use is subject to license terms.
-#
-# ident	"%Z%%M%	%I%	%E% SMI"
-#
-
-include ../Makefile.com
-
-.KEEP_STATE:
-
-all: $(LIBS)
-
-install: all $(ROOTLIBS) $(ROOTLINKS) $(ROOTLINT)
--- a/usr/src/lib/libplot/plot/sparc/Makefile	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,34 +0,0 @@
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-#
-# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
-# Use is subject to license terms.
-#
-# ident	"%Z%%M%	%I%	%E% SMI"
-#
-
-include ../Makefile.com
-
-.KEEP_STATE:
-
-all: $(LIBS)
-
-install: all $(ROOTLIBS) $(ROOTLINKS) $(ROOTLINT)
--- a/usr/src/lib/libplot/plot/sparcv9/Makefile	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,37 +0,0 @@
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-#
-# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
-# Use is subject to license terms.
-#
-# ident	"%Z%%M%	%I%	%E% SMI"
-#
-
-include ../Makefile.com
-include ../../../Makefile.lib.64
-
-LIBS= $(DYNLIB) $(LINTLIB)
-
-.KEEP_STATE:
-
-all: $(LIBS)
-
-install: all $(ROOTLIBS64) $(ROOTLINKS64)
--- a/usr/src/lib/libplot/t300/Makefile	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,48 +0,0 @@
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-#
-# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
-# Use is subject to license terms.
-#
-# ident	"%Z%%M%	%I%	%E% SMI"
-#
-
-include	../../Makefile.lib
-
-SUBDIRS =	$(MACH)
-$(BUILD64)SUBDIRS += $(MACH64)
-
-all :=		TARGET= all
-clean :=	TARGET= clean
-clobber :=	TARGET= clobber
-delete :=	TARGET= delete
-install :=	TARGET= install
-lint :=		TARGET= lint
-
-.KEEP_STATE:
-
-all clean clobber delete install lint: $(SUBDIRS)
-
-
-$(SUBDIRS):	FRC
-	 @cd $@; pwd; $(MAKE) $(TARGET)
-
-FRC:
--- a/usr/src/lib/libplot/t300/Makefile.com	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,64 +0,0 @@
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-#
-# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
-# Use is subject to license terms.
-#
-# ident	"%Z%%M%	%I%	%E% SMI"
-#
-
-LIBRARY= lib300.a
-VERS= .1
-
-OBJECTS=	\
-	arc.o	box.o	circle.o	close.o	\
-	dot.o	erase.o	label.o	\
-	line.o	linmod.o	move.o	open.o	\
-	point.o	space.o	subr.o
-
-# include library definitions
-include ../../../Makefile.lib
-
-SRCDIR =	../common
-
-LIBS =		$(DYNLIB) $(LINTLIB)
-
-$(LINTLIB):= SRCS=../common/llib-l300
-
-LINTSRC=	$(LINTLIB:%.ln=%)
-
-CFLAGS +=	$(CCVERBOSE)
-LDLIBS += -lc -lm
-
-.KEEP_STATE:
-
-lint: lintcheck
-
-# include library targets
-include ../../../Makefile.targ
-
-pics/%.o: ../common/%.c
-	$(COMPILE.c) -o $@ $<
-	$(POST_PROCESS_O)
-
-# install rule for lint library target
-$(ROOTLINTDIR)/%:	../common/%
-	$(INS.file)
--- a/usr/src/lib/libplot/t300/amd64/Makefile	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,39 +0,0 @@
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-#
-# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
-# Use is subject to license terms.
-#
-# ident	"%Z%%M%	%I%	%E% SMI"
-#
-
-include ../Makefile.com
-include ../../../Makefile.lib.64
-
-LINTFLAGS64 +=	-erroff=E_ASSIGMENT_CAUSE_LOSS_PREC
-
-LIBS= $(DYNLIB) $(LINTLIB)
-
-.KEEP_STATE:
-
-all: $(LIBS)
-
-install: all $(ROOTLIBS64) $(ROOTLINKS64)
--- a/usr/src/lib/libplot/t300/common/arc.c	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,189 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License").  You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
-/*	  All Rights Reserved  	*/
-
-
-/*
- * Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
- * Use is subject to license terms.
- */
-
-#pragma ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 1.4	*/
-/*LINTLIBRARY*/
-
-#include <stdlib.h>
-#include <plot.h>
-#include <math.h>
-#include "con.h"
-
-static int quad_l(short, short, short, short);
-static int del = 20;
-
-static void
-step(int d)
-{
-	del = d;
-}
-
-void
-arc(short x, short y, short x0, short y0, short x1, short y1)
-{
-	double pc;
-	short flg, m, xc, yc, xs, ys, qs, qf, qt, qtctr = 0;
-	short m0, m1;
-	float dx, dy, r;
-	char use;
-	dx = x - x0;
-	dy = y - y0;
-	r = (dx * dx) + (dy * dy);
-	pc = r;
-	pc = sqrt(pc);
-	flg = (short)(pc / 4);
-	if (flg == 0)
-		step(1);
-	else if (flg < del)
-		step(flg);
-	xc = xs = x0;
-	yc = ys = y0;
-	move(xs, ys);
-	if ((x0 == x1) && (y0 == y1))
-		flg = 0;
-	else flg = 1;
-	qs = quad_l(x, y, x0, y0);
-	qf = quad_l(x, y, x1, y1);
-	if ((abs(x - x1)) < (abs(y - y1))) {
-		use = 'x';
-		if ((qs == 2) || (qs == 3))
-			m = -1;
-		else m = 1;
-	} else {
-		use = 'y';
-		if (qs > 2)
-			m = -1;
-		else m = 1;
-	}
-	if (qs == qf) {
-		m0 = (y0 - y) / (x0 - x);
-		m1 = (y1 - y) / (x1 - x);
-		if (m0 >= m1)
-			qt = 4;
-		else qt = 0;
-	} else if ((qt = qf - qs) < 0)
-		qt += 4;
-	/* LINTED */
-	while (1) {
-		switch (use) {
-		case 'x':
-			if ((qs == 2) || (qs == 3))
-				yc -= del;
-			else yc += del;
-			dy = yc - y;
-			pc = r - dy * dy;
-			xc = (short)(m * sqrt(pc) + x);
-			if (((x < xs) && (x >= xc)) ||
-			    ((x > xs) && (x <= xc)) ||
-			    ((y < ys) && (y >= yc)) ||
-			    ((y > ys) && (y <=  yc))) {
-				if (++qtctr > qt)
-					return;
-				if (++qs > 4)
-					qs = 1;
-				if ((qs == 2) || (qs == 3))
-					m = -1;
-				else m = 1;
-				flg = 1;
-			}
-			cont(xc, yc);
-			xs = xc;
-			ys = yc;
-			if ((qs == qf) && (flg == 1))
-				switch (qf) {
-				case 3:
-				case 4:
-					if (xs >= x1)
-						return;
-					continue;
-				case 1:
-				case 2:
-					if (xs <= x1)
-						return;
-				}
-			continue;
-		case 'y':
-			if (qs > 2)
-				xc += del;
-			else xc -= del;
-			dx = xc - x;
-			pc = r - dx * dx;
-			yc = (short)(m * sqrt(pc) + y);
-			if (((x < xs) && (x >= xc)) ||
-			    ((x > xs) && (x <= xc)) ||
-			    ((y < ys) && (y >= yc)) ||
-			    ((y > ys) && (y <= yc))) {
-				if (++qtctr > qt)
-					return;
-				if (++qs > 4)
-					qs = 1;
-				if (qs > 2)
-					m = -1;
-				else m = 1;
-				flg = 1;
-			}
-			cont(xc, yc);
-			xs = xc;
-			ys = yc;
-			if ((qs == qf) && (flg == 1))
-				switch (qs) {
-				case 1:
-				case 4:
-					if (ys >= y1)
-						return;
-					continue;
-				case 2:
-				case 3:
-					if (ys <= y1)
-						return;
-				}
-		}
-	}
-}
-
-/*
- * these is a local function not to be confused with the
- * system wide quad
- */
-static int
-quad_l(short x, short y, short xp, short yp)
-{
-	if (x < xp)
-		if (y <= yp)
-			return (1);
-		else return (4);
-	else if (x > xp)
-		if (y < yp)
-			return (2);
-		else return (3);
-	else if (y < yp)
-		return (2);
-	else return (4);
-}
--- a/usr/src/lib/libplot/t300/common/box.c	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,45 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License").  You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
-/*	  All Rights Reserved  	*/
-
-
-/*
- * Copyright (c) 1997 by Sun Microsystems, Inc.
- * All rights reserved
- */
-
-#pragma ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 1.2	*/
-/*LINTLIBRARY*/
-
-#include <plot.h>
-
-void
-box(short x0, short y0, short x1, short y1)
-{
-	move(x0, y0);
-	cont(x0, y1);
-	cont(x1, y1);
-	cont(x1, y0);
-	cont(x0, y0);
-	move(x1, y1);
-}
--- a/usr/src/lib/libplot/t300/common/circle.c	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,35 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License").  You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
-/*	  All Rights Reserved  	*/
-
-
-#ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 1.3	*/
-/*LINTLIBRARY*/
-
-#include <plot.h>
-
-void
-circle(short x, short y, short r)
-{
-	arc(x, y, x + r, y, x + r, y);
-}
--- a/usr/src/lib/libplot/t300/common/close.c	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,48 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License").  You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
-/*	  All Rights Reserved  	*/
-
-
-/*
- * Copyright (c) 1997 by Sun Microsystems, Inc.
- * All rights reserved
- */
-
-#pragma ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 1.2	*/
-/*LINTLIBRARY*/
-
-#include <stdio.h>
-#include "con.h"
-
-void
-closepl(void)
-{
-	(void) fflush(stdout);
-	reset();
-}
-
-void
-closevt(void)
-{
-	closepl();
-}
--- a/usr/src/lib/libplot/t300/common/con.h	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,69 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License").  You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
-/*	  All Rights Reserved  	*/
-
-
-/*
- * Copyright (c) 1997 by Sun Microsystems, Inc.
- * All rights reserved
- */
-
-#pragma ident	"%Z%%M%	%I%	%E% SMI"
-
-#include <termio.h>
-
-/* gsi plotting output routines */
-#define	DOWN 012
-#define	UP 013
-#define	LEFT 010
-#define	RIGHT 040
-#define	BEL 007
-#define	ESC 033
-#define	ACK 006
-#define	CR 015
-#define	FF 014
-#define	VERTRESP 48
-#define	HORZRESP 60.
-#define	VERTRES 8.
-#define	HORZRES 6.
-/*
- * down is line feed, up is reverse line feed,
- * left is backspace, right is space.  48 points per inch
- * vertically, 60 horizontally
- */
-
-extern struct termio ITTY, PTTY;
-extern float botx, boty, obotx, oboty, scalex, scaley;
-extern int xscale, xoffset, yscale;
-extern int OUTF;
-extern void movep(short, short);
-extern void spew(char);
-extern void inplot(void);
-extern void outplot(void);
-extern void reset(void);
-extern float dist2(int, int, int, int);
-extern int xsc(short);
-extern int ysc(short);
-extern short xconv(short);
-extern short yconv(short);
-extern short xnow, ynow;
--- a/usr/src/lib/libplot/t300/common/dot.c	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,37 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License").  You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
-/*	  All Rights Reserved  	*/
-
-
-/*
- * Copyright (c) 1997 by Sun Microsystems, Inc.
- * All rights reserved
- */
-
-#pragma ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 1.2	*/
-/*LINTLIBRARY*/
-
-void
-dot(void)
-{
-}
--- a/usr/src/lib/libplot/t300/common/erase.c	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,42 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License").  You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
-/*	  All Rights Reserved  	*/
-
-
-/*
- * Copyright (c) 1997 by Sun Microsystems, Inc.
- * All rights reserved
- */
-
-#pragma ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 1.2	*/
-/*LINTLIBRARY*/
-
-#include "con.h"
-
-void
-erase(void)
-{
-	int i;
-	for (i = 0; i < 11 * (VERTRESP / VERTRES); i++)
-		spew(DOWN);
-}
--- a/usr/src/lib/libplot/t300/common/label.c	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,44 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License").  You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
-/*	  All Rights Reserved  	*/
-
-
-/*
- * Copyright (c) 1997 by Sun Microsystems, Inc.
- * All rights reserved
- */
-
-#pragma ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 1.2	*/
-/*LINTLIBRARY*/
-
-#include "con.h"
-
-void
-label(char *s)
-{
-	char c;
-	while ((c = *s++) != '\0') {
-		xnow += HORZRES;
-		spew(c);
-	}
-}
--- a/usr/src/lib/libplot/t300/common/line.c	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,94 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License").  You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
-/*	  All Rights Reserved  	*/
-
-
-/*
- * Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
- * Use is subject to license terms.
- */
-
-#pragma ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 1.2	*/
-/*LINTLIBRARY*/
-
-#include <stdlib.h>
-#include <math.h>
-#include "con.h"
-
-short xnow, ynow;
-
-static void
-iline(short cx0, short cy0, short cx1, short cy1)
-{
-	int maxp, tt;
-	short j;
-	char chx, chy;
-	float xd, yd;
-
-		movep(cx0, cy0);
-		maxp = (int)(sqrt(dist2(cx0, cy0, cx1, cy1)) / 2.);
-		xd = cx1 - cx0;
-		yd = cy1 - cy0;
-		if (xd >= 0)
-			chx = RIGHT;
-		else chx = LEFT;
-		if (yd >= 0)
-			chy = UP;
-		else chy = DOWN;
-		if (maxp == 0) {
-			xd = 0;
-			yd = 0;
-		} else {
-			xd /= maxp;
-			yd /= maxp;
-		}
-		inplot();
-		for (tt = 0; tt <= maxp; tt++) {
-			j = (short)(cx0 + xd * tt - xnow);
-			xnow += j;
-			j = abs(j);
-			while (j-- > 0)
-				spew(chx);
-			j = (short)(cy0 + yd * tt - ynow);
-			ynow += j;
-			j = abs(j);
-			while (j-- > 0)
-				spew(chy);
-			spew('.');
-		}
-		outplot();
-}
-
-void
-line(short x0, short y0, short x1, short y1)
-{
-	iline(xconv(xsc(x0)), yconv(ysc(y0)),
-		xconv(xsc(x1)), yconv(ysc(y1)));
-}
-
-
-void
-cont(short x0, short y0)
-{
-	iline(xnow, ynow, xconv(xsc(x0)), yconv(ysc(y0)));
-}
--- a/usr/src/lib/libplot/t300/common/linmod.c	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,37 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License").  You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
-/*	  All Rights Reserved  	*/
-
-
-/*
- * Copyright (c) 1997 by Sun Microsystems, Inc.
- * All rights reserved
- */
-
-#pragma ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 1.2	*/
-/*LINTLIBRARY*/
-
-void
-linemod(void)
-{
-}
--- a/usr/src/lib/libplot/t300/common/llib-l300	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,73 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License").  You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/*
- * Copyright (c) 1997 by Sun Microsystems, Inc.
- * All rights reserved
- */
-
-#pragma ident	"%Z%%M%	%I%	%E% SMI"
-
-/*LINTLIBRARY*/
-/*PROTOLIB1*/
-
-#include <stdio.h>
-
-/*arc.c*/
-void arc(short, short, short, short, short, short);
-
-/*box.c*/
-void box(short, short, short, short);
-
-/*circle.c*/
-void circle(short, short, short);
-
-/*close.c*/
-void closelp(void);
-void closevt(void);
-
-/*cont.c*/
-void cont(short, short);
-
-/*erase.c*/
-void erase(void);
-
-/*label.c*/
-void label(char *);
-
-/*line.c*/
-void line(short, short);
-
-/*linmod.c*/
-void linemod(char *);
-
-/*move.c*/
-void move(short, short);
-
-/*open.c*/
-void openpt();
-void openvt();
-
-/*point.c*/
-void point(short, short);
-
-/*space.c*/
-void space(short, short, short, short);
--- a/usr/src/lib/libplot/t300/common/mapfile-vers	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,92 +0,0 @@
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-#
-# Copyright (c) 2006, 2010, Oracle and/or its affiliates. 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
-
-SYMBOL_VERSION SUNW_1.1 {
-    global:
-	arc;
-	box;
-	circle;
-	closepl;
-	closevt;
-	cont;
-	erase;
-	label;
-	line;
-	linemod;
-	move;
-	openpl;
-	openvt;
-	point;
-	space;
-};
-
-SYMBOL_VERSION SUNWprivate_1.1 {
-    global:
-	botx;
-	boty;
-	dist2;
-	dot;
-	inplot;
-	ITTY;
-	_lib_version;
-	movep;
-	obotx;
-	oboty;
-	OUTF;
-	outplot;
-	PTTY;
-	reset;
-	scalex;
-	scaley;
-	spew;
-	swap;
-	tobotleft;
-	xconv;
-	xnow;
-	xoffset;
-	xsc;
-	xscale;
-	yconv;
-	ynow;
-	ysc;
-	yscale;
-    local:
-	*;
-};
--- a/usr/src/lib/libplot/t300/common/move.c	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,40 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License").  You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
-/*	  All Rights Reserved  	*/
-
-
-/*
- * Copyright (c) 1997 by Sun Microsystems, Inc.
- * All rights reserved
- */
-
-#pragma ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 1.2	*/
-/*LINTLIBRARY*/
-
-#include "con.h"
-
-void
-move(short xi, short yi)
-{
-	movep(xconv(xsc(xi)), yconv(ysc(yi)));
-}
--- a/usr/src/lib/libplot/t300/common/open.c	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,68 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License").  You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
-/*	  All Rights Reserved  	*/
-
-
-/*
- * Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
- * Use is subject to license terms.
- */
-
-#pragma ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 1.3	*/
-/*LINTLIBRARY*/
-
-#include <unistd.h>
-#include <signal.h>
-#include <stdio.h>
-#include "con.h"
-
-
-static float HEIGHT = 6.0, WIDTH = 6.0, OFFSET = 0.0;
-float botx = 0.0, boty = 0.0, obotx = 0.0, oboty = 0.0;
-float scalex = 1.0, scaley = 1.0;
-int OUTF, xscale, yscale, xoffset;
-struct termio ITTY, PTTY;
-
-void
-openpl(void)
-{
-	xnow = ynow = 0;
-	OUTF = 1;
-	(void) printf("\r");
-	(void) ioctl(OUTF, TCGETA, &ITTY);
-	(void) signal(SIGINT, (void (*)(int))reset);
-	PTTY = ITTY;
-	PTTY.c_oflag &= ~(ONLCR|OCRNL|ONOCR|ONLRET);
-	PTTY.c_cflag |= CSTOPB;
-	(void) ioctl(OUTF, TCSETAW, &PTTY);
-	/* initialize constants */
-	xscale = (int)(4096./(HORZRESP * WIDTH));
-	yscale = (int)(4096 /(VERTRESP * HEIGHT));
-	xoffset = (int)(OFFSET * HORZRESP);
-}
-
-void
-openvt(void)
-{
-	openpl();
-}
--- a/usr/src/lib/libplot/t300/common/point.c	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,40 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License").  You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
-/*	  All Rights Reserved  	*/
-
-
-/*
- * Copyright (c) 1997 by Sun Microsystems, Inc.
- * All rights reserved
- */
-
-#pragma ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 1.2	*/
-/*LINTLIBRARY*/
-
-#include <plot.h>
-
-void
-point(short xi, short yi) {
-		move(xi, yi);
-		label(".");
-}
--- a/usr/src/lib/libplot/t300/common/space.c	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,47 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License").  You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
-/*	  All Rights Reserved  	*/
-
-
-/*
- * Copyright (c) 1997 by Sun Microsystems, Inc.
- * All rights reserved
- */
-
-#pragma ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 1.2	*/
-/*LINTLIBRARY*/
-
-#include "con.h"
-
-static float deltx;
-static float delty;
-
-void
-space(short x0, short y0, short x1, short y1) {
-	botx = -2047.;
-	boty = -2047.;
-	obotx = x0;
-	oboty = y0;
-	scalex = deltx / (x1-x0);
-	scaley = delty / (y1-y0);
-}
--- a/usr/src/lib/libplot/t300/common/subr.c	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,174 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License").  You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
-/*	  All Rights Reserved  	*/
-
-
-/*
- * Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
- * Use is subject to license terms.
- */
-
-#pragma ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 1.3	*/
-/*LINTLIBRARY*/
-
-#include <signal.h>
-#include <stdio.h>
-#include <unistd.h>
-#include <stdlib.h>
-#include <plot.h>
-#include "con.h"
-
-short
-xconv(short xp)
-{
-	/*
-	 * x position input is -2047 to +2047,
-	 * output must be 0 to PAGSIZ*HORZRES
-	 */
-	xp += 2048;
-	/* the computation is newx = xp*(PAGSIZ*HORZRES)/4096 */
-	return (short)(xoffset + xp / xscale);
-}
-
-short
-yconv(short yp)
-{
-	/* see description of xconv */
-	yp += 2048;
-	return (short)(yp / yscale);
-}
-
-void
-inplot(void)
-{
-	spew(ACK);
-}
-
-void
-outplot(void)
-{
-	spew(ESC);
-	spew(ACK);
-	(void) fflush(stdout);
-}
-
-void
-spew(char ch)
-{
-	if (ch == UP)
-		(void) putc(ESC, stdout);
-	(void) putc(ch, stdout);
-}
-
-void
-tobotleft(void)
-{
-	move(-2048, -2048);
-}
-
-void
-reset(void)
-{
-	(void) signal(SIGINT, SIG_IGN);
-	spew(BEL);
-	(void) fflush(stdout);
-	(void) ioctl(OUTF, TCSETAW, &ITTY);
-	_exit(0);
-}
-
-float
-dist2(int x1, int y1, int x2, int y2)
-{
-	float t, v;
-	t = x2 - x1;
-	v = y1 - y2;
-	return (t*t+v*v);
-}
-
-void
-swap(int *pa, int *pb)
-{
-	int t;
-	t = *pa;
-	*pa = *pb;
-	*pb = t;
-}
-
-void
-movep(short xg, short yg)
-{
-	short i;
-	char ch;
-	if ((xg == xnow) && (yg == ynow))
-		return;
-	/* if we need to go to left margin, just CR */
-	if (xg < (xnow / 2)) {
-		spew(CR);
-		xnow = 0;
-	}
-	i = (short)((xg - xnow) / HORZRES);
-	if (xnow < xg)
-		ch = RIGHT;
-	else
-		ch = LEFT;
-	xnow += i * HORZRES;
-	i = abs(i);
-	while (i--)
-		spew(ch);
-	i = abs(xg-xnow);
-	inplot();
-	while (i--)
-		spew(ch);
-	outplot();
-	i = (short)((yg - ynow) / VERTRES);
-	if (ynow < yg)
-		ch = UP;
-	else ch = DOWN;
-	ynow += i * VERTRES;
-	i = abs(i);
-	while (i--)
-		spew(ch);
-	i = abs(yg - ynow);
-	inplot();
-	while (i--)
-		spew(ch);
-	outplot();
-	xnow = xg;
-	ynow = yg;
-}
-
-int
-xsc(short xi)
-{
-	short xa;
-	xa = (short)((xi - obotx) * scalex + botx);
-	return (xa);
-}
-
-int
-ysc(short yi)
-{
-	short ya;
-	ya = (short)((yi - oboty) * scaley + boty);
-	return (ya);
-}
--- a/usr/src/lib/libplot/t300/i386/Makefile	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,34 +0,0 @@
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-#
-# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
-# Use is subject to license terms.
-#
-# ident	"%Z%%M%	%I%	%E% SMI"
-#
-
-include ../Makefile.com
-
-all: $(LIBS) $(LINTLIB)
-
-.KEEP_STATE:
-
-install: all $(ROOTLIBS) $(ROOTLINKS) $(ROOTLINT)
--- a/usr/src/lib/libplot/t300/sparc/Makefile	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,34 +0,0 @@
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-#
-# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
-# Use is subject to license terms.
-#
-# ident	"%Z%%M%	%I%	%E% SMI"
-#
-
-include ../Makefile.com
-
-all: $(LIBS)
-
-.KEEP_STATE:
-
-install: all $(ROOTLIBS) $(ROOTLINKS) $(ROOTLINT)
--- a/usr/src/lib/libplot/t300/sparcv9/Makefile	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,37 +0,0 @@
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-#
-# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
-# Use is subject to license terms.
-#
-# ident	"%Z%%M%	%I%	%E% SMI"
-#
-
-include ../Makefile.com
-include ../../../Makefile.lib.64
-
-LIBS= $(DYNLIB) $(LINTLIB)
-
-.KEEP_STATE:
-
-all: $(LIBS)
-
-install: all $(ROOTLIBS64) $(ROOTLINKS64)
--- a/usr/src/lib/libplot/t300s/Makefile	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,49 +0,0 @@
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-#
-# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
-# Use is subject to license terms.
-#
-# ident	"%Z%%M%	%I%	%E% SMI"
-#
-
-include ../../Makefile.lib
-
-SUBDIRS =	$(MACH)
-$(BUILD64)SUBDIRS += $(MACH64)
-
-all :=		TARGET= all
-clean :=	TARGET= clean
-clobber :=	TARGET= clobber
-delete :=	TARGET= delete
-install :=	TARGET= install
-lint :=		TARGET= lint
-
-.KEEP_STATE:
-
-all clean clobber delete install lint: $(SUBDIRS)
-
-
-$(SUBDIRS):	FRC
-	 @cd $@; pwd; $(MAKE) $(TARGET)
-
-FRC:
-
--- a/usr/src/lib/libplot/t300s/Makefile.com	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,64 +0,0 @@
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-#
-# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
-# Use is subject to license terms.
-#
-# ident	"%Z%%M%	%I%	%E% SMI"
-#
-
-LIBRARY= lib300s.a
-VERS= .1
-
-OBJECTS=	\
-	arc.o	box.o	circle.o	close.o	\
-	dot.o	erase.o	label.o	\
-	line.o	linmod.o	move.o	open.o	\
-	point.o	space.o	subr.o
-
-# include library definitions
-include ../../../Makefile.lib
-
-SRCDIR =	../common
-
-LIBS =		$(DYNLIB) $(LINTLIB)
-
-$(LINTLIB):= SRCS=../common/llib-l300s
-
-LINTSRC=	$(LINTLIB:%.ln=%)
-
-CFLAGS +=	$(CCVERBOSE)
-LDLIBS += -lc -lm
-
-.KEEP_STATE:
-
-lint: lintcheck
-
-# include library targets
-include ../../../Makefile.targ
-
-pics/%.o: ../common/%.c
-	$(COMPILE.c) -o $@ $<
-	$(POST_PROCESS_O)
-
-# install rule for lint library target
-$(ROOTLINTDIR)/%:	../common/%
-	$(INS.file)
--- a/usr/src/lib/libplot/t300s/amd64/Makefile	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,39 +0,0 @@
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-#
-# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
-# Use is subject to license terms.
-#
-# ident	"%Z%%M%	%I%	%E% SMI"
-#
-
-include ../Makefile.com
-include ../../../Makefile.lib.64
-
-LINTFLAGS64 +=	-erroff=E_ASSIGMENT_CAUSE_LOSS_PREC
-
-LIBS= $(DYNLIB) $(LINTLIB)
-
-all: $(LIBS)
-
-.KEEP_STATE:
-
-install: all $(ROOTLIBS64) $(ROOTLINKS64)
--- a/usr/src/lib/libplot/t300s/common/arc.c	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,185 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License").  You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
-/*	  All Rights Reserved  	*/
-
-
-/*
- * Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
- * Use is subject to license terms.
- */
-
-#pragma ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 1.4	*/
-/*LINTLIBRARY*/
-
-#include <stdlib.h>
-#include <math.h>
-#include <plot.h>
-#include "con.h"
-
-static int del = 20;
-
-static void
-step(int d)
-{
-	del = d;
-}
-
-/* local definition of quad */
-static int
-quad_l(short x, short y, short xp, short yp)
-{
-	if (x < xp)
-		if (y <= yp)
-			return (1);
-		else return (4);
-	else if (x > xp)
-		if (y < yp)
-			return (2);
-		else return (3);
-	else if (y < yp)
-		return (2);
-	else return (4);
-}
-
-void
-arc(short x, short y, short x0, short y0, short x1, short y1)
-{
-	double pc;
-	int flg, m, xc, yc, xs, ys, qs, qf, qt, qtctr = 0;
-	int m0, m1;
-	float dx, dy, r;
-	char use;
-	dx = x - x0;
-	dy = y - y0;
-	r = dx * dx + dy * dy;
-	pc = r;
-	pc = sqrt(pc);
-	flg = (short)(pc / 4);
-	if (flg == 0)
-		step(1);
-	else if (flg < del)
-		step(flg);
-	xc = xs = x0;
-	yc = ys = y0;
-	move((short)xs, (short)ys);
-	if ((x0 == x1) && (y0 == y1))
-		flg = 0;
-	else flg = 1;
-	qs = quad_l(x, y, x0, y0);
-	qf = quad_l(x, y, x1, y1);
-	if (abs(x - x1) < abs(y - y1)) {
-		use = 'x';
-		if ((qs == 2) || (qs == 3))
-			m = -1;
-		else m = 1;
-	} else {
-		use = 'y';
-		if (qs > 2)
-			m = -1;
-		else m = 1;
-	}
-	if (qs == qf) {
-		m0 = (y0 - y) / (x0 - x);
-		m1 = (y1 - y) / (x1 - x);
-		if (m0 >= m1)
-			qt = 4;
-		else qt = 0;
-	} else if ((qt = qf - qs) < 0)
-			qt += 4;
-	/*LINTED*/
-	while (1) {
-		switch (use) {
-		case 'x':
-			if ((qs == 2) || (qs == 3))
-				yc -= del;
-			else yc += del;
-			dy = yc - y;
-			pc = r - dy * dy;
-			xc = (int)(m * sqrt(pc) + x);
-			if (((x < xs) && (x >= xc)) ||
-			    ((x > xs) && (x <= xc)) ||
-			    ((y < ys) && (y >= yc)) ||
-			    ((y > ys) && (y <=  yc))) {
-				if (++qtctr > qt)
-					return;
-				if (++qs > 4)
-					qs = 1;
-				if ((qs == 2) || (qs == 3))
-					m = -1;
-				else m = 1;
-				flg = 1;
-			}
-			cont((short)xc, (short)yc);
-			xs = xc;
-			ys = yc;
-			if ((qs == qf) && (flg == 1))
-				switch (qf) {
-				case 3:
-				case 4:
-					if (xs >= x1)
-						return;
-					continue;
-				case 1:
-				case 2:
-					if (xs <= x1)
-						return;
-				}
-			continue;
-		case 'y':
-			if (qs > 2)
-				xc += del;
-			else xc -= del;
-			dx = xc - x;
-			pc = r - dx * dx;
-			yc = (int)(m * sqrt(pc) + y);
-			if (((x < xs) && (x >= xc)) ||
-			    ((x > xs) && (x <= xc)) ||
-			    ((y < ys) && (y >= yc)) ||
-			    ((y > ys) && (y <= yc))) {
-				if (++qtctr > qt)
-					return;
-				if (++qs > 4)
-					qs = 1;
-				if (qs > 2)
-					m = -1;
-				else m = 1;
-				flg = 1;
-			}
-			cont((short)xc, (short)yc);
-			xs = xc;
-			ys = yc;
-			if ((qs == qf) && (flg == 1))
-				switch (qs) {
-				case 1:
-				case 4:
-					if (ys >= y1)
-						return;
-					continue;
-				case 2:
-				case 3:
-					if (ys <= y1)
-						return;
-				}
-		}
-	}
-}
--- a/usr/src/lib/libplot/t300s/common/box.c	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,45 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License").  You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
-/*	  All Rights Reserved  	*/
-
-
-/*
- * Copyright (c) 1997 by Sun Microsystems, Inc.
- * All rights reserved
- */
-
-#pragma ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 1.2	*/
-/*LINTLIBRARY*/
-
-#include <plot.h>
-
-void
-box(short x0, short y0, short x1, short y1)
-{
-	move(x0, y0);
-	cont(x0, y1);
-	cont(x1, y1);
-	cont(x1, y0);
-	cont(x0, y0);
-	move(x1, y1);
-}
--- a/usr/src/lib/libplot/t300s/common/circle.c	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,39 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License").  You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
-/*	  All Rights Reserved  	*/
-
-
-/*
- * Copyright (c) 1997 by Sun Microsystems, Inc.
- * All rights reserved
- */
-
-#pragma ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 1.3	*/
-/*LINTLIBRARY*/
-
-#include <plot.h>
-
-void
-circle(short x, short y, short r) {
-	arc(x, y, x + r, y, x + r, y);
-}
--- a/usr/src/lib/libplot/t300s/common/close.c	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,47 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License").  You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
-/*	  All Rights Reserved  	*/
-
-
-
-/*
- * Copyright (c) 1997 by Sun Microsystems, Inc.
- * All rights reserved
- */
-
-#pragma ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 1.2	*/
-/*LINTLIBRARY*/
-
-#include <stdio.h>
-#include "con.h"
-
-void
-closepl(void) {
-	(void) fflush(stdout);
-	reset();
-}
-
-void
-closevt(void) {
-	closepl();
-}
--- a/usr/src/lib/libplot/t300s/common/con.h	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,79 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License").  You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
-/*	  All Rights Reserved  	*/
-
-
-
-/*
- * Copyright (c) 1997 by Sun Microsystems, Inc.
- * All rights reserved
- */
-
-#pragma ident	"%Z%%M%	%I%	%E% SMI"
-
-#include <termio.h>
-
-/* gsi plotting output routines */
-#define	DOUBLE 010
-#define	ADDR 0100
-#define	COM 060
-#define	PENUP 04
-#define	MAXX 070
-#define	MAXY 07
-#define	SPACES 7
-#define	DOWN 012
-#define	UP 013
-#define	LEFT 010
-#define	RIGHT 040
-#define	BEL 007
-#define	ESC 033
-#define	ACK 006
-#define	INPLOT 'P'
-#define	CR 015
-#define	FF 014
-#define	VERTRESP 48
-#define	HORZRESP 60.
-#define	VERTRES 8.
-#define	HORZRES 6.
-
-/*
- * down is line feed, up is reverse line feed,
- * left is backspace, right is space.  48 points per inch
- * vertically, 60 horizontally
- */
-
-extern int xnow, ynow;
-extern int OUTF;
-extern int xoffset, xscale, yscale;
-extern struct termio ITTY, PTTY;
-extern float botx, boty, obotx, oboty, scalex, scaley;
-extern void movep(int, int);
-extern void reset(void);
-extern void spew(char);
-extern void inplot(void);
-extern void outplot(void);
-extern float dist2(int, int, int, int);
-extern int xsc(int);
-extern int ysc(int);
-extern int xconv(int);
-extern int yconv(int);
--- a/usr/src/lib/libplot/t300s/common/dot.c	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,38 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License").  You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
-/*	  All Rights Reserved  	*/
-
-
-
-/*
- * Copyright (c) 1997 by Sun Microsystems, Inc.
- * All rights reserved
- */
-
-#pragma ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 1.2	*/
-/*LINTLIBRARY*/
-
-void
-dot(void)
-{
-}
--- a/usr/src/lib/libplot/t300s/common/erase.c	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,43 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License").  You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
-/*	  All Rights Reserved  	*/
-
-
-
-/*
- * Copyright (c) 1997 by Sun Microsystems, Inc.
- * All rights reserved
- */
-
-#pragma ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 1.2	*/
-/*LINTLIBRARY*/
-
-#include "con.h"
-
-void
-erase(void)
-{
-	int i;
-	for (i = 0; i < 11 * (VERTRESP / VERTRES); i++)
-		spew(DOWN);
-}
--- a/usr/src/lib/libplot/t300s/common/label.c	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,46 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License").  You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
-/*	  All Rights Reserved  	*/
-
-
-/*
- * Copyright (c) 1997 by Sun Microsystems, Inc.
- * All rights reserved
- */
-
-#pragma ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 1.2	*/
-/*LINTLIBRARY*/
-
-#include "con.h"
-
-int xnow = 0;
-
-void
-label(char *s)
-{
-	char c;
-	while ((c = *s++) != '\0') {
-		xnow += HORZRES;
-		spew(c);
-	}
-}
--- a/usr/src/lib/libplot/t300s/common/line.c	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,79 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License").  You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
-/*	  All Rights Reserved  	*/
-
-
-/*
- * Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
- * Use is subject to license terms.
- */
-
-#pragma ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 1.2	*/
-/*LINTLIBRARY*/
-
-#include <stdlib.h>
-#include <math.h>
-#include "con.h"
-
-int ynow = 0;
-
-static void
-iline(int cx0, int cy0, int cx1, int cy1) {
-	int maxp, tt;
-	char chx, chy, command;
-	float xd, yd;
-	movep(cx0, cy0);
-	maxp = (int)(sqrt(dist2(cx0, cy0, cx1, cy1)) / 2.);
-	xd = cx1 - cx0;
-	yd = cy1 - cy0;
-	command = COM|((xd < 0) << 1)|(yd < 0);
-	if (maxp == 0) {
-		xd = 0;
-		yd = 0;
-	} else {
-		xd /= maxp;
-		yd /= maxp;
-	}
-	inplot();
-	spew(command);
-	for (tt = 0; tt <= maxp; tt++) {
-		chx = (char)(cx0 + xd * tt - xnow);
-		xnow += chx;
-		chx = abs(chx);
-		chy = (char)(cy0 + yd * tt - ynow);
-		ynow += chy;
-		chy = abs(chy);
-		spew(ADDR|chx<<3|chy);
-	}
-	outplot();
-}
-
-void
-line(short x0, short y0, short x1, short y1) {
-	iline(xconv(xsc(x0)), yconv(ysc(y0)), xconv(xsc(x1)), yconv(ysc(y1)));
-}
-
-void
-cont(short x0, short y0) {
-	iline(xnow, ynow, xconv(xsc(x0)), yconv(ysc(y0)));
-}
--- a/usr/src/lib/libplot/t300s/common/linmod.c	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,37 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License").  You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
-/*	  All Rights Reserved  	*/
-
-
-/*
- * Copyright (c) 1997 by Sun Microsystems, Inc.
- * All rights reserved
- */
-
-#pragma ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 1.2	*/
-/*LINTLIBRARY*/
-
-void
-linemod(void)
-{
-}
--- a/usr/src/lib/libplot/t300s/common/llib-l300s	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,73 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License").  You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/*
- * Copyright (c) 1997 by Sun Microsystems, Inc.
- * All rights reserved
- */
-
-#pragma ident	"%Z%%M%	%I%	%E% SMI"
-
-/*LINTLIBRARY*/
-/*PROTOLIB1*/
-
-#include <stdio.h>
-
-/*arc.c*/
-void arc(short, short, short, short, short, short);
-
-/*box.c*/
-void box(short, short, short, short);
-
-/*circle.c*/
-void circle(short, short, short);
-
-/*close.c*/
-void closelp(void);
-void closevt(void);
-
-/*cont.c*/
-void cont(short, short);
-
-/*erase.c*/
-void erase(void);
-
-/*label.c*/
-void label(char *);
-
-/*line.c*/
-void line(short, short);
-
-/*linmod.c*/
-void linemod(char *);
-
-/*move.c*/
-void move(short, short);
-
-/*open.c*/
-void openpt();
-void openvt();
-
-/*point.c*/
-void point(short, short);
-
-/*space.c*/
-void space(short, short, short, short);
--- a/usr/src/lib/libplot/t300s/common/mapfile-vers	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,94 +0,0 @@
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-#
-# Copyright (c) 2006, 2010, Oracle and/or its affiliates. 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
-
-SYMBOL_VERSION SUNW_1.1 {
-    global:
-	arc;
-	box;
-	circle;
-	closepl;
-	closevt;
-	cont;
-	dot;
-	erase;
-	label;
-	line;
-	linemod;
-	move;
-	openpl;
-	openvt;
-	point;
-	space;
-};
-
-SYMBOL_VERSION SUNWprivate_1.1 {
-    global:
-	botx;
-	boty;
-	deltx;
-	delty;
-	dist2;
-	inplot;
-	ITTY;
-	_lib_version;
-	movep;
-	obotx;
-	oboty;
-	OUTF;
-	outplot;
-	PTTY;
-	reset;
-	scalex;
-	scaley;
-	spew;
-	swap;
-	tobotleft;
-	xconv;
-	xnow;
-	xoffset;
-	xsc;
-	xscale;
-	yconv;
-	ynow;
-	ysc;
-	yscale;
-    local:
-	*;
-};
--- a/usr/src/lib/libplot/t300s/common/move.c	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,40 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License").  You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
-/*	  All Rights Reserved  	*/
-
-
-/*
- * Copyright (c) 1997 by Sun Microsystems, Inc.
- * All rights reserved
- */
-
-#pragma ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 1.2	*/
-/*LINTLIBRARY*/
-
-#include "con.h"
-
-void
-move(short xi, short yi)
-{
-	movep(xconv(xsc(xi)), yconv(ysc(yi)));
-}
--- a/usr/src/lib/libplot/t300s/common/open.c	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,67 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License").  You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
-/*	  All Rights Reserved  	*/
-
-
-/*
- * Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
- * Use is subject to license terms.
- */
-
-#pragma ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 1.3	*/
-/*LINTLIBRARY*/
-
-#include <signal.h>
-#include <stdio.h>
-#include <unistd.h>
-#include <termio.h>
-#include "con.h"
-
-static float HEIGHT = 6.0, WIDTH = 6.0, OFFSET = 0.0;
-float botx = 0.0, boty = 0.0, obotx = 0.0, oboty = 0.0;
-float scalex = 1.0, scaley = 1.0;
-int OUTF, xscale, yscale, xoffset;
-struct termio ITTY, PTTY;
-
-void
-openpl(void)
-{
-		xnow = ynow = 0;
-		OUTF = 1;
-		(void) printf("\r");
-		(void) ioctl(OUTF, TCGETA, &ITTY);
-		(void) signal(SIGINT, (void (*)(int))reset);
-		PTTY = ITTY;
-		PTTY.c_oflag &= ~(ONLCR|OCRNL|ONOCR|ONLRET);
-		PTTY.c_cflag |= CSTOPB;
-		(void) ioctl(OUTF, TCSETAW, &PTTY);
-		/* initialize constants */
-		xscale  = (int)(4096. / (HORZRESP * WIDTH));
-		yscale = (int)(4096 / (VERTRESP * HEIGHT));
-		xoffset = (int)(OFFSET * HORZRESP);
-}
-
-void
-openvt(void) {
-	openpl();
-}
--- a/usr/src/lib/libplot/t300s/common/point.c	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,41 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License").  You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
-/*	  All Rights Reserved  	*/
-
-
-/*
- * Copyright (c) 1997 by Sun Microsystems, Inc.
- * All rights reserved
- */
-
-#pragma ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 1.2	*/
-/*LINTLIBRARY*/
-
-#include <plot.h>
-
-void
-point(short xi, short yi)
-{
-	move(xi, yi);
-	label(".");
-}
--- a/usr/src/lib/libplot/t300s/common/space.c	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,47 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License").  You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
-/*	  All Rights Reserved  	*/
-
-
-/*
- * Copyright (c) 1997 by Sun Microsystems, Inc.
- * All rights reserved
- */
-
-#pragma ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 1.2	*/
-/*LINTLIBRARY*/
-
-#include "con.h"
-
-float deltx, delty = 0.0;
-
-void
-space(short x0, short y0, short x1, short y1)
-{
-	botx = -2047.;
-	boty = -2047.;
-	obotx = x0;
-	oboty = y0;
-	scalex = deltx / (x1-x0);
-	scaley = delty / (y1-y0);
-}
--- a/usr/src/lib/libplot/t300s/common/subr.c	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,226 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License").  You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
-/*	  All Rights Reserved  	*/
-
-
-/*
- * Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
- * Use is subject to license terms.
- */
-
-#pragma ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 1.3	*/
-/*LINTLIBRARY*/
-
-#include <signal.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <unistd.h>
-#include <plot.h>
-#include "con.h"
-
-static void
-delay(void)
-{
-	int i;
-	for (i = 0; i < 2; i++) {
-		(void) ioctl(OUTF, TCSBRK, 1);
-	}
-}
-
-int
-xconv(int xp)
-{
-	/*
-	 * x position input is -2047 to +2047,
-	 * output must be 0 to PAGSIZ*HORZRES
-	 */
-	xp += 2048;
-	/* the computation is newx = xp*(PAGSIZ*HORZRES)/4096 */
-	return (int)(xoffset + xp / xscale);
-}
-
-int
-yconv(int yp)
-{
-	/* see description of xconv */
-	yp += 2048;
-	return (int)(yp / yscale);
-}
-
-void
-inplot(void)
-{
-	spew(ESC);
-	spew(INPLOT);
-}
-
-void
-outplot(void)
-{
-	spew(ESC);
-	spew(ACK);
-	spew(ESC);
-	spew(ACK);
-	(void) fflush(stdout);
-}
-
-void
-spew(char ch)
-{
-	(void) putc(ch, stdout);
-}
-
-void
-tobotleft(void)
-{
-	move(-2048, -2048);
-}
-
-void
-reset(void)
-{
-	struct termio ITTY;
-	(void) signal(SIGINT, SIG_IGN);
-	outplot();
-	(void) ioctl(OUTF, TCSETAW, &ITTY);
-	_exit(0);
-}
-
-float
-dist2(int x1, int y1, int x2, int y2)
-{
-	float t, v;
-	t = x2 - x1;
-	v = y1 - y2;
-	return (t * t + v * v);
-}
-
-void
-swap(int *pa, int *pb)
-{
-	int t;
-	t = *pa;
-	*pa = *pb;
-	*pb = t;
-}
-
-#define	DOUBLE 010
-#define	ADDR 0100
-#define	COM 060
-#define	MAXX 070
-#define	MAXY 07
-#define	SPACES 7
-
-void
-movep(int ix, int iy)
-{
-	int dx, dy, remx, remy, pts, i;
-	int xd, yd;
-	char c, addr, command;
-	if ((xnow == ix) && (ynow == iy))
-		return;
-	inplot();
-	dx = ix - xnow;
-	dy = iy - ynow;
-	command = COM|PENUP|((dx < 0) << 1)|(dy < 0);
-	dx = abs(dx);
-	dy = abs(dy);
-	xd = dx / (SPACES*2);
-	yd = dy / (SPACES*2);
-	pts = xd < yd ? xd : yd;
-	if ((i = pts) > 0) {
-		c = command|DOUBLE;
-		addr = ADDR;
-		if (xd > 0)
-			addr |= MAXX;
-		if (yd > 0)
-			addr |= MAXY;
-		spew(c);
-		delay();
-		while (i--) {
-			spew(addr);
-			delay();
-		}
-	}
-	if (xd != yd) {
-		if (xd > pts) {
-			i = xd - pts;
-			addr = ADDR|MAXX;
-		} else {
-			i = yd - pts;
-			addr = ADDR|MAXY;
-		}
-		c = command|DOUBLE;
-		spew(c);
-		delay();
-		while (i--) {
-			spew(addr);
-			delay();
-		}
-	}
-	remx = dx - xd * SPACES * 2;
-	remy = dy - yd * SPACES * 2;
-	addr = ADDR;
-	i = 0;
-	if (remx > 7) {
-		i = 1;
-		addr |= MAXX;
-		remx -= 7;
-	}
-	if (remy > 7) {
-		i = 1;
-		addr |= MAXY;
-		remy -= 7;
-	}
-	while (i--) {
-		spew(command);
-		delay();
-		spew(addr);
-		delay();
-	}
-	if ((remx > 0) || (remy > 0)) {
-		spew(command);
-		delay();
-		spew(ADDR|remx << 3|remy);
-		delay();
-	}
-	xnow = ix;
-	ynow = iy;
-	outplot();
-}
-
-int
-xsc(int xi)
-{
-	int xa;
-	xa = (int)((xi - obotx) * scalex + botx);
-	return (xa);
-}
-
-int
-ysc(int yi)
-{
-	int ya;
-	ya = (int)((yi - oboty) * scaley + boty);
-	return (ya);
-}
--- a/usr/src/lib/libplot/t300s/i386/Makefile	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,34 +0,0 @@
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-#
-# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
-# Use is subject to license terms.
-#
-# ident	"%Z%%M%	%I%	%E% SMI"
-#
-
-include ../Makefile.com
-
-all: $(LIBS) $(LINTLIB)
-
-.KEEP_STATE:
-
-install: all $(ROOTLIBS) $(ROOTLINKS) $(ROOTLINT)
--- a/usr/src/lib/libplot/t300s/sparc/Makefile	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,34 +0,0 @@
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-#
-# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
-# Use is subject to license terms.
-#
-# ident	"%Z%%M%	%I%	%E% SMI"
-#
-
-include ../Makefile.com
-
-all: $(LIBS)
-
-.KEEP_STATE:
-
-install: all $(ROOTLIBS) $(ROOTLINKS) $(ROOTLINT)
--- a/usr/src/lib/libplot/t300s/sparcv9/Makefile	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,37 +0,0 @@
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-#
-# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
-# Use is subject to license terms.
-#
-# ident	"%Z%%M%	%I%	%E% SMI"
-#
-
-include ../Makefile.com
-include ../../../Makefile.lib.64
-
-LIBS= $(DYNLIB) $(LINTLIB)
-
-all: $(LIBS)
-
-.KEEP_STATE:
-
-install: all $(ROOTLIBS64) $(ROOTLINKS64)
--- a/usr/src/lib/libplot/t4014/Makefile	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,49 +0,0 @@
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-#
-# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
-# Use is subject to license terms.
-#
-# ident	"%Z%%M%	%I%	%E% SMI"
-#
-
-include	../../Makefile.lib
-
-SUBDIRS =	$(MACH)
-$(BUILD64)SUBDIRS += $(MACH64)
-
-all :=		TARGET= all
-clean :=	TARGET= clean
-clobber :=	TARGET= clobber
-delete :=	TARGET= delete
-install :=	TARGET= install
-lint :=		TARGET= lint
-
-.KEEP_STATE:
-
-all clean clobber delete install lint: $(SUBDIRS)
-
-
-$(SUBDIRS):	FRC
-	 @cd $@; pwd; $(MAKE) $(TARGET)
-
-FRC:
-
--- a/usr/src/lib/libplot/t4014/Makefile.com	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,62 +0,0 @@
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-#
-# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
-# Use is subject to license terms.
-#
-# ident	"%Z%%M%	%I%	%E% SMI"
-#
-
-LIBRARY= lib4014.a
-VERS= .1
-
-OBJECTS=	\
-	arc.o	box.o	circle.o	close.o	\
-	dot.o	erase.o	label.o	\
-	line.o	linemod.o	move.o	open.o	\
-	point.o	space.o	subr.o
-
-# include library definitions
-include ../../../Makefile.lib
-
-SRCDIR =	../common
-
-LIBS =		$(DYNLIB) $(LINTLIB)
-
-LINTSRC=	$(LINTLIB:%.ln=%)
-
-CFLAGS +=	$(CCVERBOSE)
-LDLIBS += -lc -lm
-
-.KEEP_STATE:
-
-lint: lintcheck
-
-# include library targets
-include ../../../Makefile.targ
-
-pics/%.o: ../common/%.c
-	$(COMPILE.c) -o $@ $<
-	$(POST_PROCESS_O)
-
-# install rule for lint library target
-$(ROOTLINTDIR)/%:	../common/%
-	$(INS.file)
--- a/usr/src/lib/libplot/t4014/amd64/Makefile	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,39 +0,0 @@
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-#
-# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
-# Use is subject to license terms.
-#
-# ident	"%Z%%M%	%I%	%E% SMI"
-#
-
-include ../Makefile.com
-include ../../../Makefile.lib.64
-
-LINTFLAGS64 +=	-erroff=E_ASSIGMENT_CAUSE_LOSS_PREC
-
-LIBS= $(DYNLIB) $(LINTLIB)
-
-all: $(LIBS)
-
-.KEEP_STATE:
-
-install: all $(ROOTLIBS64) $(ROOTLINKS64)
--- a/usr/src/lib/libplot/t4014/common/arc.c	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,188 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License").  You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
-/*	  All Rights Reserved  	*/
-
-
-/*
- * Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
- * Use is subject to license terms.
- */
-
-#pragma ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 1.4	*/
-/*LINTLIBRARY*/
-
-#include <stdlib.h>
-#include <math.h>
-#include <plot.h>
-#include "con.h"
-
-static int del = 20;
-
-static void
-step(int d)
-{
-	del = d;
-}
-
-/*
- * local definition of quad
- * legacy code
- */
-static short
-quad_l(short x, short y, short xp, short yp)
-{
-	if (x < xp)
-		if (y <= yp)
-			return (1);
-		else return (4);
-	else if (x > xp)
-		if (y < yp)
-			return (2);
-		else return (3);
-	else if (y < yp)
-		return (2);
-	else return (4);
-}
-
-void
-arc(short x, short y, short x0, short y0, short x1, short y1)
-{
-	double pc;
-	int flg, m, xc, yc, xs, ys, qs, qf, qt, qtctr = 0;
-	int m0, m1;
-	float dx, dy, r;
-	char use;
-	dx = x - x0;
-	dy = y - y0;
-	r = dx * dx + dy * dy;
-	pc = r;
-	pc = sqrt(pc);
-	flg = (int)(pc / 4);
-	if (flg == 0)
-		step(1);
-	else if (flg < del)
-		step(flg);
-	xc = xs = x0;
-	yc = ys = y0;
-	move((short)xs, (short)ys);
-	if ((x0 == x1) && (y0 == y1))
-		flg = 0;
-	else flg = 1;
-	qs = quad_l(x, y, x0, y0);
-	qf = quad_l(x, y, x1, y1);
-	if (abs(x - x1) < abs(y - y1)) {
-		use = 'x';
-		if ((qs == 2) || (qs == 3))
-			m = -1;
-		else m = 1;
-	} else {
-		use = 'y';
-		if (qs > 2)
-			m = -1;
-		else m = 1;
-	}
-	if (qs == qf) {
-		m0 = (y0 - y) / (x0 - x);
-		m1 = (y1 - y) / (x1 - x);
-		if (m0 >= m1)
-			qt = 4;
-		else qt = 0;
-	} else if ((qt = qf - qs) < 0)
-			qt += 4;
-	/* LINTED */
-	while (1) {
-		switch (use) {
-		case 'x':
-			if ((qs == 2) || (qs == 3))
-				yc -= del;
-			else yc += del;
-			dy = yc - y;
-			pc = r - dy * dy;
-			xc = (int)(m * sqrt(pc) + x);
-			if (((x < xs) && (x >= xc)) ||
-			    ((x > xs) && (x <= xc)) ||
-			    ((y < ys) && (y >= yc)) ||
-			    ((y > ys) && (y <= yc))) {
-				if (++qtctr > qt)
-					return;
-				if (++qs > 4)
-					qs = 1;
-				if ((qs == 2) || (qs == 3))
-					m = -1;
-				else m = 1;
-				flg = 1;
-			}
-			cont((short)xc, (short)yc);
-			xs = xc;
-			ys = yc;
-			if ((qs == qf) && (flg == 1))
-				switch (qf) {
-				case 3:
-				case 4:
-					if (xs >= x1)
-						return;
-					continue;
-				case 1:
-				case 2:
-					if (xs <= x1)
-						return;
-				}
-			continue;
-		case 'y':
-			if (qs > 2)
-				xc += del;
-			else xc -= del;
-			dx = xc - x;
-			pc = r - dx * dx;
-			yc = (int)(m * sqrt(pc) + y);
-			if (((x < xs) && (x >= xc)) ||
-			    ((x > xs) && (x <= xc)) ||
-			    ((y < ys) && (y >= yc)) ||
-			    ((y > ys) && (y <= yc))) {
-				if (++qtctr > qt)
-					return;
-				if (++qs > 4)
-					qs = 1;
-				if (qs > 2)
-					m = -1;
-				else m = 1;
-				flg = 1;
-			}
-			cont((short)xc, (short)yc);
-			xs = xc;
-			ys = yc;
-			if ((qs == qf) && (flg == 1))
-				switch (qs) {
-				case 1:
-				case 4:
-					if (ys >= y1)
-						return;
-					continue;
-				case 2:
-				case 3:
-					if (ys <= y1)
-						return;
-				}
-		}
-	}
-}
--- a/usr/src/lib/libplot/t4014/common/box.c	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,45 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License").  You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
-/*	  All Rights Reserved  	*/
-
-
-/*
- * Copyright (c) 1997 by Sun Microsystems, Inc.
- * All rights reserved
- */
-
-#pragma ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 1.2	*/
-/*LINTLIBRARY*/
-
-#include <plot.h>
-
-void
-box(short x0, short y0, short x1, short y1)
-{
-	move(x0, y0);
-	cont(x0, y1);
-	cont(x1, y1);
-	cont(x1, y0);
-	cont(x0, y0);
-	move(x1, y1);
-}
--- a/usr/src/lib/libplot/t4014/common/circle.c	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,40 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License").  You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
-/*	  All Rights Reserved  	*/
-
-
-/*
- * Copyright (c) 1997 by Sun Microsystems, Inc.
- * All rights reserved
- */
-
-#pragma ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 1.2	*/
-/*LINTLIBRARY*/
-
-#include <plot.h>
-
-void
-circle(short x, short y, short r)
-{
-	arc(x, y, x + r, y, x + r, y);
-}
--- a/usr/src/lib/libplot/t4014/common/close.c	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,49 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License").  You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
-/*	  All Rights Reserved  	*/
-
-
-/*
- * Copyright (c) 1997 by Sun Microsystems, Inc.
- * All rights reserved
- */
-
-#pragma ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 1.2	*/
-/*LINTLIBRARY*/
-
-#include <stdio.h>
-#include "con.h"
-
-void
-closevt(void)
-{
-	putch(037);
-	(void) fflush(stdout);
-}
-
-void
-closepl(void)
-{
-	putch(037);
-	(void) fflush(stdout);
-}
--- a/usr/src/lib/libplot/t4014/common/con.h	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,36 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License").  You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-
-/*
- * Copyright (c) 1997 by Sun Microsystems, Inc.
- * All rights reserved
- */
-
-#pragma ident	"%Z%%M%	%I%	%E% SMI"
-
-#include <termio.h>
-
-extern void putch(char);
-extern int ohiy, ohix, oloy, oextra;
-extern float scalex, scaley;
-extern int scaleflag;
-extern float obotx, oboty;
--- a/usr/src/lib/libplot/t4014/common/dot.c	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,37 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License").  You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
-/*	  All Rights Reserved  	*/
-
-
-/*
- * Copyright (c) 1997 by Sun Microsystems, Inc.
- * All rights reserved
- */
-
-#pragma ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 1.2	*/
-/*LINTLIBRARY*/
-
-void
-dot(void)
-{
-}
--- a/usr/src/lib/libplot/t4014/common/erase.c	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,47 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License").  You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
-/*	  All Rights Reserved  	*/
-
-
-/*
- * Copyright (c) 1997 by Sun Microsystems, Inc.
- * All rights reserved
- */
-
-#pragma ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 1.2	*/
-/*LINTLIBRARY*/
-
-#include <unistd.h>
-#include "con.h"
-
-void
-erase(void)
-{
-	putch(033);
-	putch(014);
-	ohiy = -1;
-	ohix = -1;
-	oextra = -1;
-	oloy = -1;
-	(void) sleep(2);
-}
--- a/usr/src/lib/libplot/t4014/common/label.c	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,72 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License").  You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
-/*	  All Rights Reserved  	*/
-
-
-/*
- * Copyright (c) 1997 by Sun Microsystems, Inc.
- * All rights reserved
- */
-
-#pragma ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 1.2	*/
-/*LINTLIBRARY*/
-
-#include "con.h"
-
-#define	N 0104
-#define	E 0101
-#define	NE 0105
-#define	S 0110
-#define	W 0102
-#define	SW 0112
-
-/*
- *	arrange by incremental plotting that an initial
- *	character such as +, X, *, etc will fall
- *	right on the point, and undo it so that further
- *	labels will fall properly in place
- */
-
-
-void
-label(char *s)
-{
-	char lbl_mv[] = {036, 040, S, S, S, S, S, S, SW, SW,
-	SW, SW, SW, SW, SW, SW, SW, SW, 037, 0};
-
-	char lbl_umv[] = {036, 040, N, N, N, N, N, N, NE, NE,
-	NE, NE, NE, NE, NE, NE, NE, NE, 037, 0};
-
-	int i;
-	char c;
-
-	/* LINTED */
-	for (i = 0; c = lbl_mv[i]; i++)
-		putch(c);
-	/* LINTED */
-	for (i = 0; c = s[i]; i++)
-		putch(c);
-	/* LINTED */
-	for (i = 0; c = lbl_umv[i]; i++)
-		putch(c);
-}
--- a/usr/src/lib/libplot/t4014/common/line.c	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,41 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License").  You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
-/*	  All Rights Reserved  	*/
-
-
-/*
- * Copyright (c) 1997 by Sun Microsystems, Inc.
- * All rights reserved
- */
-
-#pragma ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 1.2	*/
-/*LINTLIBRARY*/
-
-#include <plot.h>
-
-void
-line(short x0, short y0, short x1, short y1)
-{
-	move(x0, y0);
-	cont(x1, y1);
-}
--- a/usr/src/lib/libplot/t4014/common/linemod.c	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,56 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License").  You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
-/*	  All Rights Reserved  	*/
-
-
-/*
- * Copyright (c) 1997 by Sun Microsystems, Inc.
- * All rights reserved
- */
-
-#pragma ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 1.2	*/
-/*LINTLIBRARY*/
-
-#include "con.h"
-
-void
-linemod(char *s)
-{
-	char c;
-	putch(033);
-	switch (s[0]) {
-	case 'l':
-		c = 'd';
-		break;
-	case 'd':
-		if (s[3] != 'd')
-			c = 'a';
-		else c = 'b';
-		break;
-	case 's':
-		if (s[5] != '\0')
-			c = 'c';
-		else c = '`';
-	}
-	putch(c);
-}
--- a/usr/src/lib/libplot/t4014/common/llib-l4014	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,73 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License").  You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/*
- * Copyright (c) 1997 by Sun Microsystems, Inc.
- * All rights reserved
- */
-
-#pragma ident	"%Z%%M%	%I%	%E% SMI"
-
-/*LINTLIBRARY*/
-/*PROTOLIB1*/
-
-#include <stdio.h>
-
-/*arc.c*/
-void arc(short, short, short, short, short, short);
-
-/*box.c*/
-void box(short, short, short, short);
-
-/*circle.c*/
-void circle(short, short, short);
-
-/*close.c*/
-void closelp(void);
-void closevt(void);
-
-/*cont.c*/
-void cont(short, short);
-
-/*erase.c*/
-void erase(void);
-
-/*label.c*/
-void label(char *);
-
-/*line.c*/
-void line(short, short);
-
-/*linmod.c*/
-void linemod(char *);
-
-/*move.c*/
-void move(short, short);
-
-/*open.c*/
-void openpt();
-void openvt();
-
-/*point.c*/
-void point(short, short);
-
-/*space.c*/
-void space(short, short, short, short);
--- a/usr/src/lib/libplot/t4014/common/mapfile-vers	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,78 +0,0 @@
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-#
-# Copyright (c) 2006, 2010, Oracle and/or its affiliates. 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
-
-SYMBOL_VERSION SUNW_1.1 {
-    global:
-	arc;
-	box;
-	circle;
-	closepl;
-	closevt;
-	cont;
-	dot;
-	erase;
-	label;
-	line;
-	linemod;
-	move;
-	openpl;
-	openvt;
-	point;
-	space;
-};
-
-SYMBOL_VERSION SUNWprivate_1.1 {
-    global:
-	botx;
-	boty;
-	_lib_version;
-	obotx;
-	oboty;
-	oextra;
-	ohix;
-	ohiy;
-	oloy;
-	putch;
-	scaleflag;
-	scalex;
-	scaley;
-    local:
-	*;
-};
--- a/usr/src/lib/libplot/t4014/common/move.c	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,42 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License").  You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
-/*	  All Rights Reserved  	*/
-
-
-/*
- * Copyright (c) 1997 by Sun Microsystems, Inc.
- * All rights reserved
- */
-
-#pragma ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 1.2	*/
-/*LINTLIBRARY*/
-
-#include <plot.h>
-#include "con.h"
-
-void
-move(short xi, short yi)
-{
-	putch(035);
-	cont(xi, yi);
-}
--- a/usr/src/lib/libplot/t4014/common/open.c	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,42 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License").  You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
-/*	  All Rights Reserved  	*/
-
-
-/*
- * Copyright (c) 1997 by Sun Microsystems, Inc.
- * All rights reserved
- */
-
-#pragma ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 1.2	*/
-/*LINTLIBRARY*/
-
-void
-openvt(void)
-{
-}
-
-void
-openpl(void)
-{
-}
--- a/usr/src/lib/libplot/t4014/common/point.c	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,41 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License").  You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
-/*	  All Rights Reserved  	*/
-
-
-/*
- * Copyright (c) 1997 by Sun Microsystems, Inc.
- * All rights reserved
- */
-
-#pragma ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 1.2	*/
-/*LINTLIBRARY*/
-
-#include <plot.h>
-
-void
-point(short xi, short yi)
-{
-	move(xi, yi);
-	cont(xi, yi);
-}
--- a/usr/src/lib/libplot/t4014/common/scale.c	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,56 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License").  You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
-/*	  All Rights Reserved  	*/
-
-
-/*
- * Copyright (c) 1997 by Sun Microsystems, Inc.
- * All rights reserved
- */
-
-#pragma ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 1.2	*/
-/*LINTLIBRARY*/
-
-#include "con.h"
-
-void
-scale(char i, float x, float y)
-{
-	switch (i) {
-	default:
-		return;
-	case 'c':
-		x *= 2.54;
-		y *= 2.54;
-		/*FALLTHRU*/
-	case 'i':
-		x /= 200;
-		y /= 200;
-		/*FALLTHRU*/
-	case 'u':
-		scalex = 1 / x;
-		scaley = 1 / y;
-		/*FALLTHRU*/
-	}
-	scaleflag = 1;
-}
--- a/usr/src/lib/libplot/t4014/common/space.c	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,45 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License").  You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
-/*	  All Rights Reserved  	*/
-
-
-/*
- * Copyright (c) 1997 by Sun Microsystems, Inc.
- * All rights reserved
- */
-
-#pragma ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 1.2	*/
-/*LINTLIBRARY*/
-
-#include "con.h"
-
-void
-space(short x0, short y0, short x1, short y1)
-{
-	obotx = x0;
-	oboty = y0;
-	if (scaleflag)
-		return;
-	scalex = 3120. / (x1 - x0);
-	scaley = 3120. / (y1 - y0);
-}
--- a/usr/src/lib/libplot/t4014/common/subr.c	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,97 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License").  You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
-/*	  All Rights Reserved  	*/
-
-
-/*
- * Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
- * Use is subject to license terms.
- */
-
-#pragma ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 1.2	*/
-/*LINTLIBRARY*/
-
-#include <stdlib.h>
-#include <stdio.h>
-#include "con.h"
-
-float obotx = 0.0;
-float oboty = 0.0;
-float botx = 0.0;
-float boty = 0.0;
-float scalex = 1.0;
-float scaley = 1.0;
-int scaleflag = 0;
-int oloy = -1;
-int ohiy = -1;
-int ohix = -1;
-int oextra = -1;
-
-
-void
-putch(char c)
-{
-	(void) putc(c, stdout);
-}
-
-void
-cont(short x, short y)
-{
-	short hix, hiy, lox, loy, extra;
-	short n;
-	x = (short)((x - obotx) * scalex + botx);
-	y = (short)((y - oboty) * scaley + boty);
-	hix = (x>>7) & 037;
-	hiy = (y>>7) & 037;
-	lox = (x>>2) & 037;
-	loy = (y>>2) & 037;
-	extra = x & 03 + (y<<2) & 014;
-	n = (abs(hix - ohix) + abs(hiy - ohiy) + 6) / 12;
-	if (hiy != ohiy) {
-		putch(hiy|040);
-		ohiy = hiy;
-	}
-	if (hix != ohix) {
-		if (extra != oextra) {
-			putch(extra|0140);
-			oextra = extra;
-		}
-		putch(loy|0140);
-		putch(hix|040);
-		ohix = hix;
-		oloy = loy;
-	} else {
-		if (extra != oextra) {
-			putch(extra|0140);
-			putch(loy|0140);
-			oextra = extra;
-			oloy = loy;
-		} else if (loy != oloy) {
-			putch(loy|0140);
-			oloy = loy;
-		}
-	}
-	putch(lox|0100);
-	while (n--)
-		putch(0);
-}
--- a/usr/src/lib/libplot/t4014/i386/Makefile	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,34 +0,0 @@
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-#
-# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
-# Use is subject to license terms.
-#
-# ident	"%Z%%M%	%I%	%E% SMI"
-#
-
-include ../Makefile.com
-
-all: $(LIBS)
-
-.KEEP_STATE:
-
-install: all $(ROOTLIBS) $(ROOTLINKS) $(ROOTLINT)
--- a/usr/src/lib/libplot/t4014/sparc/Makefile	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,34 +0,0 @@
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-#
-# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
-# Use is subject to license terms.
-#
-# ident	"%Z%%M%	%I%	%E% SMI"
-#
-
-include ../Makefile.com
-
-all: $(LIBS)
-
-.KEEP_STATE:
-
-install: all $(ROOTLIBS) $(ROOTLINKS) $(ROOTLINT)
--- a/usr/src/lib/libplot/t4014/sparcv9/Makefile	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,37 +0,0 @@
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-#
-# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
-# Use is subject to license terms.
-#
-# ident	"%Z%%M%	%I%	%E% SMI"
-#
-
-include ../Makefile.com
-include ../../../Makefile.lib.64
-
-LIBS= $(DYNLIB) $(LINTLIB)
-
-all: $(LIBS)
-
-.KEEP_STATE:
-
-install: all $(ROOTLIBS64) $(ROOTLINKS64)
--- a/usr/src/lib/libplot/t450/Makefile	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,49 +0,0 @@
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-#
-# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
-# Use is subject to license terms.
-#
-# ident	"%Z%%M%	%I%	%E% SMI"
-#
-
-include ../../Makefile.lib
-
-SUBDIRS =	$(MACH)
-$(BUILD64)SUBDIRS += $(MACH64)
-
-all :=		TARGET= all
-clean :=	TARGET= clean
-clobber :=	TARGET= clobber
-delete :=	TARGET= delete
-install :=	TARGET= install
-lint :=		TARGET= lint
-
-.KEEP_STATE:
-
-all clean clobber delete install lint: $(SUBDIRS)
-
-
-$(SUBDIRS):	FRC
-	 @cd $@; pwd; $(MAKE) $(TARGET)
-
-FRC:
-
--- a/usr/src/lib/libplot/t450/Makefile.com	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,64 +0,0 @@
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-#
-# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
-# Use is subject to license terms.
-#
-# ident	"%Z%%M%	%I%	%E% SMI"
-#
-
-LIBRARY= lib450.a
-VERS= .1
-
-OBJECTS=	\
-	arc.o	box.o	circle.o	close.o	\
-	dot.o	erase.o	label.o	\
-	line.o	linmod.o	move.o	open.o	\
-	point.o	space.o	subr.o
-
-# include library definitions
-include ../../../Makefile.lib
-
-SRCDIR =	../common
-
-LIBS =		$(DYNLIB) $(LINTLIB)
-
-$(LINTLIB):= SRCS=../common/llib-l450
-
-LINTSRC=	$(LINTLIB:%.ln=%)
-
-CFLAGS +=	$(CCVERBOSE)
-LDLIBS += -lc -lm
-
-.KEEP_STATE:
-
-lint: lintcheck
-
-# include library targets
-include ../../../Makefile.targ
-
-pics/%.o: ../common/%.c
-	$(COMPILE.c) -o $@ $<
-	$(POST_PROCESS_O)
-
-# install rule for lint library target
-$(ROOTLINTDIR)/%:	../common/%
-	$(INS.file)
--- a/usr/src/lib/libplot/t450/amd64/Makefile	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,39 +0,0 @@
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-#
-# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
-# Use is subject to license terms.
-#
-# ident	"%Z%%M%	%I%	%E% SMI"
-#
-
-include ../Makefile.com
-include ../../../Makefile.lib.64
-
-LINTFLAGS64 +=	-erroff=E_ASSIGMENT_CAUSE_LOSS_PREC
-
-LIBS= $(DYNLIB) $(LINTLIB)
-
-all: $(LIBS)
-
-.KEEP_STATE:
-
-install: all $(ROOTLIBS64) $(ROOTLINKS64)
--- a/usr/src/lib/libplot/t450/common/arc.c	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,190 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License").  You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
-/*	  All Rights Reserved  	*/
-
-
-/*
- * Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
- * Use is subject to license terms.
- */
-
-#pragma ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 1.4	*/
-/*LINTLIBRARY*/
-
-#include <stdlib.h>
-#include <math.h>
-#include <plot.h>
-#include "con.h"
-
-static int del = 20;
-
-/*
- * local definitions for quad
- * legacy code
- */
-static short
-quad_l(short x, short y, short xp, short yp)
-{
-	if (x < xp)
-		if (y <= yp)
-			return (1);
-		else return (4);
-	else if (x > xp)
-		if (y < yp)
-			return (2);
-		else return (3);
-	else if (y < yp)
-		return (2);
-	else return (4);
-}
-
-static void
-step(int d)
-{
-	del = d;
-}
-
-void
-arc(short x, short y, short x0, short y0, short x1, short y1)
-{
-	double pc;
-	double sqrt(double);
-	int flg, m, qs, qf, qt, qtctr = 0;
-	int m0, m1;
-	short xs, ys, xc, yc;
-	float dx, dy, r;
-	char use;
-	dx = x - x0;
-	dy = y - y0;
-	r = dx * dx + dy * dy;
-	pc = r;
-	pc = sqrt(pc);
-	flg = (int)(pc / 4);
-	if (flg == 0)
-		step(1);
-	else if (flg < del)
-		step(flg);
-	xc = xs = x0;
-	yc = ys = y0;
-	move(xs, ys);
-	if ((x0 == x1) && (y0 == y1))
-		flg = 0;
-	else flg = 1;
-	qs = quad_l(x, y, x0, y0);
-	qf = quad_l(x, y, x1, y1);
-	if (abs(x - x1) < abs(y - y1)) {
-		use = 'x';
-		if ((qs == 2) || (qs == 3))
-			m = -1;
-		else m = 1;
-	} else {
-		use = 'y';
-		if (qs > 2)
-			m = -1;
-		else m = 1;
-	}
-	if (qs == qf) {
-		m0 = (y0 - y) / (x0 - x);
-		m1 = (y1 - y) / (x1 - x);
-		if (m0 >= m1)
-			qt = 4;
-		else qt = 0;
-	} else if ((qt = qf - qs) < 0)
-			qt += 4;
-	/* LINTED */
-	while (1) {
-		switch (use) {
-		case 'x':
-			if ((qs == 2) || (qs == 3))
-				yc -= del;
-			else yc += del;
-			dy = yc - y;
-			pc = r - dy * dy;
-			xc = (int)(m * sqrt(pc) + x);
-			if (((x < xs) && (x >= xc)) ||
-			    ((x > xs) && (x <= xc)) ||
-			    ((y < ys) && (y >= yc)) ||
-			    ((y > ys) && (y <=  yc))) {
-				if (++qtctr > qt)
-					return;
-				if (++qs > 4)
-					qs = 1;
-				if ((qs == 2) || (qs == 3))
-					m = -1;
-				else m = 1;
-				flg = 1;
-			}
-			cont(xc, yc);
-			xs = xc;
-			ys = yc;
-			if ((qs == qf) && (flg == 1))
-				switch (qf) {
-				case 3:
-				case 4:
-					if (xs >= x1)
-						return;
-					continue;
-				case 1:
-				case 2:
-					if (xs <= x1)
-						return;
-				}
-			continue;
-		case 'y':
-			if (qs > 2)
-				xc += del;
-			else xc -= del;
-			dx = xc - x;
-			pc = r - dx * dx;
-			yc = (int)(m * sqrt(pc) + y);
-			if (((x < xs) && (x >= xc)) ||
-			    ((x > xs) && (x <= xc)) ||
-			    ((y < ys) && (y >= yc)) ||
-			    ((y > ys) && (y <= yc))) {
-				if (++qtctr > qt)
-					return;
-				if (++qs > 4)
-					qs = 1;
-				if (qs > 2)
-					m = -1;
-				else m = 1;
-				flg = 1;
-			}
-			cont(xc, yc);
-			xs = xc;
-			ys = yc;
-			if ((qs == qf) && (flg == 1))
-				switch (qs) {
-				case 1:
-				case 4:
-					if (ys >= y1)
-						return;
-					continue;
-				case 2:
-				case 3:
-					if (ys <= y1)
-						return;
-				}
-		}
-	}
-}
--- a/usr/src/lib/libplot/t450/common/box.c	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,45 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License").  You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
-/*	  All Rights Reserved  	*/
-
-
-/*
- * Copyright (c) 1997 by Sun Microsystems, Inc.
- * All rights reserved
- */
-
-#pragma ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 1.2	*/
-/*LINTLIBRARY*/
-
-#include <plot.h>
-
-void
-box(short x0, short y0, short x1, short y1)
-{
-	move(x0, y0);
-	cont(x0, y1);
-	cont(x1, y1);
-	cont(x1, y0);
-	cont(x0, y0);
-	move(x1, y1);
-}
--- a/usr/src/lib/libplot/t450/common/circle.c	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,40 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License").  You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
-/*	  All Rights Reserved  	*/
-
-
-/*
- * Copyright (c) 1997 by Sun Microsystems, Inc.
- * All rights reserved
- */
-
-#pragma ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 1.3	*/
-/*LINTLIBRARY*/
-
-#include <plot.h>
-
-void
-circle(short x, short y, short r)
-{
-	arc(x, y, x + r, y, x + r, y);
-}
--- a/usr/src/lib/libplot/t450/common/close.c	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,48 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License").  You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
-/*	  All Rights Reserved  	*/
-
-
-/*
- * Copyright (c) 1997 by Sun Microsystems, Inc.
- * All rights reserved
- */
-
-#pragma ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 1.2	*/
-/*LINTLIBRARY*/
-
-#include <stdio.h>
-#include "con.h"
-
-void
-closepl(void)
-{
-	(void) fflush(stdout);
-	reset();
-}
-
-void
-closevt(void)
-{
-	closepl();
-}
--- a/usr/src/lib/libplot/t450/common/con.h	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,77 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License").  You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
-/*	  All Rights Reserved  	*/
-
-
-/*
- * Copyright (c) 1997 by Sun Microsystems, Inc.
- * All rights reserved
- */
-
-#pragma ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 1.2	*/
-
-#include <termio.h>
-
-/* gsi plotting output routines */
-#define	DOWN 012
-#define	UP 013
-#define	LEFT 010
-#define	RIGHT 040
-#define	BEL 007
-#define	ESC 033
-#define	ACK 006
-#define	PLOTIN 063
-#define	PLOTOUT 064
-#define	CR 015
-#define	FF 014
-#define	VERTRESP 48
-#define	HORZRESP 60.
-#define	VERTRES 8.
-#define	HORZRES 6.
-
-/* vert and horiz spacing */
-#define RS 036
-#define US 037
-#define HT 011
-
-/*
- * down is line feed, up is reverse line feed,
- * left is backspace, right is space.  48 points per inch
- * vertically, 60 horizontally
-*/
-
-extern int xnow, ynow;
-extern struct termio ITTY, PTTY;
-extern int OUTF;
-extern int xscale, xoffset, yscale;
-extern float botx, boty, obotx, oboty, scalex, scaley;
-extern void movep(int, int);
-extern void spew(char);
-extern int xconv(int);
-extern int yconv(int);
-extern void inplot(void);
-extern void outplot(void);
-extern int xsc(int);
-extern int ysc(int);
-extern void reset(void);
-extern float dist2(int, int, int, int);
--- a/usr/src/lib/libplot/t450/common/dot.c	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,37 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License").  You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
-/*	  All Rights Reserved  	*/
-
-
-/*
- * Copyright (c) 1997 by Sun Microsystems, Inc.
- * All rights reserved
- */
-
-#pragma ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 1.2	*/
-/*LINTLIBRARY*/
-
-void
-dot(void)
-{
-}
--- a/usr/src/lib/libplot/t450/common/erase.c	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,42 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License").  You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
-/*	  All Rights Reserved  	*/
-
-
-/*
- * Copyright (c) 1997 by Sun Microsystems, Inc.
- * All rights reserved
- */
-
-#pragma ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 1.2	*/
-/*LINTLIBRARY*/
-
-#include "con.h"
-
-void
-erase(void)
-{
-	int i;
-	for (i = 0; i < 11 * (VERTRESP / VERTRES); i++)
-		spew(DOWN);
-}
--- a/usr/src/lib/libplot/t450/common/label.c	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,43 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License").  You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
-/*	  All Rights Reserved  	*/
-
-
-/*
- * Copyright (c) 1997 by Sun Microsystems, Inc.
- * All rights reserved
- */
-
-#pragma ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 1.2	*/
-
-#include "con.h"
-
-void
-label(char *s)
-{
-	char c;
-	while ((c = *s++) != '\0') {
-		xnow += HORZRES;
-		spew(c);
-	}
-}
--- a/usr/src/lib/libplot/t450/common/line.c	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,89 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License").  You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
-/*	  All Rights Reserved  	*/
-
-
-/*
- * Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
- * Use is subject to license terms.
- */
-
-#pragma ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 1.2	*/
-
-#include <stdlib.h>
-#include <math.h>
-#include <plot.h>
-#include "con.h"
-
-static void
-iline(int cx0, int cy0, int cx1, int cy1)
-{
-	int maxp, tt, j;
-	char chx, chy;
-	float xd, yd;
-	movep(cx0, cy0);
-	maxp = (int)(sqrt(dist2(cx0, cy0, cx1, cy1)) / 2.);
-	xd = cx1 - cx0;
-	yd = cy1 - cy0;
-	if (xd >= 0)
-		chx = RIGHT;
-	else chx = LEFT;
-	if (yd >= 0)
-		chy = UP;
-	else chy = DOWN;
-	if (maxp == 0) {
-		xd = 0;
-		yd = 0;
-	} else {
-		xd /= maxp;
-			yd /= maxp;
-		}
-		inplot();
-		for (tt = 0; tt <= maxp; tt++) {
-			j = (int)(cx0 + xd * tt - xnow);
-			xnow += j;
-			j = abs(j);
-			while (j-- > 0)
-				spew(chx);
-			j = (int)(cy0 + yd * tt - ynow);
-			ynow += j;
-			j = abs(j);
-			while (j-- > 0)
-				spew(chy);
-			spew('.');
-		}
-		outplot();
-}
-
-void
-line(short x0, short y0, short x1, short y1)
-{
-	iline(xconv(xsc(x0)), yconv(ysc(y0)),
-	    xconv(xsc(x1)), yconv(ysc(y1)));
-}
-
-void
-cont(short x0, short y0)
-{
-	iline(xnow, ynow, xconv(xsc(x0)), yconv(ysc(y0)));
-}
--- a/usr/src/lib/libplot/t450/common/linmod.c	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,36 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License").  You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
-/*	  All Rights Reserved  	*/
-
-
-/*
- * Copyright (c) 1997 by Sun Microsystems, Inc.
- * All rights reserved
- */
-
-#pragma ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 1.2	*/
-
-void
-linemod(void)
-{
-}
--- a/usr/src/lib/libplot/t450/common/llib-l450	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,73 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License").  You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/*
- * Copyright (c) 1997 by Sun Microsystems, Inc.
- * All rights reserved
- */
-
-#pragma ident	"%Z%%M%	%I%	%E% SMI"
-
-/*LINTLIBRARY*/
-/*PROTOLIB1*/
-
-#include <stdio.h>
-
-/*arc.c*/
-void arc(short, short, short, short, short, short);
-
-/*box.c*/
-void box(short, short, short, short);
-
-/*circle.c*/
-void circle(short, short, short);
-
-/*close.c*/
-void closelp(void);
-void closevt(void);
-
-/*cont.c*/
-void cont(short, short);
-
-/*erase.c*/
-void erase(void);
-
-/*label.c*/
-void label(char *);
-
-/*line.c*/
-void line(short, short);
-
-/*linmod.c*/
-void linemod(char *);
-
-/*move.c*/
-void move(short, short);
-
-/*open.c*/
-void openpt();
-void openvt();
-
-/*point.c*/
-void point(short, short);
-
-/*space.c*/
-void space(short, short, short, short);
--- a/usr/src/lib/libplot/t450/common/mapfile-vers	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,92 +0,0 @@
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-#
-# Copyright (c) 2006, 2010, Oracle and/or its affiliates. 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
-
-SYMBOL_VERSION SUNW_1.1 {
-    global:
-	arc;
-	box;
-	circle;
-	closepl;
-	closevt;
-	cont;
-	erase;
-	label;
-	line;
-	linemod;
-	move;
-	openpl;
-	openvt;
-	point;
-	space;
-};
-
-SYMBOL_VERSION SUNWprivate_1.1 {
-    global:
-	botx;
-	boty;
-	dist2;
-	dot;
-	inplot;
-	ITTY;
-	_lib_version;
-	movep;
-	obotx;
-	oboty;
-	OUTF;
-	outplot;
-	PTTY;
-	reset;
-	scalex;
-	scaley;
-	spew;
-	swap;
-	tobotleft;
-	xconv;
-	xnow;
-	xoffset;
-	xsc;
-	xscale;
-	yconv;
-	ynow;
-	ysc;
-	yscale;
-    local:
-	*;
-};
--- a/usr/src/lib/libplot/t450/common/move.c	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,39 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License").  You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
-/*	  All Rights Reserved  	*/
-
-
-/*
- * Copyright (c) 1997 by Sun Microsystems, Inc.
- * All rights reserved
- */
-
-#pragma ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 1.2	*/
-
-#include "con.h"
-
-void
-move(short xi, short yi)
-{
-	movep(xconv(xsc(xi)), yconv(ysc(yi)));
-}
--- a/usr/src/lib/libplot/t450/common/open.c	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,73 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License").  You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/*
- * Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
- * Use is subject to license terms.
- */
-
-#pragma ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 1.3	*/
-
-/*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
-/*	  All Rights Reserved  	*/
-
-
-#include <signal.h>
-#include <unistd.h>
-#include <stdio.h>
-#include "con.h"
-
-
-float botx = 0.0, boty = 0.0, obotx = 0.0, oboty = 0.0;
-float scalex = 1.0, scaley = 1.0;
-static float HEIGHT = 6.0, WIDTH = 6.0, OFFSET = 0.0;
-int xscale = 0, xoffset = 0, yscale = 0;
-struct termio ITTY, PTTY;
-
-void
-openpl(void)
-{
-	int OUTF = 1;
-	(void) printf("\r");
-	(void) ioctl(OUTF, TCGETA, &ITTY);
-	(void) signal(SIGINT, (void (*)(int))reset);
-	PTTY = ITTY;
-	PTTY.c_oflag &= ~(ONLCR|OCRNL|ONOCR|ONLRET);
-	PTTY.c_cflag |= CSTOPB;
-	(void) ioctl(OUTF, TCSETAW, &PTTY);
-	/* set vert and horiz spacing to 6 and 10 */
-	(void) putchar(ESC);	/* set vert spacing to 6 lpi */
-	(void) putchar(RS);
-	(void) putchar(HT);
-	(void) putchar(ESC);	/* set horiz spacing to 10 cpi */
-	(void) putchar(US);
-	(void) putchar(CR);
-	/* initialize constants */
-	xscale  = (int)(4096./(HORZRESP * WIDTH));
-	yscale = (int)(4096 /(VERTRESP * HEIGHT));
-	xoffset = (int)(OFFSET * HORZRESP);
-}
-
-void
-openvt(void)
-{
-	openpl();
-}
--- a/usr/src/lib/libplot/t450/common/point.c	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,40 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License").  You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
-/*	  All Rights Reserved  	*/
-
-
-/*
- * Copyright (c) 1997 by Sun Microsystems, Inc.
- * All rights reserved
- */
-
-#pragma ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 1.2	*/
-
-#include <plot.h>
-
-void
-point(short xi, short yi)
-{
-	move(xi, yi);
-	label(".");
-}
--- a/usr/src/lib/libplot/t450/common/space.c	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,44 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License").  You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
-/*	  All Rights Reserved  	*/
-
-
-/*
- * Copyright (c) 1997 by Sun Microsystems, Inc.
- * All rights reserved
- */
-
-#pragma ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 1.2	*/
-
-#include "con.h"
-
-void
-space(short x0, short y0, short x1, short y1)
-{
-	botx = -2047.;
-	boty = -2047.;
-	obotx = x0;
-	oboty = y0;
-	scalex = 4096. / (x1 - x0);
-	scaley = 4096. / (y1 - y0);
-}
--- a/usr/src/lib/libplot/t450/common/subr.c	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,176 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License").  You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
-/*	  All Rights Reserved  	*/
-
-
-/*
- * Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
- * Use is subject to license terms.
- */
-
-#pragma ident	"%Z%%M%	%I%	%E% SMI"
-/*LINTLIBRARY*/
-
-#include <stdlib.h>
-#include <stdio.h>
-#include <signal.h>
-#include <unistd.h>
-#include <plot.h>
-#include "con.h"
-
-int xnow, ynow, OUTF;
-
-int
-xconv(int xp)
-{
-	/*
-	 * x position input is -2047 to +2047,
-	 * output must be 0 to PAGSIZ*HORZRES
-	 */
-	xp += 2048;
-	/* the computation is newx = xp*(PAGSIZ*HORZRES)/4096 */
-	return (xoffset + xp / xscale);
-}
-
-int
-yconv(int yp)
-{
-	/* see description of xconv */
-	yp += 2048;
-	return (yp / yscale);
-}
-
-void
-inplot(void)
-{
-	spew(ESC);
-	spew(PLOTIN);
-}
-
-void
-outplot(void)
-{
-	spew(ESC);
-	spew(PLOTOUT);
-	(void) fflush(stdout);
-}
-
-void
-spew(char ch)
-{
-	if (ch == UP) {
-		(void) putc(ESC, stdout);
-		ch = DOWN;
-	}
-	(void) putc(ch, stdout);
-}
-
-void
-tobotleft(void)
-{
-	move(-2048, -2048);
-}
-
-void
-reset(void)
-{
-	(void) signal(SIGINT, SIG_IGN);
-	outplot();
-	(void) ioctl(OUTF, TCSETAW, &ITTY);
-	_exit(0);
-}
-
-float
-dist2(int x1, int y1, int x2, int y2)
-{
-	float t, v;
-	t = x2 - x1;
-	v = y1 - y2;
-	return (t * t + v * v);
-}
-
-void
-swap(int *pa, int *pb)
-{
-	int t;
-	t = *pa;
-	*pa = *pb;
-	*pb = t;
-}
-
-void
-movep(int xg, int yg)
-{
-	int i;
-	char ch;
-	if ((xg == xnow) && (yg == ynow))
-		return;
-	/* if we need to go to left margin, just CR */
-	if (xg < xnow / 2) {
-		spew(CR);
-		xnow = 0;
-	}
-	i = (int)((xg - xnow) / HORZRES);
-	if (xnow < xg)
-		ch = RIGHT;
-	else ch = LEFT;
-	xnow += i * HORZRES;
-	i = abs(i);
-	while (i--)
-		spew(ch);
-	i = abs(xg - xnow);
-	inplot();
-	while (i--)
-		spew(ch);
-	outplot();
-	i = (int)((yg - ynow) / VERTRES);
-	if (ynow < yg)
-		ch = UP;
-	else ch = DOWN;
-	ynow += i * VERTRES;
-	i = abs(i);
-	while (i--)
-		spew(ch);
-	i = abs(yg - ynow);
-	inplot();
-	while (i--)
-		spew(ch);
-	outplot();
-	xnow = xg; ynow = yg;
-}
-
-int
-xsc(int xi)
-{
-	int xa;
-	xa = (int)((xi - obotx) * scalex + botx);
-	return (xa);
-}
-
-int
-ysc(int yi)
-{
-	int ya;
-	ya = (int)((yi - oboty) *scaley +boty);
-	return (ya);
-}
--- a/usr/src/lib/libplot/t450/i386/Makefile	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,34 +0,0 @@
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-#
-# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
-# Use is subject to license terms.
-#
-# ident	"%Z%%M%	%I%	%E% SMI"
-#
-
-include ../Makefile.com
-
-all: $(LIBS)
-
-.KEEP_STATE:
-
-install: all $(ROOTLIBS) $(ROOTLINKS) $(ROOTLINT)
--- a/usr/src/lib/libplot/t450/sparc/Makefile	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,34 +0,0 @@
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-#
-# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
-# Use is subject to license terms.
-#
-# ident	"%Z%%M%	%I%	%E% SMI"
-#
-
-include ../Makefile.com
-
-all: $(LIBS)
-
-.KEEP_STATE:
-
-install: all $(ROOTLIBS) $(ROOTLINKS) $(ROOTLINT)
--- a/usr/src/lib/libplot/t450/sparcv9/Makefile	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,37 +0,0 @@
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-#
-# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
-# Use is subject to license terms.
-#
-# ident	"%Z%%M%	%I%	%E% SMI"
-#
-
-include ../Makefile.com
-include ../../../Makefile.lib.64
-
-LIBS= $(DYNLIB) $(LINTLIB)
-
-all: $(LIBS)
-
-.KEEP_STATE:
-
-install: all $(ROOTLIBS64) $(ROOTLINKS64)
--- a/usr/src/lib/libplot/vt0/Makefile	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,51 +0,0 @@
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-#
-# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
-# Use is subject to license terms.
-#
-# ident	"%Z%%M%	%I%	%E% SMI"
-#
-
-include		../../Makefile.lib
-
-SUBDIRS =	$(MACH)
-$(BUILD64)SUBDIRS += $(MACH64)
-
-all :=		TARGET= all
-clean :=	TARGET= clean
-clobber :=	TARGET= clobber
-delete :=	TARGET= delete
-install :=	TARGET= install
-lint :=		TARGET= lint
-catalog :=	TARGET= catalog
-package :=	TARGET= package
-
-.KEEP_STATE:
-
-all clean clobber delete install lint catalog package: $(SUBDIRS)
-
-
-$(SUBDIRS):	FRC
-	 @cd $@; pwd; $(MAKE) $(TARGET)
-
-FRC:
-
--- a/usr/src/lib/libplot/vt0/Makefile.com	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,64 +0,0 @@
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-#
-# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
-# Use is subject to license terms.
-#
-# ident	"%Z%%M%	%I%	%E% SMI"
-#
-
-LIBRARY= libvt0.a
-VERS= .1
-
-OBJECTS=	\
-	arc.o	box.o	circle.o	close.o	\
-	dot.o	erase.o		label.o	frame.o	\
-	line.o	linmod.o	move.o	open.o	\
-	point.o	space.o	subr.o
-
-# include library definitions
-include ../../../Makefile.lib
-
-SRCDIR =	../common
-
-LIBS =		$(DYNLIB) $(LINTLIB)
-
-$(LINTLIB):= SRCS=../common/llib-lvt0
-
-LINTSRC=	$(LINTLIB:%.ln=%)
-
-CFLAGS +=	$(CCVERBOSE)
-LDLIBS += -lc
-
-.KEEP_STATE:
-
-lint: lintcheck
-
-# include library targets
-include ../../../Makefile.targ
-
-pics/%.o: ../common/%.c
-	$(COMPILE.c) -o $@ $<
-	$(POST_PROCESS_O)
-
-# install rule for lint library target
-$(ROOTLINTDIR)/%:	../common/%
-	$(INS.file)
--- a/usr/src/lib/libplot/vt0/amd64/Makefile	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,39 +0,0 @@
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-#
-# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
-# Use is subject to license terms.
-#
-# ident	"%Z%%M%	%I%	%E% SMI"
-#
-
-include ../Makefile.com
-include ../../../Makefile.lib.64
-
-LINTFLAGS64 +=	-erroff=E_ASSIGMENT_CAUSE_LOSS_PREC
-
-LIBS= $(DYNLIB) $(LINTLIB)
-
-all: $(LIBS)
-
-.KEEP_STATE:
-
-install: all $(ROOTLIBS64) $(ROOTLINKS64)
--- a/usr/src/lib/libplot/vt0/common/arc.c	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,44 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License").  You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
-/*	  All Rights Reserved  	*/
-
-
-/*
- * Copyright (c) 1997, by Sun Microsystems, Inc.
- * All rights reserved.
- */
-
-#pragma ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 1.2	*/
-/*LINTLIBRARY*/
-
-#include <unistd.h>
-#include "con.h"
-
-/*ARGSUSED*/
-void
-arc(short xi, short yi, short x0, short y0, short x1, short y1)
-{
-	char c = 6;
-	(void) write(vti, &c, 1);
-	(void) write(vti, &xi, 12);
-}
--- a/usr/src/lib/libplot/vt0/common/box.c	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,45 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License").  You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
-/*	  All Rights Reserved  	*/
-
-
-/*
- * Copyright (c) 1997, by Sun Microsystems, Inc.
- * All rights reserved.
- */
-
-#pragma ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 1.2	*/
-/*LINTLIBRARY*/
-
-#include <plot.h>
-
-void
-box(short x0, short y0, short x1, short y1)
-{
-	move(x0, y0);
-	cont(x0, y1);
-	cont(x1, y1);
-	cont(x1, y0);
-	cont(x0, y0);
-	move(x1, y1);
-}
--- a/usr/src/lib/libplot/vt0/common/circle.c	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,44 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License").  You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
-/*	  All Rights Reserved  	*/
-
-
-/*
- * Copyright (c) 1997, by Sun Microsystems, Inc.
- * All rights reserved.
- */
-
-#pragma ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 1.2	*/
-/*LINTLIBRARY*/
-
-#include <unistd.h>
-#include "con.h"
-
-/*ARGSUSED*/
-void
-circle(short x, short y, short r)
-{
-	char c = 5;
-	(void) write(vti, &c, 1);
-	(void) write(vti, &x, 6);
-}
--- a/usr/src/lib/libplot/vt0/common/close.c	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,47 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License").  You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
-/*	  All Rights Reserved  	*/
-
-
-/*
- * Copyright (c) 1997, by Sun Microsystems, Inc.
- * All rights reserved.
- */
-
-#pragma ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 1.2	*/
-/*LINTLIBRARY*/
-
-#include <unistd.h>
-#include "con.h"
-
-void
-closevt(void)
-{
-	(void) close(vti);
-}
-
-void
-closepl(void)
-{
-	(void) close(vti);
-}
--- a/usr/src/lib/libplot/vt0/common/con.h	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,35 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License").  You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/*
- * Copyright (c) 1997, by Sun Microsystems, Inc.
- * All rights reserved.
- */
-
-#pragma ident	"%Z%%M%	%I%	%E% SMI"
-
-#include <termio.h>
-
-extern int xsc(int);
-extern int ysc(int);
-extern float boty, botx, oboty, obotx, scalex, scaley;
-extern float deltx, delty;
-extern int xnow, ynow, vti;
--- a/usr/src/lib/libplot/vt0/common/dot.c	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,44 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License").  You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
-/*	  All Rights Reserved  	*/
-
-
-/*
- * Copyright (c) 1997, by Sun Microsystems, Inc.
- */
-
-#pragma ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 1.2	*/
-/*LINTLIBRARY*/
-
-#include <unistd.h>
-#include "con.h"
-
-/*ARGSUSED*/
-void
-dot(short xi, short yi, short dx, short n, int pat[])
-{
-	struct {char pad, c; short xi, yi, dx; } p;
-	p.c = 7;
-	(void) write(vti, &p.c, 7);
-	(void) write(vti, pat, n?n&0377:256);
-}
--- a/usr/src/lib/libplot/vt0/common/erase.c	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,42 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License").  You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
-/*	  All Rights Reserved  	*/
-
-
-/*
- * Copyright (c) 1997, by Sun Microsystems, Inc.
- */
-
-#pragma ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 1.2	*/
-/*LINTLIBRARY*/
-
-#include <unistd.h>
-#include "con.h"
-
-void
-erase(void)
-{
-	int i;
-	i = 0401;
-	(void) write(vti, &i, 2);
-}
--- a/usr/src/lib/libplot/vt0/common/frame.c	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,42 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License").  You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
-/*	  All Rights Reserved  	*/
-
-
-/*
- * Copyright (c) 1997, by Sun Microsystems, Inc.
- * All rights reserved.
- */
-
-#pragma ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 1.2	*/
-/*LINTLIBRARY*/
-
-#include <unistd.h>
-#include "con.h"
-
-void
-frame(int n)
-{
-	n = n&0377 | 02000;
-	(void) write(vti, &n, 2);
-}
--- a/usr/src/lib/libplot/vt0/common/label.c	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,47 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License").  You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
-/*	  All Rights Reserved  	*/
-
-
-/*
- * Copyright (c) 1997, by Sun Microsystems, Inc.
- * All rights reserved.
- */
-
-#pragma ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 1.2	*/
-/*LINTLIBRARY*/
-
-#include <unistd.h>
-#include "con.h"
-
-void
-label(char *s)
-{
-	int i, o;
-	o = 01401;
-
-	(void) write(vti, &o, 2);
-	for (i = 0; s[i++]; )
-		;
-	(void) write(vti, s, i);
-}
--- a/usr/src/lib/libplot/vt0/common/line.c	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,55 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License").  You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
-/*	  All Rights Reserved  	*/
-
-
-/*
- * Copyright (c) 1997, by Sun Microsystems, Inc.
- */
-
-#pragma ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 1.2	*/
-/*LINTLIBRARY*/
-
-#include <unistd.h>
-#include <plot.h>
-#include "con.h"
-
-int xnow, ynow;
-
-void
-line(short x0, short y0, short x1, short y1)
-{
-	struct {char x, c; short x0, y0, x1, y1; } p;
-	p.c = 3;
-	p.x0 = xsc(x0);
-	p.y0 = ysc(y0);
-	p.x1 = xnow = xsc(x1);
-	p.y1 = ynow = ysc(y1);
-	(void) write(vti, &p.c, 9);
-}
-
-void
-cont(short x0, short y0)
-{
-	line(xnow, ynow, xsc(x0), ysc(y0));
-}
--- a/usr/src/lib/libplot/vt0/common/linmod.c	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,38 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License").  You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
-/*	  All Rights Reserved  	*/
-
-
-/*
- * Copyright (c) 1997, by Sun Microsystems, Inc.
- * All rights reserved.
- */
-
-#pragma ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 1.2	*/
-/*LINTLIBRARY*/
-
-/*ARGSUSED*/
-void
-linemod(char *s)
-{
-}
--- a/usr/src/lib/libplot/vt0/common/llib-lvt0	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,73 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License").  You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/*
- * Copyright (c) 1997 by Sun Microsystems, Inc.
- * All rights reserved
- */
-
-#pragma ident	"%Z%%M%	%I%	%E% SMI"
-
-/*LINTLIBRARY*/
-/*PROTOLIB1*/
-
-#include <stdio.h>
-
-/*arc.c*/
-void arc(short, short, short, short, short, short);
-
-/*box.c*/
-void box(short, short, short, short);
-
-/*circle.c*/
-void circle(short, short, short);
-
-/*close.c*/
-void closelp(void);
-void closevt(void);
-
-/*cont.c*/
-void cont(short, short);
-
-/*erase.c*/
-void erase(void);
-
-/*label.c*/
-void label(char *);
-
-/*line.c*/
-void line(short, short);
-
-/*linmod.c*/
-void linemod(char *);
-
-/*move.c*/
-void move(short, short);
-
-/*open.c*/
-void openpt();
-void openvt();
-
-/*point.c*/
-void point(short, short);
-
-/*space.c*/
-void space(short, short, short, short);
--- a/usr/src/lib/libplot/vt0/common/mapfile-vers	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,80 +0,0 @@
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-#
-# Copyright (c) 2006, 2010, Oracle and/or its affiliates. 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
-
-SYMBOL_VERSION SUNW_1.1 {
-    global:
-	arc;
-	box;
-	circle;
-	closepl;
-	closevt;
-	cont;
-	dot;
-	erase;
-	frame;
-	label;
-	line;
-	linemod;
-	move;
-	openpl;
-	openvt;
-	point;
-	space;
-};
-
-SYMBOL_VERSION SUNWprivate_1.1 {
-    global:
-	botx;
-	boty;
-	deltx;
-	delty;
-	_lib_version;
-	obotx;
-	oboty;
-	scalex;
-	scaley;
-	vti;
-	xnow;
-	xsc;
-	ynow;
-	ysc;
-    local:
-	*;
-};
--- a/usr/src/lib/libplot/vt0/common/move.c	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,44 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License").  You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
-/*	  All Rights Reserved  	*/
-
-
-/*
- * Copyright (c) 1997, by Sun Microsystems, Inc.
- */
-
-#pragma ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 1.2	*/
-/*LINTLIBRARY*/
-
-#include <unistd.h>
-#include "con.h"
-
-void
-move(short xi, short yi)
-{
-	struct {char pad, c; short x, y; } p;
-	p.c = 9;
-	p.x = xnow = xsc(xi);
-	p.y = ynow = ysc(yi);
-	(void) write(vti, &p.c, 5);
-}
--- a/usr/src/lib/libplot/vt0/common/open.c	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,49 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License").  You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
-/*	  All Rights Reserved  	*/
-
-
-/*
- * Copyright (c) 1997, by Sun Microsystems, Inc.
- * All rights reserved.
- */
-
-#pragma ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 1.4	*/
-/*LINTLIBRARY*/
-
-#include <sys/types.h>
-#include <fcntl.h>
-
-int vti = -1;
-
-void
-openvt(void)
-{
-	vti = open("/dev/vt0", 1);
-}
-
-void
-openpl(void)
-{
-	vti = open("/dev/vt0", 1);
-}
--- a/usr/src/lib/libplot/vt0/common/point.c	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,45 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License").  You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
-/*	  All Rights Reserved  	*/
-
-
-/*
- * Copyright (c) 1997, by Sun Microsystems, Inc.
- * All rights reserved.
- */
-
-#pragma ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 1.2	*/
-/*LINTLIBRARY*/
-
-#include <unistd.h>
-#include "con.h"
-
-void
-point(short xi, short yi)
-{
-	struct {char pad, c; short x, y; } p;
-	p.c = 2;
-	p.x = xnow = xsc(xi);
-	p.y = ynow =  ysc(yi);
-	(void) write(vti, &p.c, 5);
-}
--- a/usr/src/lib/libplot/vt0/common/space.c	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,47 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License").  You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
-/*	  All Rights Reserved  	*/
-
-
-/*
- * Copyright (c) 1997, by Sun Microsystems, Inc.
- * All rights reserved.
- */
-
-#pragma ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 1.2	*/
-/*LINTLIBRARY*/
-
-#include "con.h"
-
-float deltx, delty;
-
-void
-space(short x0, short y0, short x1, short y1)
-{
-	botx = -2047.;
-	boty = -2047;
-	obotx = x0;
-	oboty = y0;
-	scalex = deltx / (x1 - x0);
-	scaley = delty / (y1 - y0);
-}
--- a/usr/src/lib/libplot/vt0/common/subr.c	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,52 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License").  You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
-/*	  All Rights Reserved  	*/
-
-
-
-/*
- * Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
- * Use is subject to license terms.
- */
-
-#pragma ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 1.2	*/
-/*LINTLIBRARY*/
-
-float obotx, botx, scalex;
-float oboty, boty, scaley;
-
-int
-xsc(int xi)
-{
-	int xa;
-	xa = (int)((xi - obotx) * scalex + botx);
-	return (xa);
-}
-
-int
-ysc(int yi)
-{
-	int ya;
-	ya = (int)((yi - oboty) * scaley + boty);
-	return (ya);
-}
--- a/usr/src/lib/libplot/vt0/i386/Makefile	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,34 +0,0 @@
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-#
-# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
-# Use is subject to license terms.
-#
-# ident	"%Z%%M%	%I%	%E% SMI"
-#
-
-include ../Makefile.com
-
-all: $(LIBS)
-
-.KEEP_STATE:
-
-install: all $(ROOTLIBS) $(ROOTLINKS) $(ROOTLINT)
--- a/usr/src/lib/libplot/vt0/sparc/Makefile	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,34 +0,0 @@
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-#
-# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
-# Use is subject to license terms.
-#
-# ident	"%Z%%M%	%I%	%E% SMI"
-#
-
-include ../Makefile.com
-
-all: $(LIBS)
-
-.KEEP_STATE:
-
-install: all $(ROOTLIBS) $(ROOTLINKS) $(ROOTLINT)
--- a/usr/src/lib/libplot/vt0/sparcv9/Makefile	Mon Oct 25 04:08:25 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,37 +0,0 @@
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-#
-# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
-# Use is subject to license terms.
-#
-# ident	"%Z%%M%	%I%	%E% SMI"
-#
-
-include ../Makefile.com
-include ../../../Makefile.lib.64
-
-LIBS= $(DYNLIB) $(LINTLIB)
-
-all: $(LIBS)
-
-.KEEP_STATE:
-
-install: all $(ROOTLIBS64) $(ROOTLINKS64)
--- a/usr/src/pkg/manifests/SUNWcs.mf	Mon Oct 25 04:08:25 2010 +0530
+++ b/usr/src/pkg/manifests/SUNWcs.mf	Fri Oct 29 09:19:27 2010 -0700
@@ -874,7 +874,6 @@
 file path=usr/bin/tic mode=0555
 file path=usr/bin/time mode=0555
 file path=usr/bin/tip mode=4511 owner=uucp
-file path=usr/bin/tplot mode=0555
 file path=usr/bin/tpmadm mode=0555
 file path=usr/bin/tput mode=0555
 file path=usr/bin/tr mode=0555
@@ -1281,13 +1280,8 @@
 file path=usr/lib/sysevent/modules/sysevent_reg_mod.so
 file path=usr/lib/sysevent/syseventconfd mode=0555
 file path=usr/lib/sysevent/syseventd mode=0555
-file path=usr/lib/t300 mode=0555
-file path=usr/lib/t300s mode=0555
-file path=usr/lib/t4014 mode=0555
-file path=usr/lib/t450 mode=0555
 file path=usr/lib/utmp_update mode=4555
 file path=usr/lib/utmpd mode=0555
-file path=usr/lib/vplot mode=0555
 file path=usr/lib/vtdaemon mode=0555
 file path=usr/lib/vtinfo mode=0555
 file path=usr/lib/vtxlock mode=0555
--- a/usr/src/pkg/manifests/developer-library-lint.mf	Mon Oct 25 04:08:25 2010 +0530
+++ b/usr/src/pkg/manifests/developer-library-lint.mf	Fri Oct 29 09:19:27 2010 -0700
@@ -191,10 +191,6 @@
 file path=usr/lib/$(ARCH64)/crti.o
 file path=usr/lib/$(ARCH64)/crtn.o
 $(i386_ONLY)file path=usr/lib/$(ARCH64)/gcrt1.o
-file path=usr/lib/$(ARCH64)/llib-l300.ln
-file path=usr/lib/$(ARCH64)/llib-l300s.ln
-file path=usr/lib/$(ARCH64)/llib-l4014.ln
-file path=usr/lib/$(ARCH64)/llib-l450.ln
 file path=usr/lib/$(ARCH64)/llib-ladutils.ln
 file path=usr/lib/$(ARCH64)/llib-lbsdmalloc.ln
 file path=usr/lib/$(ARCH64)/llib-lcfgadm.ln
@@ -219,7 +215,6 @@
 file path=usr/lib/$(ARCH64)/llib-lpanel.ln
 file path=usr/lib/$(ARCH64)/llib-lpasswdutil.ln
 file path=usr/lib/$(ARCH64)/llib-lpkcs11.ln
-file path=usr/lib/$(ARCH64)/llib-lplot.ln
 file path=usr/lib/$(ARCH64)/llib-lproject.ln
 file path=usr/lib/$(ARCH64)/llib-lreparse.ln
 file path=usr/lib/$(ARCH64)/llib-lsasl.ln
@@ -244,14 +239,6 @@
 file path=usr/lib/crti.o
 file path=usr/lib/crtn.o
 $(i386_ONLY)file path=usr/lib/gcrt1.o
-file path=usr/lib/llib-l300
-file path=usr/lib/llib-l300.ln
-file path=usr/lib/llib-l300s
-file path=usr/lib/llib-l300s.ln
-file path=usr/lib/llib-l4014
-file path=usr/lib/llib-l4014.ln
-file path=usr/lib/llib-l450
-file path=usr/lib/llib-l450.ln
 file path=usr/lib/llib-ladutils
 file path=usr/lib/llib-ladutils.ln
 file path=usr/lib/llib-lbsdmalloc
@@ -301,8 +288,6 @@
 file path=usr/lib/llib-lpasswdutil.ln
 file path=usr/lib/llib-lpkcs11
 file path=usr/lib/llib-lpkcs11.ln
-file path=usr/lib/llib-lplot
-file path=usr/lib/llib-lplot.ln
 file path=usr/lib/llib-lproject
 file path=usr/lib/llib-lproject.ln
 file path=usr/lib/llib-lreparse
--- a/usr/src/pkg/manifests/system-header.mf	Mon Oct 25 04:08:25 2010 +0530
+++ b/usr/src/pkg/manifests/system-header.mf	Fri Oct 29 09:19:27 2010 -0700
@@ -614,7 +614,6 @@
 file path=usr/include/pkglocs.h
 file path=usr/include/pkgstrct.h
 file path=usr/include/pkgtrans.h
-file path=usr/include/plot.h
 file path=usr/include/poll.h
 file path=usr/include/port.h
 file path=usr/include/priv.h
--- a/usr/src/pkg/manifests/system-library.mf	Mon Oct 25 04:08:25 2010 +0530
+++ b/usr/src/pkg/manifests/system-library.mf	Fri Oct 29 09:19:27 2010 -0700
@@ -230,10 +230,6 @@
 file path=lib/nss_nis.so.1
 file path=lib/nss_user.so.1
 file path=usr/lib/$(ARCH64)/0@0.so.1
-file path=usr/lib/$(ARCH64)/lib300.so.1
-file path=usr/lib/$(ARCH64)/lib300s.so.1
-file path=usr/lib/$(ARCH64)/lib4014.so.1
-file path=usr/lib/$(ARCH64)/lib450.so.1
 file path=usr/lib/$(ARCH64)/libadutils.so.1
 file path=usr/lib/$(ARCH64)/libast.so.1
 file path=usr/lib/$(ARCH64)/libbsdmalloc.so.1
@@ -266,7 +262,6 @@
 file path=usr/lib/$(ARCH64)/libnls.so.1
 file path=usr/lib/$(ARCH64)/libpanel.so.1
 file path=usr/lib/$(ARCH64)/libpkcs11.so.1
-file path=usr/lib/$(ARCH64)/libplot.so.1
 file path=usr/lib/$(ARCH64)/libproject.so.1
 file path=usr/lib/$(ARCH64)/libraidcfg.so.1
 file path=usr/lib/$(ARCH64)/libreparse.so.1
@@ -302,10 +297,6 @@
 file path=usr/lib/cfgadm/usb.so.1
 file path=usr/lib/extendedFILE.so.1
 file path=usr/lib/lib.b mode=0444
-file path=usr/lib/lib300.so.1
-file path=usr/lib/lib300s.so.1
-file path=usr/lib/lib4014.so.1
-file path=usr/lib/lib450.so.1
 file path=usr/lib/libadutils.so.1
 file path=usr/lib/libast.so.1
 file path=usr/lib/libbsdmalloc.so.1
@@ -343,7 +334,6 @@
 file path=usr/lib/libnls.so.1
 file path=usr/lib/libpanel.so.1
 file path=usr/lib/libpkcs11.so.1
-file path=usr/lib/libplot.so.1
 file path=usr/lib/libproject.so.1
 file path=usr/lib/libraidcfg.so.1
 file path=usr/lib/libreparse.so.1
@@ -663,10 +653,6 @@
 link path=usr/ccs/lib/libtermcap.so target=../../../lib/libcurses.so.1
 link path=usr/ccs/lib/libtermlib.so target=../../../lib/libcurses.so.1
 link path=usr/ccs/lib/liby.so target=../../lib/liby.so.1
-link path=usr/lib/$(ARCH64)/lib300.so target=./lib300.so.1
-link path=usr/lib/$(ARCH64)/lib300s.so target=./lib300s.so.1
-link path=usr/lib/$(ARCH64)/lib4014.so target=./lib4014.so.1
-link path=usr/lib/$(ARCH64)/lib450.so target=./lib450.so.1
 link path=usr/lib/$(ARCH64)/libadm.so \
     target=../../../lib/$(ARCH64)/libadm.so.1
 link path=usr/lib/$(ARCH64)/libadm.so.1 \
@@ -804,7 +790,6 @@
     target=../../../lib/$(ARCH64)/libpam.so.1
 link path=usr/lib/$(ARCH64)/libpanel.so target=libpanel.so.1
 link path=usr/lib/$(ARCH64)/libpkcs11.so target=libpkcs11.so.1
-link path=usr/lib/$(ARCH64)/libplot.so target=./libplot.so.1
 link path=usr/lib/$(ARCH64)/libposix4.so \
     target=../../../lib/$(ARCH64)/librt.so.1
 link path=usr/lib/$(ARCH64)/libposix4.so.1 \
@@ -945,10 +930,6 @@
 link path=usr/lib/cfgadm/scsi.so target=./scsi.so.1
 link path=usr/lib/cfgadm/shp.so target=./shp.so.1
 link path=usr/lib/cfgadm/usb.so target=./usb.so.1
-link path=usr/lib/lib300.so target=./lib300.so.1
-link path=usr/lib/lib300s.so target=./lib300s.so.1
-link path=usr/lib/lib4014.so target=./lib4014.so.1
-link path=usr/lib/lib450.so target=./lib450.so.1
 link path=usr/lib/libadm.so target=../../lib/libadm.so.1
 link path=usr/lib/libadm.so.1 target=../../lib/libadm.so.1
 link path=usr/lib/libadutils.so target=./libadutils.so.1
@@ -1039,7 +1020,6 @@
 link path=usr/lib/libpam.so.1 target=../../lib/libpam.so.1
 link path=usr/lib/libpanel.so target=./libpanel.so.1
 link path=usr/lib/libpkcs11.so target=./libpkcs11.so.1
-link path=usr/lib/libplot.so target=./libplot.so.1
 link path=usr/lib/libposix4.so target=../../lib/librt.so.1
 link path=usr/lib/libposix4.so.1 target=../../lib/librt.so.1
 link path=usr/lib/libproc.so target=../../lib/libproc.so.1