add ftw
[unix-history] / usr / src / lib / libc / stdio / perror.c
index d9a4089..133b21d 100644 (file)
@@ -1,4 +1,13 @@
-/* @(#)perror.c        4.2 (Berkeley) %G% */
+/*
+ * Copyright (c) 1980 Regents of the University of California.
+ * All rights reserved.  The Berkeley software License Agreement
+ * specifies the terms and conditions for redistribution.
+ */
+
+#if defined(LIBC_SCCS) && !defined(lint)
+static char sccsid[] = "@(#)perror.c   5.3 (Berkeley) %G%";
+#endif LIBC_SCCS and not lint
+
 /*
  * Print the error indicated
  * in the cerror cell.
 /*
  * Print the error indicated
  * in the cerror cell.
@@ -7,8 +16,8 @@
 #include <sys/uio.h>
 
 int    errno;
 #include <sys/uio.h>
 
 int    errno;
-int    sys_nerr;
-char   *sys_errlist[];
+extern int     sys_nerr;
+extern char    *sys_errlist[];
 perror(s)
        char *s;
 {
 perror(s)
        char *s;
 {