diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.pre/compat-4.1/ftime.c libx_c/compat-4.1/ftime.c
---- libx_c.pre/compat-4.1/ftime.c 2017-01-20 15:07:14.059375297 +1100
-+++ libx_c/compat-4.1/ftime.c 2017-01-20 15:07:14.067375318 +1100
+--- libx_c.pre/compat-4.1/ftime.c 2017-01-22 19:31:08.958329247 +1100
++++ libx_c/compat-4.1/ftime.c 2017-01-22 18:45:33.000000000 +1100
@@ -10,18 +10,20 @@
#include <sys/types.h>
+/*};*/
ftime(tp)
- register struct timeb *tp; {
+ register struct timeb *tp;
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.pre/compat-4.1/gtty.c libx_c/compat-4.1/gtty.c
---- libx_c.pre/compat-4.1/gtty.c 2017-01-20 15:07:14.059375297 +1100
-+++ libx_c/compat-4.1/gtty.c 2017-01-20 15:07:14.067375318 +1100
-@@ -15,7 +15,7 @@
+--- libx_c.pre/compat-4.1/gtty.c 2017-01-22 19:31:08.958329247 +1100
++++ libx_c/compat-4.1/gtty.c 2017-01-22 18:53:43.000000000 +1100
+@@ -15,8 +15,7 @@
#include <sgtty.h>
gtty(fd, ap)
-- struct sgtty *ap; {
-+ struct sgttyb *ap; {
-
+- struct sgtty *ap;
++ struct sgttyb *ap;
+ {
+-
return(ioctl(fd, TIOCGETP, ap));
}
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.pre/compat-4.1/stty.c libx_c/compat-4.1/stty.c
---- libx_c.pre/compat-4.1/stty.c 2017-01-20 15:07:14.059375297 +1100
-+++ libx_c/compat-4.1/stty.c 2017-01-20 15:07:14.067375318 +1100
-@@ -15,7 +15,7 @@
+--- libx_c.pre/compat-4.1/stty.c 2017-01-22 19:31:08.958329247 +1100
++++ libx_c/compat-4.1/stty.c 2017-01-22 18:53:37.000000000 +1100
+@@ -15,8 +15,7 @@
#include <sgtty.h>
stty(fd, ap)
-- struct sgtty *ap; {
-+ struct sgttyb *ap; {
-
+- struct sgtty *ap;
++ struct sgttyb *ap;
+ {
+-
return(ioctl(fd, TIOCSETP, ap));
}
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.pre/compat-4.1/times.c libx_c/compat-4.1/times.c
---- libx_c.pre/compat-4.1/times.c 2017-01-20 15:07:14.059375297 +1100
-+++ libx_c/compat-4.1/times.c 2017-01-20 15:07:14.067375318 +1100
+--- libx_c.pre/compat-4.1/times.c 2017-01-22 19:31:08.958329247 +1100
++++ libx_c/compat-4.1/times.c 2017-01-22 18:45:33.000000000 +1100
@@ -10,16 +10,18 @@
#include <sys/time.h>
+/*};*/
times(tmsp)
- register struct tms *tmsp; {
+ register struct tms *tmsp;
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.pre/compat-4.1/vtimes.c libx_c/compat-4.1/vtimes.c
---- libx_c.pre/compat-4.1/vtimes.c 2017-01-20 15:07:14.059375297 +1100
-+++ libx_c/compat-4.1/vtimes.c 2017-01-20 15:07:14.067375318 +1100
+--- libx_c.pre/compat-4.1/vtimes.c 2017-01-22 19:31:08.958329247 +1100
++++ libx_c/compat-4.1/vtimes.c 2017-01-22 18:45:33.000000000 +1100
@@ -10,23 +10,25 @@
#include <sys/time.h>
+/*};*/
vtimes(par, chi)
- register struct vtimes *par, *chi; {
+ register struct vtimes *par, *chi;
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.pre/compat-sys5/memccpy.c libx_c/compat-sys5/memccpy.c
---- libx_c.pre/compat-sys5/memccpy.c 2017-01-20 15:07:14.067375318 +1100
-+++ libx_c/compat-sys5/memccpy.c 2017-01-20 15:07:14.067375318 +1100
-@@ -13,11 +13,15 @@
+--- libx_c.pre/compat-sys5/memccpy.c 2017-01-22 19:31:08.962329268 +1100
++++ libx_c/compat-sys5/memccpy.c 2017-01-22 18:53:54.000000000 +1100
+@@ -13,12 +13,16 @@
#endif
char *
- register char *t, *f;
+memccpy(_t, _f, c, n)
+ void *_t, *_f;
- register c, n; {
+ register c, n;
+ {
+#define t (*(char **)&_t)
+#define f (*(char **)&_f)
while (--n >= 0)
+#undef f
}
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.pre/compat-sys5/memchr.c libx_c/compat-sys5/memchr.c
---- libx_c.pre/compat-sys5/memchr.c 2017-01-20 15:07:14.067375318 +1100
-+++ libx_c/compat-sys5/memchr.c 2017-01-20 15:07:14.067375318 +1100
-@@ -12,12 +12,14 @@
+--- libx_c.pre/compat-sys5/memchr.c 2017-01-22 19:31:08.962329268 +1100
++++ libx_c/compat-sys5/memchr.c 2017-01-22 18:54:09.000000000 +1100
+@@ -12,13 +12,15 @@
static char sccsid[] = "@(#)memchr.c 5.2 (Berkeley) 86/03/09";
#endif
+void *
+memchr(_s, c, n)
+ void *_s;
- register c, n; {
+ register c, n;
+ {
+#define s (*(char **)&_s)
while (--n >= 0)
if (*s++ == c)
+#undef s
}
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.pre/compat-sys5/memcmp.c libx_c/compat-sys5/memcmp.c
---- libx_c.pre/compat-sys5/memcmp.c 2017-01-20 15:07:14.067375318 +1100
-+++ libx_c/compat-sys5/memcmp.c 2017-01-20 15:07:14.067375318 +1100
-@@ -12,11 +12,15 @@
+--- libx_c.pre/compat-sys5/memcmp.c 2017-01-22 19:31:08.962329268 +1100
++++ libx_c/compat-sys5/memcmp.c 2017-01-22 18:54:14.000000000 +1100
+@@ -12,12 +12,16 @@
static char sccsid[] = "@(#)memcmp.c 5.2 (Berkeley) 86/03/09";
#endif
- register char *s1, *s2;
+memcmp(_s1, _s2, n)
+ void *_s1, *_s2;
- register n; {
+ register n;
+ {
+#define s1 (*(char **)&_s1)
+#define s2 (*(char **)&_s2)
while (--n >= 0)
+#undef s2
}
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.pre/compat-sys5/memcpy.c libx_c/compat-sys5/memcpy.c
---- libx_c.pre/compat-sys5/memcpy.c 2017-01-20 15:07:14.067375318 +1100
-+++ libx_c/compat-sys5/memcpy.c 2017-01-20 15:07:14.067375318 +1100
-@@ -12,14 +12,18 @@
+--- libx_c.pre/compat-sys5/memcpy.c 2017-01-22 19:31:08.962329268 +1100
++++ libx_c/compat-sys5/memcpy.c 2017-01-22 18:54:20.000000000 +1100
+@@ -12,15 +12,19 @@
static char sccsid[] = "@(#)memcpy.c 5.2 (Berkeley) 86/03/09";
#endif
+void *
+memcpy(_t, _f, n)
+ void *_t, *_f;
- register n; {
+ register n;
+ {
+#define t (*(char **)&_t)
+#define f (*(char **)&_f)
register char *p = t;
+#undef f
}
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.pre/compat-sys5/memset.c libx_c/compat-sys5/memset.c
---- libx_c.pre/compat-sys5/memset.c 2017-01-20 15:07:14.067375318 +1100
-+++ libx_c/compat-sys5/memset.c 2017-01-20 15:07:14.067375318 +1100
-@@ -12,14 +12,16 @@
+--- libx_c.pre/compat-sys5/memset.c 2017-01-22 19:31:08.962329268 +1100
++++ libx_c/compat-sys5/memset.c 2017-01-22 18:54:02.000000000 +1100
+@@ -12,15 +12,17 @@
static char sccsid[] = "@(#)memset.c 5.2 (Berkeley) 86/03/09";
#endif
+void *
+memset(_s, c, n)
+ void *_s;
- register c, n; {
+ register c, n;
+ {
+#define s (*(char **)&_s)
register char *p = s;
+#undef s
}
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.pre/fcntl.h libx_c/fcntl.h
---- libx_c.pre/fcntl.h 2017-01-20 15:07:14.059375297 +1100
+--- libx_c.pre/fcntl.h 2017-01-22 19:31:08.954329226 +1100
+++ libx_c/fcntl.h 1970-01-01 10:00:00.000000000 +1000
@@ -1,40 +0,0 @@
-/*
-#define FEXCL 04000 /* error if already created */
-#endif
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.pre/gen/bcmp.c libx_c/gen/bcmp.c
---- libx_c.pre/gen/bcmp.c 2017-01-20 15:07:14.067375318 +1100
-+++ libx_c/gen/bcmp.c 2017-01-20 15:07:14.067375318 +1100
-@@ -11,10 +11,11 @@
+--- libx_c.pre/gen/bcmp.c 2017-01-22 19:31:08.962329268 +1100
++++ libx_c/gen/bcmp.c 2017-01-22 18:54:55.000000000 +1100
+@@ -11,11 +11,12 @@
/*
* bcmp -- vax cmpc3 instruction
*/
- register char *b1, *b2;
+bcmp(_b1, _b2, length)
+ void *_b1, *_b2;
- register int length; {
+ register int length;
+ {
-
+#define b1 (*(char **)&_b1)
+#define b2 (*(char **)&_b2)
if (length == 0)
return (0);
do
-@@ -22,4 +23,6 @@
+@@ -23,4 +24,6 @@
break;
while (--length);
return(length);
+#undef b2
}
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.pre/gen/bcopy.c libx_c/gen/bcopy.c
---- libx_c.pre/gen/bcopy.c 2017-01-20 15:07:14.067375318 +1100
-+++ libx_c/gen/bcopy.c 2017-01-20 15:07:14.071375330 +1100
-@@ -11,9 +11,11 @@
+--- libx_c.pre/gen/bcopy.c 2017-01-22 19:31:08.962329268 +1100
++++ libx_c/gen/bcopy.c 2017-01-22 18:57:53.000000000 +1100
+@@ -11,10 +11,12 @@
/*
* bcopy -- vax movc3 instruction
*/
- register char *src, *dst;
+bcopy(_src, _dst, length)
+ void *_src, *_dst;
- register int length; {
+ register int length;
+ {
+#define src (*(char **)&_src)
+#define dst (*(char **)&_dst)
if (length && src != dst)
if ((u_int)dst < (u_int)src)
if (((int)src | (int)dst | length) & 3)
-@@ -23,7 +25,7 @@
+@@ -24,7 +26,7 @@
else {
length >>= 2;
do /* copy by longs */
while (--length);
}
else { /* copy backwards */
-@@ -36,9 +38,11 @@
+@@ -37,9 +39,11 @@
else {
length >>= 2;
do /* copy by shorts */
+#undef dst
}
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.pre/gen/bzero.c libx_c/gen/bzero.c
---- libx_c.pre/gen/bzero.c 2017-01-20 15:07:14.067375318 +1100
-+++ libx_c/gen/bzero.c 2017-01-20 15:07:14.071375330 +1100
-@@ -11,13 +11,14 @@
+--- libx_c.pre/gen/bzero.c 2017-01-22 19:31:08.962329268 +1100
++++ libx_c/gen/bzero.c 2017-01-22 19:05:53.000000000 +1100
+@@ -11,14 +11,15 @@
/*
* bzero -- vax movc5 instruction
*/
- register char *b;
+bzero(_b, length)
+ void *_b;
- register int length; {
+ register int length;
+ {
-
+#define b (*(char **)&_b)
if (length)
+#undef b
}
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.pre/gen/calloc.c libx_c/gen/calloc.c
---- libx_c.pre/gen/calloc.c 2017-01-20 15:07:14.067375318 +1100
-+++ libx_c/gen/calloc.c 2017-01-20 15:07:14.071375330 +1100
-@@ -5,11 +5,11 @@
+--- libx_c.pre/gen/calloc.c 2017-01-22 19:31:08.962329268 +1100
++++ libx_c/gen/calloc.c 2017-01-22 19:06:21.000000000 +1100
+@@ -5,12 +5,12 @@
/*
* Calloc - allocate and clear memory block
*/
-char *
+void *
calloc(num, size)
- register unsigned num, size; {
+ register unsigned num, size;
+ {
- extern char *malloc();
- register char *p;
+ extern void *malloc();
size *= num;
if (p = malloc(size))
-@@ -18,7 +18,7 @@
+@@ -19,7 +19,7 @@
}
cfree(p, num, size)
- char *p;
+ void *p;
unsigned num;
- unsigned size; {
- free(p);
+ unsigned size;
+ {
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.pre/gen/fakcu.c libx_c/gen/fakcu.c
---- libx_c.pre/gen/fakcu.c 2017-01-20 15:07:14.067375318 +1100
-+++ libx_c/gen/fakcu.c 2017-01-20 15:07:14.071375330 +1100
-@@ -6,5 +6,6 @@
+--- libx_c.pre/gen/fakcu.c 2017-01-22 19:31:08.962329268 +1100
++++ libx_c/gen/fakcu.c 2017-01-22 18:57:44.000000000 +1100
+@@ -6,6 +6,7 @@
* Null cleanup routine to resolve reference in exit()
* if not using stdio.
*/
+void
- _cleanup() {
+ _cleanup()
+ {
}
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.pre/gen/getpass.c libx_c/gen/getpass.c
---- libx_c.pre/gen/getpass.c 2017-01-20 15:07:14.067375318 +1100
-+++ libx_c/gen/getpass.c 2017-01-20 15:07:14.071375330 +1100
-@@ -15,8 +15,8 @@
+--- libx_c.pre/gen/getpass.c 2017-01-22 19:31:08.962329268 +1100
++++ libx_c/gen/getpass.c 2017-01-22 18:45:33.000000000 +1100
+@@ -16,8 +16,8 @@
register c;
FILE *fi;
static char pbuf[9];
if ((fi = fdopen(open("/dev/tty", 2), "r")) == NULL)
fi = stdin;
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.pre/gen/getusershell.c libx_c/gen/getusershell.c
---- libx_c.pre/gen/getusershell.c 2017-01-20 15:07:14.067375318 +1100
-+++ libx_c/gen/getusershell.c 2017-01-20 15:07:14.071375330 +1100
-@@ -62,7 +62,7 @@
+--- libx_c.pre/gen/getusershell.c 2017-01-22 19:31:08.962329268 +1100
++++ libx_c/gen/getusershell.c 2017-01-22 18:45:33.000000000 +1100
+@@ -66,7 +66,7 @@
register char **sp, *cp;
register FILE *fp;
struct stat statb;
if (shells != NULL)
free((char *)shells);
-@@ -76,7 +76,7 @@
+@@ -80,7 +80,7 @@
(void)fclose(fp);
return(okshells);
}
return(okshells);
}
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.pre/gen/insque.c libx_c/gen/insque.c
---- libx_c.pre/gen/insque.c 2017-01-20 15:07:14.067375318 +1100
-+++ libx_c/gen/insque.c 2017-01-20 15:07:14.071375330 +1100
+--- libx_c.pre/gen/insque.c 2017-01-22 19:31:08.962329268 +1100
++++ libx_c/gen/insque.c 2017-01-22 18:45:33.000000000 +1100
@@ -8,16 +8,19 @@
static char sccsid[] = "@(#)insque.c 5.1 (Berkeley) 1/27/87";
- #endif
+ #endif LIBC_SCCS and not lint
+#include <gen.h>
+
+/*};*/
insque(e, prev)
- register struct vaxque *e, *prev; {
+ register struct vaxque *e, *prev;
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.pre/gen/isatty.c libx_c/gen/isatty.c
---- libx_c.pre/gen/isatty.c 2017-01-20 15:07:14.067375318 +1100
+--- libx_c.pre/gen/isatty.c 2017-01-22 19:31:08.962329268 +1100
+++ libx_c/gen/isatty.c 1970-01-01 10:00:00.000000000 +1000
-@@ -1,17 +0,0 @@
+@@ -1,18 +0,0 @@
-#if defined(LIBC_SCCS) && !defined(lint)
-static char sccsid[] = "@(#)isatty.c 5.2 (Berkeley) 3/9/86";
--#endif
+-#endif LIBC_SCCS and not lint
-
-/*
- * Returns 1 iff file is a tty
-
-#include <sgtty.h>
-
--isatty(f) {
+-isatty(f)
+-{
- struct sgttyb ttyb;
-
- if (ioctl(f, TIOCGETP, &ttyb) < 0)
- return(1);
-}
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.pre/gen/malloc.c libx_c/gen/malloc.c
---- libx_c.pre/gen/malloc.c 2017-01-20 15:07:14.067375318 +1100
-+++ libx_c/gen/malloc.c 2017-01-20 15:07:14.071375330 +1100
+--- libx_c.pre/gen/malloc.c 2017-01-22 19:31:08.962329268 +1100
++++ libx_c/gen/malloc.c 2017-01-22 18:59:48.000000000 +1100
@@ -82,7 +82,7 @@
#if defined(DEBUG) || defined(RCHECK)
#define ASSERT(p) if (!(p)) botch("p")
-static
+static void
botch(s)
- char *s; {
- fprintf(stderr, "\r\nassertion botched: %s\r\n", s);
-@@ -93,7 +93,7 @@
+ char *s;
+ {
+@@ -94,7 +94,7 @@
#define ASSERT(p)
#endif
-char *
+void *
malloc(nbytes)
- unsigned nbytes; {
- register union overhead *op;
-@@ -177,6 +177,7 @@
+ unsigned nbytes;
+ {
+@@ -179,6 +179,7 @@
/*
* Allocate more memory to the indicated bucket.
*/
+void
morecore(bucket)
- int bucket; {
- register union overhead *op;
-@@ -217,8 +218,9 @@
+ int bucket;
+ {
+@@ -220,9 +221,10 @@
}
}
+void
free(cp)
-- char *cp; {
-+ void *cp; {
+- char *cp;
+-{
++ void *cp;
++{
register int size;
register union overhead *op;
-@@ -257,9 +259,9 @@
+@@ -261,11 +263,11 @@
*/
int realloc_srchlen = 4; /* 4 should be plenty, -1 =>'s whole list */
realloc(cp, nbytes)
- char *cp;
+ void *cp;
- unsigned nbytes; {
+ unsigned nbytes;
+-{
++{
register u_int onb, i;
union overhead *op;
-@@ -352,6 +354,7 @@
+ char *res;
+@@ -358,6 +360,7 @@
* for each size category, the second showing the number of mallocs -
* frees for each size category.
*/
+void
mstats(s)
- char *s; {
- register int i, j;
+ char *s;
+ {
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.pre/gen/ndbm.c libx_c/gen/ndbm.c
---- libx_c.pre/gen/ndbm.c 2017-01-20 15:07:14.067375318 +1100
-+++ libx_c/gen/ndbm.c 2017-01-20 15:07:14.071375330 +1100
+--- libx_c.pre/gen/ndbm.c 2017-01-22 19:31:08.962329268 +1100
++++ libx_c/gen/ndbm.c 2017-01-22 19:08:55.000000000 +1100
@@ -14,6 +14,7 @@
#include <stdio.h>
#include <errno.h>
#define BYTESIZ 8
#undef setbit
-@@ -24,9 +25,11 @@
+@@ -24,10 +25,12 @@
extern int errno;
DBM *
-dbm_open(file, flags, mode)
+dbm_open(file, flags, va_alist)
char *file;
-- int flags, mode; {
+- int flags, mode;
+ int flags;
-+ va_dcl {
++ va_dcl
+ {
+ va_list argp;
struct stat statb;
register DBM *db;
-@@ -39,12 +42,16 @@
+@@ -40,12 +43,16 @@
flags = (flags & ~03) | O_RDWR;
strcpy(db->dbm_pagbuf, file);
strcat(db->dbm_pagbuf, ".pag");
goto bad1;
fstat(db->dbm_dirf, &statb);
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.pre/gen/perror.c libx_c/gen/perror.c
---- libx_c.pre/gen/perror.c 2017-01-20 15:07:14.067375318 +1100
-+++ libx_c/gen/perror.c 2017-01-20 15:07:14.071375330 +1100
+--- libx_c.pre/gen/perror.c 2017-01-22 19:31:08.962329268 +1100
++++ libx_c/gen/perror.c 2017-01-22 18:45:43.000000000 +1100
@@ -17,7 +17,7 @@
int errno;
-char *sys_errlist[];
+extern char *sys_errlist[];
perror(s)
- char *s; {
- struct iovec iov[4];
+ char *s;
+ {
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.pre/gen/popen.c libx_c/gen/popen.c
---- libx_c.pre/gen/popen.c 2017-01-20 15:07:14.067375318 +1100
+--- libx_c.pre/gen/popen.c 2017-01-22 19:31:08.962329268 +1100
+++ libx_c/gen/popen.c 1970-01-01 10:00:00.000000000 +1000
-@@ -1,77 +0,0 @@
+@@ -1,79 +0,0 @@
-/*
- * Copyright (c) 1980 Regents of the University of California.
- * All rights reserved. The Berkeley software License Agreement
-
-#if defined(LIBC_SCCS) && !defined(lint)
-static char sccsid[] = "@(#)popen.c 5.4 (Berkeley) 3/26/86";
--#endif
+-#endif LIBC_SCCS and not lint
-
-#include <stdio.h>
-#include <signal.h>
-FILE *
-popen(cmd,mode)
- char *cmd;
-- char *mode; {
+- char *mode;
+-{
- int p[2];
- int myside, hisside, pid;
-
-}
-
-pclose(ptr)
-- FILE *ptr; {
+- FILE *ptr;
+-{
- int child, pid, status, omask;
-
- child = popen_pid[fileno(ptr)];
- return (pid == -1 ? -1 : status);
-}
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.pre/gen/qsort.c libx_c/gen/qsort.c
---- libx_c.pre/gen/qsort.c 2017-01-20 15:07:14.067375318 +1100
-+++ libx_c/gen/qsort.c 2017-01-20 15:07:14.071375330 +1100
-@@ -32,11 +32,13 @@
+--- libx_c.pre/gen/qsort.c 2017-01-22 19:31:08.962329268 +1100
++++ libx_c/gen/qsort.c 2017-01-22 19:06:02.000000000 +1100
+@@ -32,12 +32,14 @@
* It's not...
*/
+ void *_base;
int n;
int size;
- int (*compar)(); {
+ int (*compar)();
+ {
+#define base ((char *)_base)
register char c, *i, *j, *lo, *hi;
char *min, *max;
-@@ -89,6 +91,7 @@
+@@ -90,6 +92,7 @@
}
}
}
}
/*
-@@ -106,7 +109,7 @@
+@@ -107,10 +110,9 @@
* (And there are only three places where this is done).
*/
-static
+static void
qst(base, max)
- char *base, *max; {
+- char *base, *max;
+-{
++ char *base, *max; {
register char c, *i, *j, *jj;
+ register int ii;
+ char *mid, *tmp;
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.pre/gen/random.c libx_c/gen/random.c
---- libx_c.pre/gen/random.c 2017-01-20 15:07:14.067375318 +1100
-+++ libx_c/gen/random.c 2017-01-20 15:07:14.071375330 +1100
-@@ -222,7 +222,7 @@
+--- libx_c.pre/gen/random.c 2017-01-22 19:31:08.962329268 +1100
++++ libx_c/gen/random.c 2017-01-22 18:45:57.000000000 +1100
+@@ -224,7 +224,7 @@
if( n < BREAK_1 ) {
if( n < BREAK_0 ) {
fprintf( stderr, "initstate: not enough state (%d bytes) with which to do jack; ignored.\n" );
rand_type = TYPE_0;
rand_deg = DEG_0;
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.pre/gen/regex.c libx_c/gen/regex.c
---- libx_c.pre/gen/regex.c 2017-01-20 15:07:14.067375318 +1100
-+++ libx_c/gen/regex.c 2017-01-20 15:07:14.071375330 +1100
+--- libx_c.pre/gen/regex.c 2017-01-22 19:31:08.962329268 +1100
++++ libx_c/gen/regex.c 2017-01-22 18:45:57.000000000 +1100
@@ -8,8 +8,6 @@
static char sccsid[] = "@(#)regex.c 5.2 (Berkeley) 3/9/86";
- #endif
+ #endif LIBC_SCCS and not lint
-#
-
* routines to do regular expression matching
*
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.pre/gen/remque.c libx_c/gen/remque.c
---- libx_c.pre/gen/remque.c 2017-01-20 15:07:14.067375318 +1100
-+++ libx_c/gen/remque.c 2017-01-20 15:07:14.071375330 +1100
+--- libx_c.pre/gen/remque.c 2017-01-22 19:31:08.962329268 +1100
++++ libx_c/gen/remque.c 2017-01-22 18:45:57.000000000 +1100
@@ -8,16 +8,19 @@
static char sccsid[] = "@(#)remque.c 5.1 (Berkeley) 1/27/87";
- #endif
+ #endif LIBC_SCCS and not lint
+#include <gen.h>
+
+/*};*/
remque(e)
- register struct vaxque *e; {
+ register struct vaxque *e;
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.pre/gen/signal.c libx_c/gen/signal.c
---- libx_c.pre/gen/signal.c 2017-01-20 15:07:14.067375318 +1100
-+++ libx_c/gen/signal.c 2017-01-20 15:07:14.071375330 +1100
+--- libx_c.pre/gen/signal.c 2017-01-22 19:31:08.962329268 +1100
++++ libx_c/gen/signal.c 2017-01-22 18:54:49.000000000 +1100
@@ -13,9 +13,10 @@
*/
#include <signal.h>
-int (*
-+void (*
- signal(s, a))()
-- int s, (*a)(); {
+-signal(s, a))()
+- int s, (*a)();
++void
++(*signal(s, a))()
+ int s;
-+ void (*a)(); {
++ void (*a)();
+ {
struct sigvec osv, sv;
static int mask[NSIG];
- static int flags[NSIG];
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.pre/gen/sleep.c libx_c/gen/sleep.c
---- libx_c.pre/gen/sleep.c 2017-01-20 15:07:14.067375318 +1100
-+++ libx_c/gen/sleep.c 2017-01-20 15:07:14.071375330 +1100
-@@ -16,9 +16,11 @@
+--- libx_c.pre/gen/sleep.c 2017-01-22 19:31:08.962329268 +1100
++++ libx_c/gen/sleep.c 2017-01-22 18:57:39.000000000 +1100
+@@ -16,10 +16,12 @@
static int ringring;
+void
sleep(n)
- unsigned n; {
+ unsigned n;
+ {
- int sleepx(), omask;
+ void sleepx();
+ int omask;
struct itimerval itv, oitv;
register struct itimerval *itp = &itv;
struct sigvec vec, ovec;
-@@ -57,8 +59,7 @@
+@@ -58,9 +60,8 @@
(void) setitimer(ITIMER_REAL, &oitv, (struct itimerval *)0);
}
-static
+static void
- sleepx() {
+ sleepx()
+ {
-
ringring = 1;
}
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.pre/gen/syslog.c libx_c/gen/syslog.c
---- libx_c.pre/gen/syslog.c 2017-01-20 15:07:14.067375318 +1100
-+++ libx_c/gen/syslog.c 2017-01-20 15:07:14.071375330 +1100
-@@ -54,6 +54,7 @@
+--- libx_c.pre/gen/syslog.c 2017-01-22 19:31:08.962329268 +1100
++++ libx_c/gen/syslog.c 2017-01-22 18:57:26.000000000 +1100
+@@ -32,6 +32,7 @@
+ #include <sys/syslog.h>
+ #include <netdb.h>
+ #include <strings.h>
++#include <varargs.h>
+
+ #define MAXLINE 1024 /* max message size */
+ #define NULL 0 /* manifest */
+@@ -54,14 +55,17 @@
extern int errno, sys_nerr;
extern char *sys_errlist[];
+-syslog(pri, fmt, p0, p1, p2, p3, p4)
+void
- syslog(pri, fmt, p0, p1, p2, p3, p4)
++syslog(pri, fmt, va_alist)
int pri;
- char *fmt; {
-@@ -151,6 +152,7 @@
+ char *fmt;
++ va_dcl
+ {
+ char buf[MAXLINE + 1], outline[MAXLINE + 1];
+ register char *b, *f, *o;
+ register int c;
+ long now;
++ va_list argp;
+ int pid, olderrno = errno;
+
+ /* see if we should just throw out this message */
+@@ -114,7 +118,9 @@
+ }
+ *b++ = '\n';
+ *b = '\0';
+- sprintf(o, buf, p0, p1, p2, p3, p4);
++ va_start(argp);
++ vsprintf(o, buf, argp);
++ va_end(argp);
+ c = strlen(outline);
+ if (c > MAXLINE)
+ c = MAXLINE;
+@@ -152,6 +158,7 @@
* OPENLOG -- open system log
*/
+void
openlog(ident, logstat, logfac)
char *ident;
- int logstat, logfac; {
-@@ -173,8 +175,8 @@
+ int logstat, logfac;
+@@ -175,9 +182,9 @@
* CLOSELOG -- close the system log
*/
+void
- closelog() {
+ closelog()
+ {
-
(void) close(LogFile);
LogFile = -1;
}
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.pre/gen/system.c libx_c/gen/system.c
---- libx_c.pre/gen/system.c 2017-01-20 15:07:14.067375318 +1100
-+++ libx_c/gen/system.c 2017-01-20 15:07:14.071375330 +1100
-@@ -7,7 +7,7 @@
- system(s)
- char *s; {
+--- libx_c.pre/gen/system.c 2017-01-22 19:31:08.962329268 +1100
++++ libx_c/gen/system.c 2017-01-22 18:45:57.000000000 +1100
+@@ -8,7 +8,7 @@
+ char *s;
+ {
int status, pid, w;
- register int (*istat)(), (*qstat)();
+ register void (*istat)(), (*qstat)();
if ((pid = vfork()) == 0) {
execl("/bin/sh", "sh", "-c", s, 0);
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.pre/gen/usleep.c libx_c/gen/usleep.c
---- libx_c.pre/gen/usleep.c 2017-01-20 15:07:14.067375318 +1100
-+++ libx_c/gen/usleep.c 2017-01-20 15:07:14.071375330 +1100
-@@ -19,9 +19,11 @@
+--- libx_c.pre/gen/usleep.c 2017-01-22 19:31:08.962329268 +1100
++++ libx_c/gen/usleep.c 2017-01-22 19:06:12.000000000 +1100
+@@ -19,10 +19,12 @@
static int ringring;
+void
usleep(n)
- unsigned n; {
+ unsigned n;
+ {
- int sleepx(), omask;
+ void sleepx();
+ int omask;
struct itimerval itv, oitv;
register struct itimerval *itp = &itv;
struct sigvec vec, ovec;
-@@ -60,8 +62,7 @@
+@@ -61,9 +63,7 @@
(void) setitimer(ITIMER_REAL, &oitv, (struct itimerval *)0);
}
-static
-+static void
- sleepx() {
+-sleepx()
+-{
-
++static void
++sleepx() {
ringring = 1;
}
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.pre/gen/valloc.c libx_c/gen/valloc.c
---- libx_c.pre/gen/valloc.c 2017-01-20 15:07:14.067375318 +1100
-+++ libx_c/gen/valloc.c 2017-01-20 15:07:14.071375330 +1100
+--- libx_c.pre/gen/valloc.c 2017-01-22 19:31:08.962329268 +1100
++++ libx_c/gen/valloc.c 2017-01-22 18:45:57.000000000 +1100
@@ -8,9 +8,9 @@
static char sccsid[] = "@(#)valloc.c 5.2 (Berkeley) 3/9/86";
- #endif
+ #endif LIBC_SCCS and not lint
-char *malloc();
+void *malloc();
-char *
+void *
valloc(i)
- int i; {
- int valsiz = getpagesize(), j;
-diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.pre/generated.txt libx_c/generated.txt
---- libx_c.pre/generated.txt 2017-01-20 15:07:14.059375297 +1100
-+++ libx_c/generated.txt 2017-01-20 15:07:56.423489466 +1100
-@@ -117,6 +117,7 @@
- sys/unlink.c
- sys/utimes.c
- sys/vhangup.c
-+sys/vopen.c
- sys/wait.c
- sys/wait3.c
- sys/write.c
+ int i;
+ {
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.pre/gen.h libx_c/gen.h
--- libx_c.pre/gen.h 1970-01-01 10:00:00.000000000 +1000
-+++ libx_c/gen.h 2017-01-20 15:07:14.071375330 +1100
++++ libx_c/gen.h 2017-01-22 18:45:57.000000000 +1100
@@ -0,0 +1,5 @@
+/* formerly duplicated in gen/insque.c and gen/remque.c */
+struct vaxque { /* queue format expected by VAX queue instructions */
+ struct vaxque *vq_prev;
+};
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.pre/net/rcmd.c libx_c/net/rcmd.c
---- libx_c.pre/net/rcmd.c 2017-01-20 15:07:14.059375297 +1100
-+++ libx_c/net/rcmd.c 2017-01-20 15:07:14.071375330 +1100
-@@ -58,7 +58,7 @@
+--- libx_c.pre/net/rcmd.c 2017-01-22 19:31:08.958329247 +1100
++++ libx_c/net/rcmd.c 2017-01-22 18:45:57.000000000 +1100
+@@ -59,7 +59,7 @@
sin.sin_family = hp->h_addrtype;
bcopy(hp->h_addr_list[0], (caddr_t)&sin.sin_addr, hp->h_length);
sin.sin_port = rport;
break;
(void) close(s);
if (errno == EADDRINUSE) {
-@@ -106,7 +106,7 @@
+@@ -107,7 +107,7 @@
(void) close(s2);
goto bad;
}
(void) close(s2);
if (s3 < 0) {
perror("accept");
-@@ -160,7 +160,7 @@
+@@ -162,7 +162,7 @@
return (-1);
for (;;) {
sin.sin_port = htons((u_short)*alport);
if (errno != EADDRINUSE) {
(void) close(s);
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.pre/net/res_debug.c libx_c/net/res_debug.c
---- libx_c.pre/net/res_debug.c 2017-01-20 15:07:14.059375297 +1100
-+++ libx_c/net/res_debug.c 2017-01-20 15:07:14.071375330 +1100
-@@ -324,7 +324,9 @@
+--- libx_c.pre/net/res_debug.c 2017-01-22 19:31:08.958329247 +1100
++++ libx_c/net/res_debug.c 2017-01-22 18:45:57.000000000 +1100
+@@ -328,7 +328,9 @@
}
static char nbuf[20];
/*
* Return a string for the type
-@@ -380,7 +382,10 @@
+@@ -385,7 +387,10 @@
case T_GID:
return("GID");
default:
}
}
-@@ -397,6 +402,9 @@
+@@ -403,6 +408,9 @@
case C_ANY: /* matches any class */
return("ANY");
default:
}
}
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.pre/net/res_mkquery.c libx_c/net/res_mkquery.c
---- libx_c.pre/net/res_mkquery.c 2017-01-20 15:07:14.059375297 +1100
-+++ libx_c/net/res_mkquery.c 2017-01-20 15:07:14.071375330 +1100
+--- libx_c.pre/net/res_mkquery.c 2017-01-22 19:31:08.958329247 +1100
++++ libx_c/net/res_mkquery.c 2017-01-22 18:45:57.000000000 +1100
@@ -14,7 +14,10 @@
#include <arpa/nameser.h>
#include <resolv.h>
/*
* Form all types of queries.
-@@ -70,7 +73,9 @@
+@@ -71,7 +74,9 @@
if (res_init() == -1)
return(-1);
if (_res.defdname[0] != '\0')
/*
* perform opcode specific processing
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.pre/net/res_send.c libx_c/net/res_send.c
---- libx_c.pre/net/res_send.c 2017-01-20 15:07:14.059375297 +1100
-+++ libx_c/net/res_send.c 2017-01-20 15:07:14.071375330 +1100
-@@ -82,7 +82,7 @@
- #endif
+--- libx_c.pre/net/res_send.c 2017-01-22 19:31:08.958329247 +1100
++++ libx_c/net/res_send.c 2017-01-22 18:45:57.000000000 +1100
+@@ -83,7 +83,7 @@
+ #endif DEBUG
continue;
}
- if (connect(s, &(_res.nsaddr_list[ns]),
sizeof(struct sockaddr)) < 0) {
terrno = errno;
#ifdef DEBUG
-@@ -156,7 +156,7 @@
+@@ -157,7 +157,7 @@
if (s < 0)
s = socket(AF_INET, SOCK_DGRAM, 0);
#if BSD >= 43
send(s, buf, buflen, 0) != buflen) {
#ifdef DEBUG
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.pre/net/rexec.c libx_c/net/rexec.c
---- libx_c.pre/net/rexec.c 2017-01-20 15:07:14.059375297 +1100
-+++ libx_c/net/rexec.c 2017-01-20 15:07:14.071375330 +1100
-@@ -49,7 +49,7 @@
+--- libx_c.pre/net/rexec.c 2017-01-22 19:31:08.958329247 +1100
++++ libx_c/net/rexec.c 2017-01-22 18:45:57.000000000 +1100
+@@ -50,7 +50,7 @@
sin.sin_family = hp->h_addrtype;
sin.sin_port = rport;
bcopy(hp->h_addr, (caddr_t)&sin.sin_addr, hp->h_length);
if (errno == ECONNREFUSED && timo <= 16) {
(void) close(s);
sleep(timo);
-@@ -83,7 +83,7 @@
+@@ -84,7 +84,7 @@
(void) sprintf(num, "%d", port);
(void) write(s, num, strlen(num)+1);
{ int len = sizeof (from);
if (s3 < 0) {
perror("accept");
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.pre/net/ruserpass.c libx_c/net/ruserpass.c
---- libx_c.pre/net/ruserpass.c 2017-01-20 15:07:14.059375297 +1100
-+++ libx_c/net/ruserpass.c 2017-01-20 15:07:14.071375330 +1100
+--- libx_c.pre/net/ruserpass.c 2017-01-22 19:31:08.958329247 +1100
++++ libx_c/net/ruserpass.c 2017-01-22 18:45:57.000000000 +1100
@@ -19,6 +19,7 @@
struct utmp *getutmp();
static FILE *cfile;
+void
ruserpass(host, aname, apass)
- char *host, **aname, **apass; {
-
-@@ -45,7 +46,7 @@
+ char *host, **aname, **apass;
+ {
+@@ -46,7 +47,7 @@
}
}
-static
+static void
renv(host, aname, apass)
- char *host, **aname, **apass; {
- register char *cp;
-@@ -72,8 +73,7 @@
+ char *host, **aname, **apass;
+ {
+@@ -74,8 +75,7 @@
mkpwclear(cp, host[0], *apass);
}
-char *
+static char *
renvlook(host)
- char *host; {
- register char *cp, **env;
-@@ -125,7 +125,7 @@
+ char *host;
+ {
+@@ -128,7 +128,7 @@
0, 0
};
-static
+static void
rnetrc(host, aname, apass)
- char *host, **aname, **apass; {
- char *hdir, buf[BUFSIZ];
-@@ -482,7 +482,7 @@
+ char *host, **aname, **apass;
+ {
+@@ -487,7 +487,7 @@
* Set up the key schedule from the key.
*/
-static
+static void
nbssetkey(key)
- char *key; {
- register i, j, k;
-@@ -606,7 +606,7 @@
+ char *key;
+ {
+@@ -612,7 +612,7 @@
* The payoff: encrypt a block.
*/
-static
+static void
blkencrypt(block, edflag)
- char *block; {
- int i, ii;
-@@ -720,7 +720,7 @@
+ char *block;
+ {
+@@ -728,7 +728,7 @@
return(NULL);
}
-static
+static void
sreverse(sto, sfrom)
- register char *sto, *sfrom; {
- register int i;
-@@ -763,6 +763,7 @@
+ register char *sto, *sfrom;
+ {
+@@ -773,6 +773,7 @@
return (skey);
}
+void
mkpwunclear(spasswd,mch,sencpasswd)
- char mch, *spasswd, *sencpasswd; {
- register char *skey;
-@@ -779,6 +780,7 @@
+ char mch, *spasswd, *sencpasswd;
+ {
+@@ -790,6 +791,7 @@
nbsencrypt(spasswd, skey, sencpasswd);
}
+void
mkpwclear(sencpasswd,mch,spasswd)
- char mch, *spasswd, *sencpasswd; {
- register char *skey;
+ char mch, *spasswd, *sencpasswd;
+ {
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.pre/net.h libx_c/net.h
--- libx_c.pre/net.h 1970-01-01 10:00:00.000000000 +1000
-+++ libx_c/net.h 2017-01-20 15:07:14.071375330 +1100
++++ libx_c/net.h 2017-01-22 18:45:57.000000000 +1100
@@ -0,0 +1,16 @@
+/* formerly duplicated in netinet/in.h and netns/ns.h */
+/* confuses cproto which thinks #define names are types or type modifiers */
+u_long ntohl(), htonl();
+/*#endif*/
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.pre/netinet/in.h libx_c/netinet/in.h
---- libx_c.pre/netinet/in.h 2017-01-20 15:07:14.059375297 +1100
-+++ libx_c/netinet/in.h 2017-01-20 15:07:14.071375330 +1100
+--- libx_c.pre/netinet/in.h 2017-01-22 19:31:08.962329268 +1100
++++ libx_c/netinet/in.h 2017-01-22 18:45:57.000000000 +1100
@@ -90,20 +90,21 @@
*/
#define IP_OPTIONS 1 /* set/get IP per-packet options */
#ifdef KERNEL
extern struct domain inetdomain;
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.pre/netinet/ip.h libx_c/netinet/ip.h
---- libx_c.pre/netinet/ip.h 2017-01-20 15:07:14.059375297 +1100
-+++ libx_c/netinet/ip.h 2017-01-20 15:07:14.071375330 +1100
+--- libx_c.pre/netinet/ip.h 2017-01-22 19:31:08.962329268 +1100
++++ libx_c/netinet/ip.h 2017-01-22 18:45:57.000000000 +1100
@@ -81,7 +81,7 @@
struct in_addr ipt_addr;
n_long ipt_time;
/* flag bits for ipt_flg */
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.pre/netinet/tcp.h libx_c/netinet/tcp.h
---- libx_c.pre/netinet/tcp.h 2017-01-20 15:07:14.059375297 +1100
-+++ libx_c/netinet/tcp.h 2017-01-20 15:07:14.075375340 +1100
+--- libx_c.pre/netinet/tcp.h 2017-01-22 19:31:08.962329268 +1100
++++ libx_c/netinet/tcp.h 2017-01-22 18:45:57.000000000 +1100
@@ -44,7 +44,9 @@
#ifdef lint
#define TCP_MSS 536
/*
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.pre/netns/ns.h libx_c/netns/ns.h
---- libx_c.pre/netns/ns.h 2017-01-20 15:07:14.063375308 +1100
-+++ libx_c/netns/ns.h 2017-01-20 15:07:14.075375340 +1100
+--- libx_c.pre/netns/ns.h 2017-01-22 19:31:08.962329268 +1100
++++ libx_c/netns/ns.h 2017-01-22 18:45:57.000000000 +1100
@@ -103,20 +103,21 @@
#define ns_nullhost(x) (((x).x_host.s_host[0]==0) && \
((x).x_host.s_host[1]==0) && ((x).x_host.s_host[2]==0))
#ifdef KERNEL
extern struct domain nsdomain;
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.pre/nlist.h libx_c/nlist.h
---- libx_c.pre/nlist.h 2017-01-20 15:07:14.059375297 +1100
+--- libx_c.pre/nlist.h 2017-01-22 19:31:08.954329226 +1100
+++ libx_c/nlist.h 1970-01-01 10:00:00.000000000 +1000
@@ -1,46 +0,0 @@
-/*
- */
-#define N_FORMAT "%08x"
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.pre/ns/ns_addr.c libx_c/ns/ns_addr.c
---- libx_c.pre/ns/ns_addr.c 2017-01-20 15:07:14.059375297 +1100
-+++ libx_c/ns/ns_addr.c 2017-01-20 15:07:14.075375340 +1100
-@@ -54,7 +54,7 @@
+--- libx_c.pre/ns/ns_addr.c 2017-01-22 19:31:08.954329226 +1100
++++ libx_c/ns/ns_addr.c 2017-01-22 18:45:57.000000000 +1100
+@@ -55,7 +55,7 @@
socketname = index(hostname, separator);
if (socketname) {
*socketname++ = 0;
}
Field(hostname, addr.x_host.c_host, 6);
-@@ -62,7 +62,7 @@
+@@ -63,7 +63,7 @@
return (addr);
}
char *buf;
u_char *out;
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.pre/stdio/doprnt.c libx_c/stdio/doprnt.c
---- libx_c.pre/stdio/doprnt.c 2017-01-20 15:07:14.059375297 +1100
-+++ libx_c/stdio/doprnt.c 2017-01-20 15:07:14.075375340 +1100
-@@ -271,9 +271,10 @@
+--- libx_c.pre/stdio/doprnt.c 2017-01-22 19:31:08.958329247 +1100
++++ libx_c/stdio/doprnt.c 2017-01-22 18:45:57.000000000 +1100
+@@ -272,9 +272,10 @@
* NUL in the first `prec' characters, and
* strlen() will go further.
*/
if (size > prec)
size = prec;
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.pre/stdio/doscan.c libx_c/stdio/doscan.c
---- libx_c.pre/stdio/doscan.c 2017-01-20 15:07:14.059375297 +1100
-+++ libx_c/stdio/doscan.c 2017-01-20 15:07:14.075375340 +1100
+--- libx_c.pre/stdio/doscan.c 2017-01-22 19:31:08.958329247 +1100
++++ libx_c/stdio/doscan.c 2017-01-22 18:52:36.000000000 +1100
@@ -3,7 +3,8 @@
- #endif
+ #endif LIBC_SCCS and not lint
#include <stdio.h>
-#include <ctype.h>
#define SPC 01
#define STP 02
-@@ -30,10 +31,10 @@
+@@ -30,11 +31,11 @@
_doscan(iop, fmt, argp)
FILE *iop;
register char *fmt;
--register int **argp; {
-+register va_list argp; {
+-register int **argp;
++register va_list argp;
+ {
register int ch;
int nmatch, len, ch1;
- int **ptr, fileended, size;
nmatch = 0;
fileended = 0;
-@@ -45,7 +46,7 @@
+@@ -46,7 +47,7 @@
goto def;
ptr = 0;
if (ch != '*')
else
ch = *fmt++;
len = 0;
-@@ -99,7 +100,7 @@
+@@ -100,7 +101,7 @@
static
_innum(ptr, type, len, size, iop, eofptr)
-int **ptr, *eofptr;
+int *ptr, *eofptr;
- FILE *iop; {
+ FILE *iop;
+ {
extern double atof();
- register char *np;
-@@ -109,7 +110,7 @@
+@@ -111,7 +112,7 @@
long lcval;
if (type=='c' || type=='s' || type=='[')
lcval = 0;
ndigit = 0;
scale = INT;
-@@ -183,23 +184,23 @@
+@@ -185,23 +186,23 @@
case (FLOAT<<4) | SHORT:
case (FLOAT<<4) | REGULAR:
}
return(1);
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.pre/stdio/findiop.c libx_c/stdio/findiop.c
---- libx_c.pre/stdio/findiop.c 2017-01-20 15:07:14.059375297 +1100
-+++ libx_c/stdio/findiop.c 2017-01-20 15:07:14.075375340 +1100
+--- libx_c.pre/stdio/findiop.c 2017-01-22 19:31:08.958329247 +1100
++++ libx_c/stdio/findiop.c 2017-01-22 18:53:10.000000000 +1100
@@ -23,7 +23,7 @@
{ 0, NULL, NULL, 0, _IOWRT|_IONBF, 2 }, /* stderr */
};
static char sbuf[NSTATIC];
char *_smallbuf = sbuf;
-@@ -85,10 +85,11 @@
+@@ -87,10 +87,11 @@
for (fp = _iob, iov = iobglue; fp < &_iob[NSTATIC]; /* void */)
*iov++ = fp++;
}
+void
- f_prealloc() {
+ f_prealloc()
+ {
register FILE **iov;
- register FILE *fp;
-@@ -101,6 +102,7 @@
+@@ -104,6 +105,7 @@
*iov = (FILE *)calloc(1, sizeof **iov);
}
+void
_fwalk(function)
- register int (*function)(); {
- register FILE **iov;
-@@ -117,6 +119,7 @@
+ register int (*function)();
+ {
+@@ -121,6 +123,7 @@
}
}
+void
- _cleanup() {
+ _cleanup()
+ {
extern int fclose();
-
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.pre/stdio/fprintf.c libx_c/stdio/fprintf.c
---- libx_c.pre/stdio/fprintf.c 2017-01-20 15:07:14.059375297 +1100
-+++ libx_c/stdio/fprintf.c 2017-01-20 15:07:14.075375340 +1100
-@@ -1,31 +1,48 @@
+--- libx_c.pre/stdio/fprintf.c 2017-01-22 19:31:08.958329247 +1100
++++ libx_c/stdio/fprintf.c 2017-01-22 18:53:19.000000000 +1100
+@@ -1,32 +1,49 @@
/*
* Copyright (c) 1980 Regents of the University of California.
- * All rights reserved. The Berkeley software License Agreement
#if defined(LIBC_SCCS) && !defined(lint)
-static char sccsid[] = "@(#)fprintf.c 5.2 (Berkeley) 3/9/86";
+static char sccsid[] = "@(#)fprintf.c 5.4 (Berkeley) 6/27/88";
- #endif
+ #endif LIBC_SCCS and not lint
-#include <stdio.h>
+#include <stdio.h>
-fprintf(iop, fmt, args)
-register FILE *iop;
--char *fmt; {
+-char *fmt;
+fprintf(iop, fmt, va_alist)
+ register FILE *iop;
+ char *fmt;
-+ va_dcl {
++ va_dcl
+ {
+ va_list argp;
+ int len;
char localbuf[BUFSIZ];
+ return(ferror(iop) ? EOF : len);
}
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.pre/stdio/fread.c libx_c/stdio/fread.c
---- libx_c.pre/stdio/fread.c 2017-01-20 15:07:14.059375297 +1100
-+++ libx_c/stdio/fread.c 2017-01-20 15:07:14.075375340 +1100
-@@ -10,10 +10,11 @@
+--- libx_c.pre/stdio/fread.c 2017-01-22 19:31:08.958329247 +1100
++++ libx_c/stdio/fread.c 2017-01-22 18:52:42.000000000 +1100
+@@ -10,11 +10,12 @@
#include <stdio.h>
+fread(_ptr, size, count, iop)
+ void *_ptr;
unsigned size, count;
- register FILE *iop; {
+ register FILE *iop;
+ {
+#define ptr (*(char **)&_ptr)
register int s;
int c;
-@@ -42,4 +43,5 @@
+@@ -43,4 +44,5 @@
}
}
return (size != 0 ? count - ((s + size - 1) / size) : 0);
+#undef ptr
}
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.pre/stdio/fwrite.c libx_c/stdio/fwrite.c
---- libx_c.pre/stdio/fwrite.c 2017-01-20 15:07:14.059375297 +1100
-+++ libx_c/stdio/fwrite.c 2017-01-20 15:07:14.075375340 +1100
-@@ -10,10 +10,11 @@
+--- libx_c.pre/stdio/fwrite.c 2017-01-22 19:31:08.958329247 +1100
++++ libx_c/stdio/fwrite.c 2017-01-22 18:51:55.000000000 +1100
+@@ -10,11 +10,12 @@
#include <stdio.h>
+fwrite(_ptr, size, count, iop)
+ void *_ptr;
unsigned size, count;
- register FILE *iop; {
+ register FILE *iop;
+ {
+#define ptr (*(char **)&_ptr)
register int s;
s = size * count;
-@@ -45,4 +46,5 @@
+@@ -46,4 +47,5 @@
}
}
return (size != 0 ? count - ((s + size - 1) / size) : 0);
}
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.pre/stdio/popen.c libx_c/stdio/popen.c
--- libx_c.pre/stdio/popen.c 1970-01-01 10:00:00.000000000 +1000
-+++ libx_c/stdio/popen.c 2017-01-20 15:07:14.075375340 +1100
++++ libx_c/stdio/popen.c 2017-01-22 18:45:57.000000000 +1100
@@ -0,0 +1,77 @@
+/*
+ * Copyright (c) 1980 Regents of the University of California.
+ return (pid == -1 ? -1 : status);
+}
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.pre/stdio/printf.c libx_c/stdio/printf.c
---- libx_c.pre/stdio/printf.c 2017-01-20 15:07:14.059375297 +1100
-+++ libx_c/stdio/printf.c 2017-01-20 15:07:14.075375340 +1100
-@@ -1,11 +1,35 @@
+--- libx_c.pre/stdio/printf.c 2017-01-22 19:31:08.958329247 +1100
++++ libx_c/stdio/printf.c 2017-01-22 18:52:03.000000000 +1100
+@@ -1,12 +1,36 @@
+/*
+ * Copyright (c) 1987 Regents of the University of California.
+ * All rights reserved.
#if defined(LIBC_SCCS) && !defined(lint)
-static char sccsid[] = "@(#)printf.c 5.2 (Berkeley) 3/9/86";
+static char sccsid[] = "@(#)printf.c 5.4 (Berkeley) 6/27/88";
- #endif
+ #endif LIBC_SCCS and not lint
-#include <stdio.h>
+#include <stdio.h>
+#include <varargs.h>
-+
-+printf(fmt, va_alist)
-+ char *fmt;
-+ va_dcl {
-+ va_list argp;
-+ int len;
-printf(fmt, args)
--char *fmt; {
+-char *fmt;
++printf(fmt, va_alist)
++ char *fmt;
++ va_dcl
+ {
- _doprnt(fmt, &args, stdout);
- return(ferror(stdout)? EOF: 0);
++ va_list argp;
++ int len;
++
+ va_start(argp);
+ len = _doprnt(fmt, argp, stdout);
+ va_end(argp);
+ return(ferror(stdout) ? EOF : len);
}
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.pre/stdio/scanf.c libx_c/stdio/scanf.c
---- libx_c.pre/stdio/scanf.c 2017-01-20 15:07:14.059375297 +1100
-+++ libx_c/stdio/scanf.c 2017-01-20 15:07:14.075375340 +1100
-@@ -2,29 +2,50 @@
+--- libx_c.pre/stdio/scanf.c 2017-01-22 19:31:08.958329247 +1100
++++ libx_c/stdio/scanf.c 2017-01-22 18:51:44.000000000 +1100
+@@ -2,32 +2,53 @@
static char sccsid[] = "@(#)scanf.c 5.2 (Berkeley) 3/9/86";
- #endif
+ #endif LIBC_SCCS and not lint
-#include <stdio.h>
+#include <stdio.h>
+#include <varargs.h>
-scanf(fmt, args)
--char *fmt; {
-- return(_doscan(stdin, fmt, &args));
+scanf(fmt, va_alist)
-+char *fmt;
-+va_dcl {
+ char *fmt;
++va_dcl
+ {
+- return(_doscan(stdin, fmt, &args));
+ va_list argp;
+ int len;
+
-fscanf(iop, fmt, args)
+fscanf(iop, fmt, va_alist)
FILE *iop;
--char *fmt; {
+ char *fmt;
++va_dcl
+ {
- return(_doscan(iop, fmt, &args));
-+char *fmt;
-+va_dcl {
+ va_list argp;
+ int len;
+
-sscanf(str, fmt, args)
+sscanf(str, fmt, va_alist)
register char *str;
--char *fmt; {
-+char *fmt;
-+va_dcl {
+ char *fmt;
++va_dcl
+ {
FILE _strbuf;
+ va_list argp;
+ int len;
+ return len;
}
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.pre/stdio/setbuffer.c libx_c/stdio/setbuffer.c
---- libx_c.pre/stdio/setbuffer.c 2017-01-20 15:07:14.059375297 +1100
-+++ libx_c/stdio/setbuffer.c 2017-01-20 15:07:14.075375340 +1100
-@@ -33,11 +33,11 @@
- setlinebuf(iop)
- register FILE *iop; {
+--- libx_c.pre/stdio/setbuffer.c 2017-01-22 19:31:08.958329247 +1100
++++ libx_c/stdio/setbuffer.c 2017-01-22 18:45:57.000000000 +1100
+@@ -35,11 +35,11 @@
+ register FILE *iop;
+ {
char *buf;
- extern char *malloc();
+ extern void *malloc();
setbuffer(iop, buf, BUFSIZ);
iop->_flag |= _IOLBF|_IOMYBUF;
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.pre/stdio/sprintf.c libx_c/stdio/sprintf.c
---- libx_c.pre/stdio/sprintf.c 2017-01-20 15:07:14.059375297 +1100
-+++ libx_c/stdio/sprintf.c 2017-01-20 15:07:14.075375340 +1100
-@@ -1,17 +1,40 @@
+--- libx_c.pre/stdio/sprintf.c 2017-01-22 19:31:08.958329247 +1100
++++ libx_c/stdio/sprintf.c 2017-01-22 18:53:27.000000000 +1100
+@@ -1,18 +1,41 @@
+/*
+ * Copyright (c) 1987 Regents of the University of California.
+ * All rights reserved.
#if defined(LIBC_SCCS) && !defined(lint)
-static char sccsid[] = "@(#)sprintf.c 5.2 (Berkeley) 3/9/86";
+static char sccsid[] = "@(#)sprintf.c 5.5 (Berkeley) 6/27/88";
- #endif
+ #endif LIBC_SCCS and not lint
-#include <stdio.h>
+#include <stdio.h>
+#include <varargs.h>
-char *sprintf(str, fmt, args)
--char *str, *fmt; {
+-char *str, *fmt;
+sprintf(str, fmt, va_alist)
+ char *str, *fmt;
-+ va_dcl {
++ va_dcl
+ {
+ va_list argp;
FILE _strbuf;
+ int len;
}
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.pre/stdio/vfprintf.c libx_c/stdio/vfprintf.c
--- libx_c.pre/stdio/vfprintf.c 1970-01-01 10:00:00.000000000 +1000
-+++ libx_c/stdio/vfprintf.c 2017-01-20 15:07:14.075375340 +1100
++++ libx_c/stdio/vfprintf.c 2017-01-22 18:45:57.000000000 +1100
@@ -0,0 +1,46 @@
+/*
+ * Copyright (c) 1988 Regents of the University of California.
+}
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.pre/stdio/vprintf.c libx_c/stdio/vprintf.c
--- libx_c.pre/stdio/vprintf.c 1970-01-01 10:00:00.000000000 +1000
-+++ libx_c/stdio/vprintf.c 2017-01-20 15:07:14.075375340 +1100
++++ libx_c/stdio/vprintf.c 2017-01-22 18:45:57.000000000 +1100
@@ -0,0 +1,33 @@
+/*
+ * Copyright (c) 1988 Regents of the University of California.
+}
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.pre/stdio/vsprintf.c libx_c/stdio/vsprintf.c
--- libx_c.pre/stdio/vsprintf.c 1970-01-01 10:00:00.000000000 +1000
-+++ libx_c/stdio/vsprintf.c 2017-01-20 15:07:14.075375340 +1100
++++ libx_c/stdio/vsprintf.c 2017-01-22 18:45:57.000000000 +1100
@@ -0,0 +1,38 @@
+/*
+ * Copyright (c) 1988 Regents of the University of California.
+ return (len);
+}
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.pre/stdio.h libx_c/stdio.h
---- libx_c.pre/stdio.h 2017-01-20 15:07:14.059375297 +1100
-+++ libx_c/stdio.h 2017-01-20 15:07:14.075375340 +1100
+--- libx_c.pre/stdio.h 2017-01-22 19:31:08.954329226 +1100
++++ libx_c/stdio.h 2017-01-22 18:45:57.000000000 +1100
@@ -59,7 +59,7 @@
long ftell();
char *fgets();
#endif
# endif
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.pre/sys/dir.h libx_c/sys/dir.h
---- libx_c.pre/sys/dir.h 2017-01-20 15:07:14.063375308 +1100
-+++ libx_c/sys/dir.h 2017-01-20 15:07:14.075375340 +1100
+--- libx_c.pre/sys/dir.h 2017-01-22 19:31:08.962329268 +1100
++++ libx_c/sys/dir.h 2017-01-22 18:45:57.000000000 +1100
@@ -32,9 +32,9 @@
* dp->d_ino set to 0.
*/
#define MAXNAMLEN 255
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.pre/sys/errno.h libx_c/sys/errno.h
---- libx_c.pre/sys/errno.h 2017-01-20 15:07:14.063375308 +1100
-+++ libx_c/sys/errno.h 2017-01-20 15:07:14.075375340 +1100
+--- libx_c.pre/sys/errno.h 2017-01-22 19:31:08.962329268 +1100
++++ libx_c/sys/errno.h 2017-01-22 18:45:57.000000000 +1100
@@ -96,3 +96,7 @@
#define EPROCLIM 67 /* Too many processes */
#define EUSERS 68 /* Too many users */
+extern int errno;
+#endif
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.pre/sys/execl.c libx_c/sys/execl.c
---- libx_c.pre/sys/execl.c 2017-01-20 15:07:14.063375308 +1100
-+++ libx_c/sys/execl.c 2017-01-20 15:07:14.075375340 +1100
+--- libx_c.pre/sys/execl.c 2017-01-22 19:31:08.958329247 +1100
++++ libx_c/sys/execl.c 2017-01-22 18:45:57.000000000 +1100
@@ -1,4 +1,5 @@
-void execl(f, a) char *f, *a; {
+#include <varargs.h>
abort();
}
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.pre/sys/execle.c libx_c/sys/execle.c
---- libx_c.pre/sys/execle.c 2017-01-20 15:07:14.063375308 +1100
-+++ libx_c/sys/execle.c 2017-01-20 15:07:14.075375340 +1100
+--- libx_c.pre/sys/execle.c 2017-01-22 19:31:08.958329247 +1100
++++ libx_c/sys/execle.c 2017-01-22 18:45:57.000000000 +1100
@@ -1,4 +1,5 @@
-void execle(f, a) char *f, *a; {
+#include <varargs.h>
}
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.pre/sys/isatty.c libx_c/sys/isatty.c
--- libx_c.pre/sys/isatty.c 1970-01-01 10:00:00.000000000 +1000
-+++ libx_c/sys/isatty.c 2017-01-20 15:07:14.075375340 +1100
++++ libx_c/sys/isatty.c 2017-01-22 18:45:57.000000000 +1100
@@ -0,0 +1,17 @@
+#if defined(LIBC_SCCS) && !defined(lint)
+static char sccsid[] = "@(#)isatty.c 5.2 (Berkeley) 3/9/86";
+ return(1);
+}
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.pre/sys/open.c libx_c/sys/open.c
---- libx_c.pre/sys/open.c 2017-01-20 15:07:14.063375308 +1100
-+++ libx_c/sys/open.c 2017-01-20 15:07:14.075375340 +1100
+--- libx_c.pre/sys/open.c 2017-01-22 19:31:08.958329247 +1100
++++ libx_c/sys/open.c 2017-01-22 18:45:57.000000000 +1100
@@ -1,4 +1,9 @@
int open(f, m, va_alist) char *f; va_dcl {
- write(2, "open()\n", 7);
+ return res;
}
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.pre/sys/param.h libx_c/sys/param.h
---- libx_c.pre/sys/param.h 2017-01-20 15:07:14.063375308 +1100
-+++ libx_c/sys/param.h 2017-01-20 15:07:14.075375340 +1100
+--- libx_c.pre/sys/param.h 2017-01-22 19:31:08.962329268 +1100
++++ libx_c/sys/param.h 2017-01-22 18:45:57.000000000 +1100
@@ -53,15 +53,16 @@
/*
* Signals
+/* moved this from sys/types.h */
+#define NBBY 8 /* number of bits in a byte */
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.pre/sys/proc.h libx_c/sys/proc.h
---- libx_c.pre/sys/proc.h 2017-01-20 15:07:14.063375308 +1100
-+++ libx_c/sys/proc.h 2017-01-20 15:07:14.075375340 +1100
+--- libx_c.pre/sys/proc.h 2017-01-22 19:31:08.958329247 +1100
++++ libx_c/sys/proc.h 2017-01-22 18:45:57.000000000 +1100
@@ -117,3 +117,8 @@
#define SSEL 0x0400000 /* selecting; wakeup/waiting danger */
#define SLOGIN 0x0800000 /* a login process (legit child of init) */
+ ((p)->p_sig &~ ((p)->p_sigignore | (p)->p_sigmask))) && issig())
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.pre/sys/select.h libx_c/sys/select.h
--- libx_c.pre/sys/select.h 1970-01-01 10:00:00.000000000 +1000
-+++ libx_c/sys/select.h 2017-01-20 15:07:14.075375340 +1100
++++ libx_c/sys/select.h 2017-01-22 18:45:57.000000000 +1100
@@ -0,0 +1,28 @@
+#include <sys/param.h>
+
+#define FD_ISSET(n, p) ((p)->fds_bits[(n)/NFDBITS] & (1 << ((n) % NFDBITS)))
+#define FD_ZERO(p) bzero((char *)(p), sizeof(*(p)))
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.pre/sys/signal.h libx_c/sys/signal.h
---- libx_c.pre/sys/signal.h 2017-01-20 15:07:14.063375308 +1100
-+++ libx_c/sys/signal.h 2017-01-20 15:07:14.075375340 +1100
+--- libx_c.pre/sys/signal.h 2017-01-22 19:31:08.962329268 +1100
++++ libx_c/sys/signal.h 2017-01-22 18:45:57.000000000 +1100
@@ -57,14 +57,14 @@
#define SIGUSR2 31 /* user defined signal 2 */
#endif
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.pre/sys/tty.h libx_c/sys/tty.h
---- libx_c.pre/sys/tty.h 2017-01-20 15:07:14.063375308 +1100
-+++ libx_c/sys/tty.h 2017-01-20 15:07:14.075375340 +1100
+--- libx_c.pre/sys/tty.h 2017-01-22 19:31:08.958329247 +1100
++++ libx_c/sys/tty.h 2017-01-22 18:45:57.000000000 +1100
@@ -70,20 +70,22 @@
struct ttychars t_chars; /* tty */
struct winsize t_winsize; /* window size */
#define TTIPRI 28
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.pre/sys/types.h libx_c/sys/types.h
---- libx_c.pre/sys/types.h 2017-01-20 15:07:14.063375308 +1100
-+++ libx_c/sys/types.h 2017-01-20 15:07:14.075375340 +1100
+--- libx_c.pre/sys/types.h 2017-01-22 19:31:08.962329268 +1100
++++ libx_c/sys/types.h 2017-01-22 18:45:57.000000000 +1100
@@ -35,7 +35,7 @@
#endif
typedef struct _quad { long val[2]; } quad;
#endif
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.pre/sys/vfork.c libx_c/sys/vfork.c
--- libx_c.pre/sys/vfork.c 1970-01-01 10:00:00.000000000 +1000
-+++ libx_c/sys/vfork.c 2017-01-20 15:07:14.075375340 +1100
++++ libx_c/sys/vfork.c 2017-01-22 18:45:57.000000000 +1100
@@ -0,0 +1,3 @@
+int vfork() {
+ abort();
+}
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.pre/sys/vmmac.h libx_c/sys/vmmac.h
---- libx_c.pre/sys/vmmac.h 2017-01-20 15:07:14.063375308 +1100
-+++ libx_c/sys/vmmac.h 2017-01-20 15:07:14.075375340 +1100
+--- libx_c.pre/sys/vmmac.h 2017-01-22 19:31:08.962329268 +1100
++++ libx_c/sys/vmmac.h 2017-01-22 18:45:57.000000000 +1100
@@ -157,3 +157,10 @@
} \
c->c_lock = 0; \
+ (*(int *)(pte) = (pfnum) | (prot), mtpr(TBIS, ptob(v)))
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.pre/sys/vopen.c libx_c/sys/vopen.c
--- libx_c.pre/sys/vopen.c 1970-01-01 10:00:00.000000000 +1000
-+++ libx_c/sys/vopen.c 2017-01-20 15:07:14.075375340 +1100
-@@ -0,0 +1,4 @@
++++ libx_c/sys/vopen.c 2017-01-22 19:11:32.000000000 +1100
+@@ -0,0 +1,5 @@
++#include <sys/file.h>
++#include <varargs.h>
+int vopen(f, m, argp) char *f; va_list argp; {
-+ write(2, "vopen()\n", 8);
-+ abort();
++ return open(f, m, m & O_CREAT ? va_arg(argp, int) : 0);
+}
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.pre/vax/vmparam.h libx_c/vax/vmparam.h
---- libx_c.pre/vax/vmparam.h 2017-01-20 15:07:14.063375308 +1100
-+++ libx_c/vax/vmparam.h 2017-01-20 15:07:14.075375340 +1100
+--- libx_c.pre/vax/vmparam.h 2017-01-22 19:31:08.962329268 +1100
++++ libx_c/vax/vmparam.h 2017-01-22 18:45:57.000000000 +1100
@@ -156,5 +156,6 @@
/*
* BEWARE THIS DEFINITION WORKS ONLY WITH COUNT OF 1