diff options
author | stevel@tonic-gate <none@none> | 2005-06-14 00:00:00 -0700 |
---|---|---|
committer | stevel@tonic-gate <none@none> | 2005-06-14 00:00:00 -0700 |
commit | 7c478bd95313f5f23a4c958a745db2134aa03244 (patch) | |
tree | c871e58545497667cbb4b0a4f2daf204743e1fe7 /usr/src/lib/libplot/t300 | |
download | illumos-gate-7c478bd95313f5f23a4c958a745db2134aa03244.tar.gz |
OpenSolaris Launch
Diffstat (limited to 'usr/src/lib/libplot/t300')
30 files changed, 1844 insertions, 0 deletions
diff --git a/usr/src/lib/libplot/t300/Makefile b/usr/src/lib/libplot/t300/Makefile new file mode 100644 index 0000000000..52f7d504b3 --- /dev/null +++ b/usr/src/lib/libplot/t300/Makefile @@ -0,0 +1,50 @@ +# +# 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) 1989,1998-1999 by Sun Microsystems, Inc. +# All rights reserved. +# +#pragma ident "%Z%%M% %I% %E% SMI" +# +# lib/libplot/t300/Makefile +# + +include ../../Makefile.lib + +SUBDIRS= spec .WAIT $(MACH) $(BUILD64) $(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) + + +$(MACH) $(MACH64) spec: FRC + @cd $@; pwd; $(MAKE) $(TARGET) + +FRC: diff --git a/usr/src/lib/libplot/t300/Makefile.com b/usr/src/lib/libplot/t300/Makefile.com new file mode 100644 index 0000000000..2d28d341bf --- /dev/null +++ b/usr/src/lib/libplot/t300/Makefile.com @@ -0,0 +1,75 @@ +# +# 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 2004 Sun Microsystems, Inc. All rights reserved. +# Use is subject to license terms. +# +# ident "%Z%%M% %I% %E% SMI" +# +# lib/libplot/t300/Makefile.com +# + +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 + +MAPFILE= $(MAPDIR)/mapfile +MAPOPTS= $(MAPFILE:%=-M %) +SRCS= $(OBJECTS:%.o=../common/%.c) + +LIBS = $(DYNLIB) $(LINTLIB) + +$(LINTLIB):= SRCS=../common/llib-l300 + +LINTSRC= $(LINTLIB:%.ln=%) + +CFLAGS += $(CCVERBOSE) +DYNFLAGS += $(MAPOPTS) +LDLIBS += -lc -lm + +.KEEP_STATE: + +lint: lintcheck + +$(DYNLIB): $(MAPFILE) + +$(MAPFILE): + @cd $(MAPDIR); $(MAKE) mapfile + +# 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) diff --git a/usr/src/lib/libplot/t300/amd64/Makefile b/usr/src/lib/libplot/t300/amd64/Makefile new file mode 100644 index 0000000000..7ca1ce38bf --- /dev/null +++ b/usr/src/lib/libplot/t300/amd64/Makefile @@ -0,0 +1,42 @@ +# +# 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 2004 Sun Microsystems, Inc. All rights reserved. +# Use is subject to license terms. +# +# ident "%Z%%M% %I% %E% SMI" +# + +MAPDIR= ../spec/amd64 + +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) diff --git a/usr/src/lib/libplot/t300/common/arc.c b/usr/src/lib/libplot/t300/common/arc.c new file mode 100644 index 0000000000..4b5eda6b3e --- /dev/null +++ b/usr/src/lib/libplot/t300/common/arc.c @@ -0,0 +1,189 @@ +/* + * 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); +} diff --git a/usr/src/lib/libplot/t300/common/box.c b/usr/src/lib/libplot/t300/common/box.c new file mode 100644 index 0000000000..949f3fcabf --- /dev/null +++ b/usr/src/lib/libplot/t300/common/box.c @@ -0,0 +1,45 @@ +/* + * 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); +} diff --git a/usr/src/lib/libplot/t300/common/circle.c b/usr/src/lib/libplot/t300/common/circle.c new file mode 100644 index 0000000000..b0ec60da16 --- /dev/null +++ b/usr/src/lib/libplot/t300/common/circle.c @@ -0,0 +1,35 @@ +/* + * 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); +} diff --git a/usr/src/lib/libplot/t300/common/close.c b/usr/src/lib/libplot/t300/common/close.c new file mode 100644 index 0000000000..7b54157ca2 --- /dev/null +++ b/usr/src/lib/libplot/t300/common/close.c @@ -0,0 +1,48 @@ +/* + * 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(); +} diff --git a/usr/src/lib/libplot/t300/common/con.h b/usr/src/lib/libplot/t300/common/con.h new file mode 100644 index 0000000000..c7140188fe --- /dev/null +++ b/usr/src/lib/libplot/t300/common/con.h @@ -0,0 +1,69 @@ +/* + * 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; diff --git a/usr/src/lib/libplot/t300/common/dot.c b/usr/src/lib/libplot/t300/common/dot.c new file mode 100644 index 0000000000..fbca617050 --- /dev/null +++ b/usr/src/lib/libplot/t300/common/dot.c @@ -0,0 +1,37 @@ +/* + * 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) +{ +} diff --git a/usr/src/lib/libplot/t300/common/erase.c b/usr/src/lib/libplot/t300/common/erase.c new file mode 100644 index 0000000000..9f2043ede9 --- /dev/null +++ b/usr/src/lib/libplot/t300/common/erase.c @@ -0,0 +1,42 @@ +/* + * 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); +} diff --git a/usr/src/lib/libplot/t300/common/label.c b/usr/src/lib/libplot/t300/common/label.c new file mode 100644 index 0000000000..e113cebbcf --- /dev/null +++ b/usr/src/lib/libplot/t300/common/label.c @@ -0,0 +1,44 @@ +/* + * 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); + } +} diff --git a/usr/src/lib/libplot/t300/common/line.c b/usr/src/lib/libplot/t300/common/line.c new file mode 100644 index 0000000000..788fdb6ce6 --- /dev/null +++ b/usr/src/lib/libplot/t300/common/line.c @@ -0,0 +1,94 @@ +/* + * 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))); +} diff --git a/usr/src/lib/libplot/t300/common/linmod.c b/usr/src/lib/libplot/t300/common/linmod.c new file mode 100644 index 0000000000..86394deb4e --- /dev/null +++ b/usr/src/lib/libplot/t300/common/linmod.c @@ -0,0 +1,37 @@ +/* + * 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) +{ +} diff --git a/usr/src/lib/libplot/t300/common/llib-l300 b/usr/src/lib/libplot/t300/common/llib-l300 new file mode 100644 index 0000000000..204d205bf9 --- /dev/null +++ b/usr/src/lib/libplot/t300/common/llib-l300 @@ -0,0 +1,73 @@ +/* + * 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); diff --git a/usr/src/lib/libplot/t300/common/move.c b/usr/src/lib/libplot/t300/common/move.c new file mode 100644 index 0000000000..4b7360ba91 --- /dev/null +++ b/usr/src/lib/libplot/t300/common/move.c @@ -0,0 +1,40 @@ +/* + * 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))); +} diff --git a/usr/src/lib/libplot/t300/common/open.c b/usr/src/lib/libplot/t300/common/open.c new file mode 100644 index 0000000000..9e6b427fc8 --- /dev/null +++ b/usr/src/lib/libplot/t300/common/open.c @@ -0,0 +1,68 @@ +/* + * 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(); +} diff --git a/usr/src/lib/libplot/t300/common/point.c b/usr/src/lib/libplot/t300/common/point.c new file mode 100644 index 0000000000..2bc782c8cf --- /dev/null +++ b/usr/src/lib/libplot/t300/common/point.c @@ -0,0 +1,40 @@ +/* + * 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("."); +} diff --git a/usr/src/lib/libplot/t300/common/space.c b/usr/src/lib/libplot/t300/common/space.c new file mode 100644 index 0000000000..8180575cf5 --- /dev/null +++ b/usr/src/lib/libplot/t300/common/space.c @@ -0,0 +1,47 @@ +/* + * 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); +} diff --git a/usr/src/lib/libplot/t300/common/subr.c b/usr/src/lib/libplot/t300/common/subr.c new file mode 100644 index 0000000000..d50c1c6905 --- /dev/null +++ b/usr/src/lib/libplot/t300/common/subr.c @@ -0,0 +1,174 @@ +/* + * 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); +} diff --git a/usr/src/lib/libplot/t300/i386/Makefile b/usr/src/lib/libplot/t300/i386/Makefile new file mode 100644 index 0000000000..be78bab600 --- /dev/null +++ b/usr/src/lib/libplot/t300/i386/Makefile @@ -0,0 +1,38 @@ +# +# 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-1999 by Sun Microsystems, Inc. +# All rights reserved. +# +#pragma ident "%Z%%M% %I% %E% SMI" +# +# lib/libplot/t300/i386/Makefile + +MAPDIR= ../spec/i386 + +include ../Makefile.com + +all: $(LIBS) $(LINTLIB) + +.KEEP_STATE: + +install: all $(ROOTLIBS) $(ROOTLINKS) $(ROOTLINT) diff --git a/usr/src/lib/libplot/t300/sparc/Makefile b/usr/src/lib/libplot/t300/sparc/Makefile new file mode 100644 index 0000000000..eb90472fed --- /dev/null +++ b/usr/src/lib/libplot/t300/sparc/Makefile @@ -0,0 +1,38 @@ +# +# 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-1999 by Sun Microsystems, Inc. +# All rights reserved. +# +#pragma ident "%Z%%M% %I% %E% SMI" +# +# lib/libplot/t300/sparc/Makefile + +MAPDIR= ../spec/sparc + +include ../Makefile.com + +all: $(LIBS) + +.KEEP_STATE: + +install: all $(ROOTLIBS) $(ROOTLINKS) $(ROOTLINT) diff --git a/usr/src/lib/libplot/t300/sparcv9/Makefile b/usr/src/lib/libplot/t300/sparcv9/Makefile new file mode 100644 index 0000000000..87ca2d9111 --- /dev/null +++ b/usr/src/lib/libplot/t300/sparcv9/Makefile @@ -0,0 +1,41 @@ +# +# 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-1999 by Sun Microsystems, Inc. +# All rights reserved. +# +#pragma ident "%Z%%M% %I% %E% SMI" +# +# lib/libplot/t300/sparcv9/Makefile + +MAPDIR= ../spec/sparcv9 + +include ../Makefile.com +include ../../../Makefile.lib.64 + +LIBS= $(DYNLIB) $(LINTLIB) + +.KEEP_STATE: + +all: $(LIBS) + +install: all $(ROOTLIBS64) $(ROOTLINKS64) diff --git a/usr/src/lib/libplot/t300/spec/Makefile b/usr/src/lib/libplot/t300/spec/Makefile new file mode 100644 index 0000000000..93fe6012d7 --- /dev/null +++ b/usr/src/lib/libplot/t300/spec/Makefile @@ -0,0 +1,30 @@ +# +# 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-1999 by Sun Microsystems, Inc. +# All rights reserved. +# +#pragma ident "%Z%%M% %I% %E% SMI" +# +# lib/libplot/t300/spec/Makefile + +include $(SRC)/lib/Makefile.spec.arch diff --git a/usr/src/lib/libplot/t300/spec/Makefile.targ b/usr/src/lib/libplot/t300/spec/Makefile.targ new file mode 100644 index 0000000000..0eefa4fcc5 --- /dev/null +++ b/usr/src/lib/libplot/t300/spec/Makefile.targ @@ -0,0 +1,34 @@ +# +# 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-1999 by Sun Microsystems, Inc. +# All rights reserved. +#pragma ident "%Z%%M% %I% %E% SMI" +# +# lib/libplot/t300/spec/Makefile.targ + +LIBRARY = lib300.a +VERS = .1 + +OBJECTS = t300.o + +SPECCPP = diff --git a/usr/src/lib/libplot/t300/spec/amd64/Makefile b/usr/src/lib/libplot/t300/spec/amd64/Makefile new file mode 100644 index 0000000000..2a38c1cba9 --- /dev/null +++ b/usr/src/lib/libplot/t300/spec/amd64/Makefile @@ -0,0 +1,42 @@ +# +# 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 2004 Sun Microsystems, Inc. All rights reserved. +# Use is subject to license terms. +# +# ident "%Z%%M% %I% %E% SMI" +# + +include ../Makefile.targ + +# Add arch specific objects here +OBJECTS += + +include $(SRC)/lib/Makefile.lib +include $(SRC)/lib/Makefile.lib.64 + +# Uncomment the following if the linker complains +#amd64_C_PICFLAGS = -K PIC + +include $(SRC)/lib/Makefile.spec + +install: $(ROOTABILIB64) diff --git a/usr/src/lib/libplot/t300/spec/i386/Makefile b/usr/src/lib/libplot/t300/spec/i386/Makefile new file mode 100644 index 0000000000..34140d9a8f --- /dev/null +++ b/usr/src/lib/libplot/t300/spec/i386/Makefile @@ -0,0 +1,42 @@ +# +# 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-1999 by Sun Microsystems, Inc. +# All rights reserved. +# +#pragma ident "%Z%%M% %I% %E% SMI" +# +# lib/libplot/t300/spec/i386/Makefile + +include ../Makefile.targ + +# Add arch specific objects here +OBJECTS += + +include $(SRC)/lib/Makefile.lib + +# Uncomment the following if the linker complains +#i386_C_PICFLAGS = -K PIC + +include $(SRC)/lib/Makefile.spec + +install: $(ROOTABILIB) diff --git a/usr/src/lib/libplot/t300/spec/sparc/Makefile b/usr/src/lib/libplot/t300/spec/sparc/Makefile new file mode 100644 index 0000000000..98ea9b929d --- /dev/null +++ b/usr/src/lib/libplot/t300/spec/sparc/Makefile @@ -0,0 +1,44 @@ +# +# 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-1999 by Sun Microsystems, Inc. +# All rights reserved. +# +#pragma ident "%Z%%M% %I% %E% SMI" +# +# lib/libplot/t300/spec/sparc/Makefile + +.KEEP_STATE: + +include ../Makefile.targ + +# Add arch specific objects here +OBJECTS += + +include $(SRC)/lib/Makefile.lib + +# Uncomment the following if the linker complains +#sparc_C_PICFLAGS = -K PIC + +include $(SRC)/lib/Makefile.spec + +install: $(ROOTABILIB) diff --git a/usr/src/lib/libplot/t300/spec/sparcv9/Makefile b/usr/src/lib/libplot/t300/spec/sparcv9/Makefile new file mode 100644 index 0000000000..e703b48efe --- /dev/null +++ b/usr/src/lib/libplot/t300/spec/sparcv9/Makefile @@ -0,0 +1,43 @@ +# +# 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-1999 by Sun Microsystems, Inc. +# All rights reserved. +# +#pragma ident "%Z%%M% %I% %E% SMI" +# +# lib/libplot/t300/spec/sparcv9/Makefile + +include ../Makefile.targ + +# Add arch specific objects here +OBJECTS += + +include $(SRC)/lib/Makefile.lib +include $(SRC)/lib/Makefile.lib.64 + +# Uncomment the following if the linker complains +#sparcv9_C_PICFLAGS = -K PIC + +include $(SRC)/lib/Makefile.spec + +install: $(ROOTABILIB64) diff --git a/usr/src/lib/libplot/t300/spec/t300.spec b/usr/src/lib/libplot/t300/spec/t300.spec new file mode 100644 index 0000000000..a76fb11a55 --- /dev/null +++ b/usr/src/lib/libplot/t300/spec/t300.spec @@ -0,0 +1,200 @@ +# +# Copyright 2005 Sun Microsystems, Inc. All rights reserved. +# Use is subject to license terms. +# +# 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 +# +#pragma ident "%Z%%M% %I% %E% SMI" +# +# lib/libplot/t300/spec/t300.spec + +function arc extends libplot/plot/spec/plot.spec +version SUNW_1.1 +end + +function box extends libplot/plot/spec/plot.spec +version SUNW_1.1 +end + +function circle extends libplot/plot/spec/plot.spec +version SUNW_1.1 +end + +function closepl extends libplot/plot/spec/plot.spec +version SUNW_1.1 +end + +function closevt extends libplot/plot/spec/plot.spec +version SUNW_1.1 +end + +function cont extends libplot/plot/spec/plot.spec +version SUNW_1.1 +end + +function erase extends libplot/plot/spec/plot.spec +version SUNW_1.1 +end + +function label extends libplot/plot/spec/plot.spec +version SUNW_1.1 +end + +function line extends libplot/plot/spec/plot.spec +version SUNW_1.1 +end + +function linemod extends libplot/plot/spec/plot.spec +version SUNW_1.1 +end + +function move extends libplot/plot/spec/plot.spec +version SUNW_1.1 +end + +function openpl extends libplot/plot/spec/plot.spec +version SUNW_1.1 +end + +function openvt extends libplot/plot/spec/plot.spec +version SUNW_1.1 +end + +function point extends libplot/plot/spec/plot.spec +version SUNW_1.1 +end + +function space extends libplot/plot/spec/plot.spec +version SUNW_1.1 +end + +function ITTY +version SUNWprivate_1.1 +end + +function PTTY +version SUNWprivate_1.1 +end + +function OUTF +version SUNWprivate_1.1 +end + +function inplot +version SUNWprivate_1.1 +end + +function yconv +version SUNWprivate_1.1 +end + +function xconv +version SUNWprivate_1.1 +end + +function tobotleft +version SUNWprivate_1.1 +end + +function reset +version SUNWprivate_1.1 +end + +function xsc +version SUNWprivate_1.1 +end + +function dist2 +version SUNWprivate_1.1 +end + +function obotx +version SUNWprivate_1.1 +end + +function oboty +version SUNWprivate_1.1 +end + +function ysc +version SUNWprivate_1.1 +end + +function swap +version SUNWprivate_1.1 +end + +function scalex +version SUNWprivate_1.1 +end + +function scaley +version SUNWprivate_1.1 +end + +function outplot +version SUNWprivate_1.1 +end + +function botx +version SUNWprivate_1.1 +end + +function boty +version SUNWprivate_1.1 +end + +function movep +version SUNWprivate_1.1 +end + +function spew +version SUNWprivate_1.1 +end + +function yscale +version SUNWprivate_1.1 +end + +function ynow +version SUNWprivate_1.1 +end + +function xnow +version SUNWprivate_1.1 +end + +function xoffset +version SUNWprivate_1.1 +end + +function xscale +version SUNWprivate_1.1 +end + +function dot +version SUNWprivate_1.1 +end + +function _lib_version +version SUNWprivate_1.1 +end + diff --git a/usr/src/lib/libplot/t300/spec/versions b/usr/src/lib/libplot/t300/spec/versions new file mode 100644 index 0000000000..38a2cfc77a --- /dev/null +++ b/usr/src/lib/libplot/t300/spec/versions @@ -0,0 +1,43 @@ +# +# Copyright 2005 Sun Microsystems, Inc. All rights reserved. +# Use is subject to license terms. +# +# 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" +# + +sparc { + SUNW_1.1; + SUNWprivate_1.1; +} +sparcv9 { + SUNW_1.1; + SUNWprivate_1.1; +} +i386 { + SUNW_1.1; + SUNWprivate_1.1; +} +amd64 { + SUNW_1.1; + SUNWprivate_1.1; +} |