Berkeley specific copyright
[unix-history] / usr / src / bin / cp / cp.c
index 092302e..98872f0 100644 (file)
@@ -1,6 +1,18 @@
+/*
+ * Copyright (c) 1983 Regents of the University of California.
+ * All rights reserved.  The Berkeley software License Agreement
+ * specifies the terms and conditions for redistribution.
+ */
+
 #ifndef lint
 #ifndef lint
-static char *sccsid = "@(#)cp.c        4.12 (Berkeley) %G%";
-#endif
+char copyright[] =
+"@(#) Copyright (c) 1983 Regents of the University of California.\n\
+ All rights reserved.\n";
+#endif not lint
+
+#ifndef lint
+static char sccsid[] = "@(#)cp.c       4.14 (Berkeley) %G%";
+#endif not lint
 
 /*
  * cp
 
 /*
  * cp
@@ -63,11 +75,14 @@ usage:
        exit(1);
 }
 
        exit(1);
 }
 
+                       /* I/O buffer; guarantee long-word alignment */
+static char    buf[MAXBSIZE];
+
 copy(from, to)
        char *from, *to;
 {
        int fold, fnew, n, exists;
 copy(from, to)
        char *from, *to;
 {
        int fold, fnew, n, exists;
-       char *last, destname[MAXPATHLEN + 1], buf[MAXBSIZE];
+       char *last, destname[MAXPATHLEN + 1];
        struct stat stfrom, stto;
 
        fold = open(from, 0);
        struct stat stfrom, stto;
 
        fold = open(from, 0);