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/plot/common | |
download | illumos-gate-7c478bd95313f5f23a4c958a745db2134aa03244.tar.gz |
OpenSolaris Launch
Diffstat (limited to 'usr/src/lib/libplot/plot/common')
-rw-r--r-- | usr/src/lib/libplot/plot/common/arc.c | 47 | ||||
-rw-r--r-- | usr/src/lib/libplot/plot/common/box.c | 45 | ||||
-rw-r--r-- | usr/src/lib/libplot/plot/common/circle.c | 44 | ||||
-rw-r--r-- | usr/src/lib/libplot/plot/common/close.c | 46 | ||||
-rw-r--r-- | usr/src/lib/libplot/plot/common/con.h | 31 | ||||
-rw-r--r-- | usr/src/lib/libplot/plot/common/cont.c | 43 | ||||
-rw-r--r-- | usr/src/lib/libplot/plot/common/dot.c | 48 | ||||
-rw-r--r-- | usr/src/lib/libplot/plot/common/erase.c | 40 | ||||
-rw-r--r-- | usr/src/lib/libplot/plot/common/label.c | 44 | ||||
-rw-r--r-- | usr/src/lib/libplot/plot/common/line.c | 45 | ||||
-rw-r--r-- | usr/src/lib/libplot/plot/common/linmod.c | 44 | ||||
-rw-r--r-- | usr/src/lib/libplot/plot/common/llib-lplot | 48 | ||||
-rw-r--r-- | usr/src/lib/libplot/plot/common/move.c | 43 | ||||
-rw-r--r-- | usr/src/lib/libplot/plot/common/open.c | 42 | ||||
-rw-r--r-- | usr/src/lib/libplot/plot/common/point.c | 43 | ||||
-rw-r--r-- | usr/src/lib/libplot/plot/common/putsi.c | 42 | ||||
-rw-r--r-- | usr/src/lib/libplot/plot/common/space.c | 45 |
17 files changed, 740 insertions, 0 deletions
diff --git a/usr/src/lib/libplot/plot/common/arc.c b/usr/src/lib/libplot/plot/common/arc.c new file mode 100644 index 0000000000..6ba8406e13 --- /dev/null +++ b/usr/src/lib/libplot/plot/common/arc.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 <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); +} diff --git a/usr/src/lib/libplot/plot/common/box.c b/usr/src/lib/libplot/plot/common/box.c new file mode 100644 index 0000000000..949f3fcabf --- /dev/null +++ b/usr/src/lib/libplot/plot/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/plot/common/circle.c b/usr/src/lib/libplot/plot/common/circle.c new file mode 100644 index 0000000000..99bd5a23a7 --- /dev/null +++ b/usr/src/lib/libplot/plot/common/circle.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 <stdio.h> +#include "con.h" + +void +circle(short x, short y, short r) +{ + (void) putc('c', stdout); + putsi(x); + putsi(y); + putsi(r); +} diff --git a/usr/src/lib/libplot/plot/common/close.c b/usr/src/lib/libplot/plot/common/close.c new file mode 100644 index 0000000000..ef81bf9633 --- /dev/null +++ b/usr/src/lib/libplot/plot/common/close.c @@ -0,0 +1,46 @@ +/* + * 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); +} diff --git a/usr/src/lib/libplot/plot/common/con.h b/usr/src/lib/libplot/plot/common/con.h new file mode 100644 index 0000000000..d4f1c49b54 --- /dev/null +++ b/usr/src/lib/libplot/plot/common/con.h @@ -0,0 +1,31 @@ +/* + * 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); diff --git a/usr/src/lib/libplot/plot/common/cont.c b/usr/src/lib/libplot/plot/common/cont.c new file mode 100644 index 0000000000..f4e739ea18 --- /dev/null +++ b/usr/src/lib/libplot/plot/common/cont.c @@ -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) 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); +} diff --git a/usr/src/lib/libplot/plot/common/dot.c b/usr/src/lib/libplot/plot/common/dot.c new file mode 100644 index 0000000000..d08965561d --- /dev/null +++ b/usr/src/lib/libplot/plot/common/dot.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 +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]); +} diff --git a/usr/src/lib/libplot/plot/common/erase.c b/usr/src/lib/libplot/plot/common/erase.c new file mode 100644 index 0000000000..41d051ec3c --- /dev/null +++ b/usr/src/lib/libplot/plot/common/erase.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 <stdio.h> + +void +erase(void) +{ + (void) putc('e', stdout); +} diff --git a/usr/src/lib/libplot/plot/common/label.c b/usr/src/lib/libplot/plot/common/label.c new file mode 100644 index 0000000000..2577bf31ac --- /dev/null +++ b/usr/src/lib/libplot/plot/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 <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); +} diff --git a/usr/src/lib/libplot/plot/common/line.c b/usr/src/lib/libplot/plot/common/line.c new file mode 100644 index 0000000000..ec95643c60 --- /dev/null +++ b/usr/src/lib/libplot/plot/common/line.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 <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); +} diff --git a/usr/src/lib/libplot/plot/common/linmod.c b/usr/src/lib/libplot/plot/common/linmod.c new file mode 100644 index 0000000000..84686cf53b --- /dev/null +++ b/usr/src/lib/libplot/plot/common/linmod.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 <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); +} diff --git a/usr/src/lib/libplot/plot/common/llib-lplot b/usr/src/lib/libplot/plot/common/llib-lplot new file mode 100644 index 0000000000..ddd0ba71ef --- /dev/null +++ b/usr/src/lib/libplot/plot/common/llib-lplot @@ -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) 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); diff --git a/usr/src/lib/libplot/plot/common/move.c b/usr/src/lib/libplot/plot/common/move.c new file mode 100644 index 0000000000..9142744155 --- /dev/null +++ b/usr/src/lib/libplot/plot/common/move.c @@ -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) 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); +} diff --git a/usr/src/lib/libplot/plot/common/open.c b/usr/src/lib/libplot/plot/common/open.c new file mode 100644 index 0000000000..4598bc730e --- /dev/null +++ b/usr/src/lib/libplot/plot/common/open.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*/ + +void +openvt(void) +{ +} + +void +openpl(void) +{ +} diff --git a/usr/src/lib/libplot/plot/common/point.c b/usr/src/lib/libplot/plot/common/point.c new file mode 100644 index 0000000000..70d1d0284d --- /dev/null +++ b/usr/src/lib/libplot/plot/common/point.c @@ -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) 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); +} diff --git a/usr/src/lib/libplot/plot/common/putsi.c b/usr/src/lib/libplot/plot/common/putsi.c new file mode 100644 index 0000000000..a1f5167036 --- /dev/null +++ b/usr/src/lib/libplot/plot/common/putsi.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 <stdio.h> +#include "con.h" + +void +putsi(short a) +{ + (void) putc((char)a, stdout); + (void) putc((char)(a>>8), stdout); +} diff --git a/usr/src/lib/libplot/plot/common/space.c b/usr/src/lib/libplot/plot/common/space.c new file mode 100644 index 0000000000..457b60d699 --- /dev/null +++ b/usr/src/lib/libplot/plot/common/space.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 <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); +} |