add Berkeley specific header
[unix-history] / usr / src / old / vfilters / vcat / vcat.c
index 64b1ab4..365b75f 100644 (file)
@@ -1,12 +1,24 @@
 /*
  * Copyright (c) 1983 Regents of the University of California.
 /*
  * Copyright (c) 1983 Regents of the University of California.
- * All rights reserved.  The Berkeley software License Agreement
- * specifies the terms and conditions for redistribution.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms are permitted
+ * provided that this notice is preserved and that due credit is given
+ * to the University of California at Berkeley. The name of the University
+ * may not be used to endorse or promote products derived from this
+ * software without specific prior written permission. This software
+ * is provided ``as is'' without express or implied warranty.
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char sccsid[] = "@(#)vcat.c     5.1 (Berkeley) %G%";
-#endif not lint
+char copyright[] =
+"@(#) Copyright (c) 1983 Regents of the University of California.\n\
+ All rights reserved.\n";
+#endif /* not lint */
+
+#ifndef lint
+static char sccsid[] = "@(#)vcat.c     5.3 (Berkeley) %G%";
+#endif /* not lint */
 
 /*
  * Cat Simulator for Versatec and Varian
 
 /*
  * Cat Simulator for Versatec and Varian
@@ -791,7 +803,7 @@ slop_lines(nlines)
        if (rlines < nlines) {
                if (write(vc, buf0p, BYTES_PER_LINE * rlines) < 0)
                        exit(1);
        if (rlines < nlines) {
                if (write(vc, buf0p, BYTES_PER_LINE * rlines) < 0)
                        exit(1);
-               clear(buf0p, rlines * BYTES_PER_LINE);
+               bzero(buf0p, rlines * BYTES_PER_LINE);
                buf0p = buffer;
                nlines -= rlines;
                xpos -= rlines;
                buf0p = buffer;
                nlines -= rlines;
                xpos -= rlines;
@@ -799,7 +811,7 @@ slop_lines(nlines)
        }
        if (write(vc, buf0p, BYTES_PER_LINE * nlines) < 0)
                exit(1);
        }
        if (write(vc, buf0p, BYTES_PER_LINE * nlines) < 0)
                exit(1);
-       clear(buf0p, BYTES_PER_LINE * nlines);
+       bzero(buf0p, BYTES_PER_LINE * nlines);
        buf0p += BYTES_PER_LINE * nlines;
        if (buf0p >= &buffer[BUFFER_SIZE])
                buf0p -= BUFFER_SIZE;
        buf0p += BYTES_PER_LINE * nlines;
        if (buf0p >= &buffer[BUFFER_SIZE])
                buf0p -= BUFFER_SIZE;
@@ -808,14 +820,6 @@ slop_lines(nlines)
        /* ioctl(vc, VSETSTATE, pltmode);  WHY? */
 }
 
        /* ioctl(vc, VSETSTATE, pltmode);  WHY? */
 }
 
-/*ARGSUSED*/
-clear(lp, nbytes)
-       int *lp;
-       int nbytes;
-{
-       asm("movc5 $0,(sp),$0,8(ap),*4(ap)");
-}
-
 char *
 nalloc(i, j)
        int i, j;
 char *
 nalloc(i, j)
        int i, j;