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.post/compat-4.1/Makefile libx_c/compat-4.1/Makefile
---- libx_c.post/compat-4.1/Makefile 2017-01-21 22:50:06.040114532 +1100
-+++ libx_c/compat-4.1/Makefile 2017-01-21 22:50:06.076114575 +1100
+--- libx_c.post/compat-4.1/Makefile 2017-01-22 12:38:06.433558187 +1100
++++ libx_c/compat-4.1/Makefile 2017-01-22 12:38:06.465558365 +1100
@@ -1,3 +1,5 @@
+ROOT=../../..
+CC=FAKEROOT=${ROOT}/cross ${ROOT}/cross/bin/cc -Dvax
-
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.post/compat-sys5/Makefile libx_c/compat-sys5/Makefile
---- libx_c.post/compat-sys5/Makefile 2017-01-21 22:50:06.064114562 +1100
-+++ libx_c/compat-sys5/Makefile 2017-01-21 22:50:06.076114575 +1100
+--- libx_c.post/compat-sys5/Makefile 2017-01-22 12:38:06.457558320 +1100
++++ libx_c/compat-sys5/Makefile 2017-01-22 12:38:06.465558365 +1100
@@ -1,3 +1,5 @@
+ROOT=../../..
+CC=FAKEROOT=${ROOT}/cross ${ROOT}/cross/bin/cc -Dvax
-# IF YOU PUT STUFF HERE IT WILL GO AWAY
-# see make depend above
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.post/gen/bcopy.c libx_c/gen/bcopy.c
---- libx_c.post/gen/bcopy.c 2017-01-21 22:50:06.068114566 +1100
-+++ libx_c/gen/bcopy.c 2017-01-21 22:50:06.076114575 +1100
+--- libx_c.post/gen/bcopy.c 2017-01-22 12:38:06.457558320 +1100
++++ libx_c/gen/bcopy.c 2017-01-22 12:38:06.465558365 +1100
@@ -1,6 +1,12 @@
- #include <gen.h>
+ #include <strings.h>
#include <sys/types.h>
-+#ifdef X_
-+#define INT intptr_t
++#ifdef __STDC__
++#include <stdint.h>
+#else
-+#define INT int
++typedef int intptr_t;
+#endif
+
/*
- if ((u_int)dst < (u_int)src)
- if (((int)src | (int)dst | length) & 3)
+ if (/*(u_int)*/dst < /*(u_int)*/src)
-+ if (((INT)src | (INT)dst | length) & 3)
++ if (((intptr_t)src | (intptr_t)dst | length) & 3)
do /* copy by bytes */
*dst++ = *src++;
while (--length);
src += length;
dst += length;
- if (((int)src | (int)dst | length) & 3)
-+ if (((INT)src | (INT)dst | length) & 3)
++ if (((intptr_t)src | (intptr_t)dst | length) & 3)
do /* copy by bytes */
*--dst = *--src;
while (--length);
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.post/gen/getpass.c libx_c/gen/getpass.c
---- libx_c.post/gen/getpass.c 2017-01-21 22:50:06.068114566 +1100
-+++ libx_c/gen/getpass.c 2017-01-21 22:50:06.076114575 +1100
+--- libx_c.post/gen/getpass.c 2017-01-22 12:38:06.461558343 +1100
++++ libx_c/gen/getpass.c 2017-01-22 12:38:06.465558365 +1100
@@ -20,7 +20,7 @@
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.post/gen/getpwnamuid.c libx_c/gen/getpwnamuid.c
---- libx_c.post/gen/getpwnamuid.c 2017-01-21 22:50:06.068114566 +1100
-+++ libx_c/gen/getpwnamuid.c 2017-01-21 22:50:06.076114575 +1100
-@@ -44,19 +44,37 @@
+--- libx_c.post/gen/getpwnamuid.c 2017-01-22 12:38:06.457558320 +1100
++++ libx_c/gen/getpwnamuid.c 2017-01-22 12:38:06.465558365 +1100
+@@ -43,19 +43,37 @@
cp = key.dptr;
tp = line;
}
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.post/gen/Makefile libx_c/gen/Makefile
---- libx_c.post/gen/Makefile 2017-01-21 22:50:06.068114566 +1100
-+++ libx_c/gen/Makefile 2017-01-21 22:50:06.076114575 +1100
+--- libx_c.post/gen/Makefile 2017-01-22 12:38:06.461558343 +1100
++++ libx_c/gen/Makefile 2017-01-22 12:38:06.465558365 +1100
@@ -1,3 +1,5 @@
+ROOT=../../..
+CC=FAKEROOT=${ROOT}/cross ${ROOT}/cross/bin/cc -Dvax
-# IF YOU PUT STUFF HERE IT WILL GO AWAY
-# see make depend above
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.post/gen/malloc.c libx_c/gen/malloc.c
---- libx_c.post/gen/malloc.c 2017-01-21 22:50:06.068114566 +1100
-+++ libx_c/gen/malloc.c 2017-01-21 22:50:06.076114575 +1100
-@@ -4,6 +4,12 @@
+--- libx_c.post/gen/malloc.c 2017-01-22 12:38:06.461558343 +1100
++++ libx_c/gen/malloc.c 2017-01-22 12:38:06.469558387 +1100
+@@ -5,6 +5,12 @@
#include <sys/proc.h>
#include <sys/types.h>
-+#ifdef X_
-+#define INT intptr_t
++#ifdef __STDC__
++#include <stdint.h>
+#else
-+#define INT int
++typedef int intptr_t;
+#endif
+
/*
* Copyright (c) 1983 Regents of the University of California.
* All rights reserved. The Berkeley software License Agreement
-@@ -88,9 +94,6 @@
+@@ -89,9 +95,6 @@
#if defined(DEBUG) || defined(RCHECK)
#define ASSERT(p) if (!(p)) botch("p")
/*#include <stdio.h>*/
static void botch(s) char *s; {
fprintf(stderr, "\r\nassertion botched: %s\r\n", s);
(void) fflush(stderr); /* just in case user buffered it */
-@@ -100,6 +103,8 @@
+@@ -101,6 +104,8 @@
#define ASSERT(p)
#endif
void *malloc(nbytes) unsigned nbytes; {
register union overhead *op;
register int bucket;
-@@ -112,7 +117,7 @@
+@@ -113,7 +118,7 @@
if (pagesz == 0) {
pagesz = n = getpagesize();
op = (union overhead *)sbrk(0);
- n = n - sizeof (*op) - ((int)op & (n - 1));
-+ n = n - sizeof (*op) - ((INT)op & (n - 1));
++ n = n - sizeof (*op) - ((intptr_t)op & (n - 1));
if (n < 0)
n += pagesz;
if (n) {
-@@ -140,7 +145,7 @@
+@@ -141,7 +146,7 @@
amt = 16; /* size of first bucket */
bucket = 1;
#endif
- n = -(sizeof (*op) + RSLOP);
-+ n = -(INT)(sizeof (*op) + RSLOP);
++ n = -(intptr_t)(sizeof (*op) + RSLOP);
} else {
amt = pagesz;
bucket = pagebucket;
-@@ -208,7 +213,7 @@
+@@ -209,7 +214,7 @@
}
op = (union overhead *)sbrk(amt);
/* no more room! */
- if ((int)op == -1)
-+ if ((INT)op == -1)
++ if ((intptr_t)op == -1)
return;
/*
* Add new memory allocated to that on
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.post/gen/ndbm.c libx_c/gen/ndbm.c
---- libx_c.post/gen/ndbm.c 2017-01-21 22:50:06.068114566 +1100
-+++ libx_c/gen/ndbm.c 2017-01-21 22:50:06.076114575 +1100
+--- libx_c.post/gen/ndbm.c 2017-01-22 12:38:06.457558320 +1100
++++ libx_c/gen/ndbm.c 2017-01-22 12:38:06.469558387 +1100
@@ -70,14 +70,14 @@
flags = (flags & ~03) | O_RDWR;
strcpy(db->dbm_pagbuf, file);
va_end(argp);
if (db->dbm_dirf < 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.post/gen/qsort.c libx_c/gen/qsort.c
---- libx_c.post/gen/qsort.c 2017-01-21 22:50:06.068114566 +1100
-+++ libx_c/gen/qsort.c 2017-01-21 22:50:06.076114575 +1100
+--- libx_c.post/gen/qsort.c 2017-01-22 12:38:06.461558343 +1100
++++ libx_c/gen/qsort.c 2017-01-22 12:38:06.469558387 +1100
@@ -36,7 +36,7 @@
static void qst __P((char *base, char *max));
register char c, *i, *j, *lo, *hi;
char *min, *max;
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.post/gen/scandir.c libx_c/gen/scandir.c
---- libx_c.post/gen/scandir.c 2017-01-21 22:50:06.068114566 +1100
-+++ libx_c/gen/scandir.c 2017-01-21 22:50:06.076114575 +1100
+--- libx_c.post/gen/scandir.c 2017-01-22 12:38:06.457558320 +1100
++++ libx_c/gen/scandir.c 2017-01-22 12:38:06.469558387 +1100
@@ -24,7 +24,7 @@
/*#include <sys/stat.h>*/
/*#include <sys/dir.h>*/
return(nitems);
}
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.post/gen/signal.c libx_c/gen/signal.c
---- libx_c.post/gen/signal.c 2017-01-21 22:50:06.068114566 +1100
-+++ libx_c/gen/signal.c 2017-01-21 22:50:06.076114575 +1100
+--- libx_c.post/gen/signal.c 2017-01-22 12:38:06.457558320 +1100
++++ libx_c/gen/signal.c 2017-01-22 12:38:06.469558387 +1100
@@ -15,12 +15,12 @@
*/
/*#include <signal.h>*/
+ return ((void (*) __P((int sig)))osv.sv_handler);
}
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.post/gen/sleep.c libx_c/gen/sleep.c
---- libx_c.post/gen/sleep.c 2017-01-21 22:50:06.068114566 +1100
-+++ libx_c/gen/sleep.c 2017-01-21 22:50:06.076114575 +1100
+--- libx_c.post/gen/sleep.c 2017-01-22 12:38:06.461558343 +1100
++++ libx_c/gen/sleep.c 2017-01-22 12:38:06.469558387 +1100
@@ -15,7 +15,7 @@
/*#include <signal.h>*/
static int ringring;
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.post/gen/system.c libx_c/gen/system.c
---- libx_c.post/gen/system.c 2017-01-21 22:50:06.068114566 +1100
-+++ libx_c/gen/system.c 2017-01-21 22:50:06.076114575 +1100
+--- libx_c.post/gen/system.c 2017-01-22 12:38:06.457558320 +1100
++++ libx_c/gen/system.c 2017-01-22 12:38:06.469558387 +1100
@@ -11,7 +11,7 @@
int system(s) char *s; {
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.post/gen/usleep.c libx_c/gen/usleep.c
---- libx_c.post/gen/usleep.c 2017-01-21 22:50:06.068114566 +1100
-+++ libx_c/gen/usleep.c 2017-01-21 22:50:06.076114575 +1100
+--- libx_c.post/gen/usleep.c 2017-01-22 12:38:06.457558320 +1100
++++ libx_c/gen/usleep.c 2017-01-22 12:38:06.469558387 +1100
@@ -18,7 +18,7 @@
#define TICK 10000 /* system clock resolution in microseconds */
static int ringring;
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.post/gen/valloc.c libx_c/gen/valloc.c
---- libx_c.post/gen/valloc.c 2017-01-21 22:50:06.068114566 +1100
-+++ libx_c/gen/valloc.c 2017-01-21 22:50:06.076114575 +1100
+--- libx_c.post/gen/valloc.c 2017-01-22 12:38:06.457558320 +1100
++++ libx_c/gen/valloc.c 2017-01-22 12:38:06.469558387 +1100
@@ -1,6 +1,12 @@
#include <gen.h>
#include <sys.h>
-+#ifdef X_
-+#define INT intptr_t
++#ifdef __STDC__
++#include <stdint.h>
+#else
-+#define INT int
++typedef int intptr_t;
+#endif
+
/*
void *valloc(i) int i; {
- int valsiz = getpagesize(), j;
+ int valsiz = getpagesize();
-+ INT j;
++ intptr_t j;
char *cp = malloc(i + (valsiz-1));
- j = ((int)cp + (valsiz-1)) &~ (valsiz-1);
-+ j = ((INT)cp + (valsiz-1)) &~ (valsiz-1);
++ j = ((intptr_t)cp + (valsiz-1)) &~ (valsiz-1);
return ((char *)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.post/gen.h libx_c/gen.h
---- libx_c.post/gen.h 2017-01-21 22:50:06.048114542 +1100
-+++ libx_c/gen.h 2017-01-21 22:50:06.080114580 +1100
-@@ -108,7 +108,7 @@
+--- libx_c.post/gen.h 2017-01-22 12:38:06.437558209 +1100
++++ libx_c/gen.h 2017-01-22 12:38:06.469558387 +1100
+@@ -99,7 +99,7 @@
char *mktemp __P((char *as));
/* gen/qsort.c */
/* gen/random.c */
int srandom __P((unsigned x));
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.post/inet/Makefile libx_c/inet/Makefile
---- libx_c.post/inet/Makefile 2017-01-21 22:50:06.044114538 +1100
-+++ libx_c/inet/Makefile 2017-01-21 22:50:06.080114580 +1100
+--- libx_c.post/inet/Makefile 2017-01-22 12:38:06.437558209 +1100
++++ libx_c/inet/Makefile 2017-01-22 12:38:06.469558387 +1100
@@ -1,3 +1,5 @@
+ROOT=../../..
+CC=FAKEROOT=${ROOT}/cross ${ROOT}/cross/bin/cc -Dvax
-# see make depend above
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.post/linux/csu/crt0.c libx_c/linux/csu/crt0.c
--- libx_c.post/linux/csu/crt0.c 1970-01-01 10:00:00.000000000 +1000
-+++ libx_c/linux/csu/crt0.c 2017-01-21 22:50:06.080114580 +1100
++++ libx_c/linux/csu/crt0.c 2017-01-22 12:38:06.469558387 +1100
@@ -0,0 +1,19 @@
+#include <stdio.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.post/linux/csu/Makefile libx_c/linux/csu/Makefile
--- libx_c.post/linux/csu/Makefile 1970-01-01 10:00:00.000000000 +1000
-+++ libx_c/linux/csu/Makefile 2017-01-21 22:50:06.080114580 +1100
++++ libx_c/linux/csu/Makefile 2017-01-22 12:38:06.469558387 +1100
@@ -0,0 +1,104 @@
+ROOT=../../../..
+CC=FAKEROOT=${ROOT}/cross ${ROOT}/cross/bin/cc -Dvax
+
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.post/linux/gen/abort.c libx_c/linux/gen/abort.c
--- libx_c.post/linux/gen/abort.c 1970-01-01 10:00:00.000000000 +1000
-+++ libx_c/linux/gen/abort.c 2017-01-21 22:50:06.080114580 +1100
++++ libx_c/linux/gen/abort.c 2017-01-22 12:38:06.469558387 +1100
@@ -0,0 +1,7 @@
+#include <nox_stdlib.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.post/linux/gen/Makefile libx_c/linux/gen/Makefile
--- libx_c.post/linux/gen/Makefile 1970-01-01 10:00:00.000000000 +1000
-+++ libx_c/linux/gen/Makefile 2017-01-21 22:50:06.080114580 +1100
++++ libx_c/linux/gen/Makefile 2017-01-22 12:38:06.469558387 +1100
@@ -0,0 +1,52 @@
+ROOT=../../../..
+CC=FAKEROOT=${ROOT}/cross ${ROOT}/cross/bin/cc -Dvax
+
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.post/linux/gen/modf.c libx_c/linux/gen/modf.c
--- libx_c.post/linux/gen/modf.c 1970-01-01 10:00:00.000000000 +1000
-+++ libx_c/linux/gen/modf.c 2017-01-21 22:50:06.080114580 +1100
++++ libx_c/linux/gen/modf.c 2017-01-22 12:38:06.469558387 +1100
@@ -0,0 +1,7 @@
+#include <nox_math.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.post/linux/Makefile libx_c/linux/Makefile
--- libx_c.post/linux/Makefile 1970-01-01 10:00:00.000000000 +1000
-+++ libx_c/linux/Makefile 2017-01-21 22:50:06.080114580 +1100
++++ libx_c/linux/Makefile 2017-01-22 12:38:06.469558387 +1100
@@ -0,0 +1,43 @@
+#
+# Copyright (c) 1980 Regents of the University of California.
+ (cd $$i; make ${MFLAGS} DEFS=${DEFS} depend); done
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.post/linux/sys/close.c libx_c/linux/sys/close.c
--- libx_c.post/linux/sys/close.c 1970-01-01 10:00:00.000000000 +1000
-+++ libx_c/linux/sys/close.c 2017-01-21 22:50:06.080114580 +1100
++++ libx_c/linux/sys/close.c 2017-01-22 12:38:06.469558387 +1100
@@ -0,0 +1,13 @@
+#include <nox_unistd.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.post/linux/sys/_exit.c libx_c/linux/sys/_exit.c
--- libx_c.post/linux/sys/_exit.c 1970-01-01 10:00:00.000000000 +1000
-+++ libx_c/linux/sys/_exit.c 2017-01-21 22:50:06.080114580 +1100
++++ libx_c/linux/sys/_exit.c 2017-01-22 12:38:06.469558387 +1100
@@ -0,0 +1,7 @@
+#include <nox_unistd.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.post/linux/sys/fstat.c libx_c/linux/sys/fstat.c
--- libx_c.post/linux/sys/fstat.c 1970-01-01 10:00:00.000000000 +1000
-+++ libx_c/linux/sys/fstat.c 2017-01-21 22:50:06.080114580 +1100
++++ libx_c/linux/sys/fstat.c 2017-01-22 12:38:06.469558387 +1100
@@ -0,0 +1,17 @@
+#include <sys/nox_stat.h>
+#include <nox_unistd.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.post/linux/sys/getpagesize.c libx_c/linux/sys/getpagesize.c
--- libx_c.post/linux/sys/getpagesize.c 1970-01-01 10:00:00.000000000 +1000
-+++ libx_c/linux/sys/getpagesize.c 2017-01-21 22:50:06.080114580 +1100
++++ libx_c/linux/sys/getpagesize.c 2017-01-22 12:38:06.469558387 +1100
@@ -0,0 +1,7 @@
+#include <nox_unistd.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.post/linux/sys/isatty.c libx_c/linux/sys/isatty.c
--- libx_c.post/linux/sys/isatty.c 1970-01-01 10:00:00.000000000 +1000
-+++ libx_c/linux/sys/isatty.c 2017-01-21 22:50:06.080114580 +1100
++++ libx_c/linux/sys/isatty.c 2017-01-22 12:38:06.469558387 +1100
@@ -0,0 +1,13 @@
+#include <nox_unistd.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.post/linux/sys/lseek.c libx_c/linux/sys/lseek.c
--- libx_c.post/linux/sys/lseek.c 1970-01-01 10:00:00.000000000 +1000
-+++ libx_c/linux/sys/lseek.c 2017-01-21 22:50:06.080114580 +1100
++++ libx_c/linux/sys/lseek.c 2017-01-22 12:38:06.469558387 +1100
@@ -0,0 +1,15 @@
+#include <nox_unistd.h>
+#include <sys/nox_types.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.post/linux/sys/Makefile libx_c/linux/sys/Makefile
--- libx_c.post/linux/sys/Makefile 1970-01-01 10:00:00.000000000 +1000
-+++ libx_c/linux/sys/Makefile 2017-01-21 22:50:06.080114580 +1100
++++ libx_c/linux/sys/Makefile 2017-01-22 12:38:06.469558387 +1100
@@ -0,0 +1,54 @@
+ROOT=../../../..
+CC=FAKEROOT=${ROOT}/cross ${ROOT}/cross/bin/cc -Dvax
+
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.post/linux/sys/read.c libx_c/linux/sys/read.c
--- libx_c.post/linux/sys/read.c 1970-01-01 10:00:00.000000000 +1000
-+++ libx_c/linux/sys/read.c 2017-01-21 22:50:06.080114580 +1100
++++ libx_c/linux/sys/read.c 2017-01-22 12:38:06.469558387 +1100
@@ -0,0 +1,15 @@
+#include <nox_unistd.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.post/linux/sys/readv.c libx_c/linux/sys/readv.c
--- libx_c.post/linux/sys/readv.c 1970-01-01 10:00:00.000000000 +1000
-+++ libx_c/linux/sys/readv.c 2017-01-21 22:50:06.080114580 +1100
++++ libx_c/linux/sys/readv.c 2017-01-22 12:38:06.469558387 +1100
@@ -0,0 +1,26 @@
+#include <nox_unistd.h>
+#include <sys/nox_uio.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.post/linux/sys/sbrk.c libx_c/linux/sys/sbrk.c
--- libx_c.post/linux/sys/sbrk.c 1970-01-01 10:00:00.000000000 +1000
-+++ libx_c/linux/sys/sbrk.c 2017-01-21 22:50:06.080114580 +1100
++++ libx_c/linux/sys/sbrk.c 2017-01-22 12:38:06.469558387 +1100
@@ -0,0 +1,14 @@
+#include <nox_stdint.h>
+#include <nox_unistd.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.post/linux/sys/vopen.c libx_c/linux/sys/vopen.c
--- libx_c.post/linux/sys/vopen.c 1970-01-01 10:00:00.000000000 +1000
-+++ libx_c/linux/sys/vopen.c 2017-01-21 22:50:06.080114580 +1100
++++ libx_c/linux/sys/vopen.c 2017-01-22 12:38:06.469558387 +1100
@@ -0,0 +1,49 @@
+#include <nox_fcntl.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.post/linux/sys/write.c libx_c/linux/sys/write.c
--- libx_c.post/linux/sys/write.c 1970-01-01 10:00:00.000000000 +1000
-+++ libx_c/linux/sys/write.c 2017-01-21 22:50:06.080114580 +1100
++++ libx_c/linux/sys/write.c 2017-01-22 12:38:06.469558387 +1100
@@ -0,0 +1,15 @@
+#include <nox_unistd.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.post/linux/sys/writev.c libx_c/linux/sys/writev.c
--- libx_c.post/linux/sys/writev.c 1970-01-01 10:00:00.000000000 +1000
-+++ libx_c/linux/sys/writev.c 2017-01-21 22:50:06.080114580 +1100
++++ libx_c/linux/sys/writev.c 2017-01-22 12:38:06.469558387 +1100
@@ -0,0 +1,26 @@
+#include <nox_unistd.h>
+#include <sys/nox_uio.h>
+ 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.post/Makefile libx_c/Makefile
---- libx_c.post/Makefile 2017-01-21 22:50:06.048114542 +1100
-+++ libx_c/Makefile 2017-01-21 22:50:31.188144203 +1100
+--- libx_c.post/Makefile 2017-01-22 12:38:06.437558209 +1100
++++ libx_c/Makefile 2017-01-22 12:38:06.469558387 +1100
@@ -1,3 +1,5 @@
+ROOT=${shell pwd}/../..
+DESTDIR=${ROOT}/cross
ar ma findiop.o libc_p.a exit.o
ar ma exit.o libc_p.a fakcu.o
rm -rf t1 tmp
-@@ -71,7 +79,36 @@
+@@ -71,7 +79,35 @@
FRC:
+ ln -s sys/file.h fcntl.h; \
+ ln -s a.out.h nlist.h; \
+ ln -s sys/signal.h signal.h; \
-+ ln -s sys/syslog.h syslog.h
-+ for i in `find . -name '*.h' -print`; \
-+ do \
-+ mkdir -p ${DESTDIR}/usr/include/.xify/`dirname $$i`; \
-+ ${ROOT}/cross/lib/xify $$i ${DESTDIR}/usr/include/.xify/`dirname $$i`/x_`basename $$i`; \
-+ done
-+ cd ${DESTDIR}/usr/include/.xify; \
-+ ln -s vax machine; \
-+ ln -s machine/x_frame.h x_frame.h; \
-+ ln -s sys/x_errno.h x_errno.h; \
-+ ln -s sys/x_file.h x_fcntl.h; \
-+ ln -s x_a.out.h x_nlist.h; \
-+ ln -s sys/x_signal.h x_signal.h; \
-+ ln -s sys/x_syslog.h x_syslog.h
++ ln -s gen.h stdlib.h; \
++ ln -s sys/syslog.h syslog.h; \
++ ln -s sys.h unistd.h
++# for i in \
++#`find . -name '*.h' -print` \
++#frame.h errno.h fcntl.h nlist.h signal.h stdlib.h syslog.h unistd.h; \
++# do \
++# mkdir -p ${DESTDIR}/usr/include/`dirname $$i`/.xify; \
++# ${ROOT}/cross/lib/xify \
++#$$i \
++#${DESTDIR}/usr/include/`dirname $$i`/.xify/x_`basename $$i` \
++#${DESTDIR}/usr/include/`dirname $$i`/.xify/x_`basename $$i`.deps; \
++# done
+
+install:
${INSTALL} libc.a ${DESTDIR}/lib/libc.a
ranlib ${DESTDIR}/lib/libc.a
${INSTALL} libc_p.a ${DESTDIR}/usr/lib/libc_p.a
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.post/net/hosttable/Makefile libx_c/net/hosttable/Makefile
---- libx_c.post/net/hosttable/Makefile 2017-01-21 22:50:06.044114538 +1100
-+++ libx_c/net/hosttable/Makefile 2017-01-21 22:50:06.080114580 +1100
+--- libx_c.post/net/hosttable/Makefile 2017-01-22 12:38:06.433558187 +1100
++++ libx_c/net/hosttable/Makefile 2017-01-22 12:38:06.469558387 +1100
@@ -1,3 +1,5 @@
+ROOT=../../../..
+CC=FAKEROOT=${ROOT}/cross ${ROOT}/cross/bin/cc -Dvax
-# IF YOU PUT STUFF HERE IT WILL GO AWAY
-# see make depend above
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.post/net/Makefile libx_c/net/Makefile
---- libx_c.post/net/Makefile 2017-01-21 22:50:06.044114538 +1100
-+++ libx_c/net/Makefile 2017-01-21 22:50:06.080114580 +1100
+--- libx_c.post/net/Makefile 2017-01-22 12:38:06.433558187 +1100
++++ libx_c/net/Makefile 2017-01-22 12:38:06.469558387 +1100
@@ -1,3 +1,5 @@
+ROOT=../../..
+CC=FAKEROOT=${ROOT}/cross ${ROOT}/cross/bin/cc -Dvax
-# IF YOU PUT STUFF HERE IT WILL GO AWAY
-# see make depend above
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.post/net/named/gethostnamadr.c libx_c/net/named/gethostnamadr.c
---- libx_c.post/net/named/gethostnamadr.c 2017-01-21 22:50:06.044114538 +1100
-+++ libx_c/net/named/gethostnamadr.c 2017-01-21 22:50:06.080114580 +1100
-@@ -12,6 +12,12 @@
+--- libx_c.post/net/named/gethostnamadr.c 2017-01-22 12:38:06.433558187 +1100
++++ libx_c/net/named/gethostnamadr.c 2017-01-22 12:38:06.469558387 +1100
+@@ -11,6 +11,12 @@
#include <sys/socket.h>
#include <sys/types.h>
-+#ifdef X_
-+#define U_LONG uintptr_t
++#ifdef __STDC__
++#include <stdint.h>
+#else
-+#define U_LONG u_long
++typedef u_long uintptr_t;
+#endif
+
/*
* Copyright (c) 1985 Regents of the University of California.
* All rights reserved. The Berkeley software License Agreement
-@@ -210,7 +216,9 @@
+@@ -209,7 +215,9 @@
}
}
- bp += ((u_long)bp % sizeof(align));
-+/* XXX bp = (char *)(((U_LONG)bp + sizeof(align) - 1) & ~sizeof(align)) */
++/* XXX bp = (char *)(((uintptr_t)bp + sizeof(align) - 1) & ~sizeof(align)); */
+ abort();
-+ bp += ((U_LONG)bp % sizeof(align));
++ bp += ((uintptr_t)bp % sizeof(align));
if (bp + n >= &hostbuf[sizeof(hostbuf)]) {
#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.post/net/named/Makefile libx_c/net/named/Makefile
---- libx_c.post/net/named/Makefile 2017-01-21 22:50:06.044114538 +1100
-+++ libx_c/net/named/Makefile 2017-01-21 22:50:06.080114580 +1100
+--- libx_c.post/net/named/Makefile 2017-01-22 12:38:06.433558187 +1100
++++ libx_c/net/named/Makefile 2017-01-22 12:38:06.469558387 +1100
@@ -1,3 +1,5 @@
+ROOT=../../../..
+CC=FAKEROOT=${ROOT}/cross ${ROOT}/cross/bin/cc -Dvax
-# IF YOU PUT STUFF HERE IT WILL GO AWAY
-# see make depend above
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.post/ns/Makefile libx_c/ns/Makefile
---- libx_c.post/ns/Makefile 2017-01-21 22:50:06.036114529 +1100
-+++ libx_c/ns/Makefile 2017-01-21 22:50:06.080114580 +1100
+--- libx_c.post/ns/Makefile 2017-01-22 12:38:06.429558165 +1100
++++ libx_c/ns/Makefile 2017-01-22 12:38:06.469558387 +1100
@@ -1,3 +1,5 @@
+ROOT=../../..
+CC=FAKEROOT=${ROOT}/cross ${ROOT}/cross/bin/cc -Dvax
-# IF YOU PUT STUFF HERE IT WILL GO AWAY
-# see make depend above
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.post/stdio/doprnt.c libx_c/stdio/doprnt.c
---- libx_c.post/stdio/doprnt.c 2017-01-21 22:50:06.040114532 +1100
-+++ libx_c/stdio/doprnt.c 2017-01-21 22:50:06.080114580 +1100
-@@ -13,6 +13,14 @@
+--- libx_c.post/stdio/doprnt.c 2017-01-22 12:38:06.429558165 +1100
++++ libx_c/stdio/doprnt.c 2017-01-22 12:38:06.473558409 +1100
+@@ -12,6 +12,13 @@
#define _va_start(argp, arg) va_start(argp)
#endif
-+#ifdef X_
-+#define LONG intptr_t
-+#define U_LONG uintptr_t
++#ifdef __STDC__
++#include <stdint.h>
+#else
-+#define LONG long
-+#define U_LONG u_long
++typedef long intptr_t;
++#ypedef u_long uintptr_t;
+#endif
+
/*
* Copyright (c) 1988 Regents of the University of California.
* All rights reserved.
-@@ -79,7 +87,7 @@
+@@ -78,7 +85,7 @@
register int n; /* random handy integer */
register char *t; /* buffer pointer */
double _double; /* double precision arguments %[eEfgG] */
- u_long _ulong; /* integer arguments %[diouxX] */
-+ U_LONG _ulong; /* integer arguments %[diouxX] */
++ uintptr_t _ulong; /* integer arguments %[diouxX] */
int base; /* base for [diouxX] conversion */
int dprec; /* decimal precision in [diouxX] */
int fieldsz; /* field size expanded by sign, etc */
-@@ -206,7 +214,8 @@
+@@ -205,7 +212,8 @@
case 'd':
case 'i':
ARG();
- if ((long)_ulong < 0) {
-+ if ((LONG)_ulong < 0)
++ if ((intptr_t)_ulong < 0)
+ {
_ulong = -_ulong;
sign = '-';
}
-@@ -275,7 +284,7 @@
+@@ -274,7 +282,7 @@
* -- ANSI X3J11
*/
/* NOSTRICT */
- _ulong = (u_long)va_arg(argp, void *);
-+ _ulong = (U_LONG)va_arg(argp, void *);
++ _ulong = (uintptr_t)va_arg(argp, void *);
base = 16;
goto nosign;
case '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.post/stdio/findiop.c libx_c/stdio/findiop.c
---- libx_c.post/stdio/findiop.c 2017-01-21 22:50:06.040114532 +1100
-+++ libx_c/stdio/findiop.c 2017-01-21 22:50:06.080114580 +1100
+--- libx_c.post/stdio/findiop.c 2017-01-22 12:38:06.429558165 +1100
++++ libx_c/stdio/findiop.c 2017-01-22 12:38:06.473558409 +1100
@@ -105,7 +105,7 @@
*iov = (FILE *)calloc(1, sizeof **iov);
}
register FILE *fp;
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.post/stdio/Makefile libx_c/stdio/Makefile
---- libx_c.post/stdio/Makefile 2017-01-21 22:50:06.040114532 +1100
-+++ libx_c/stdio/Makefile 2017-01-21 22:50:06.080114580 +1100
+--- libx_c.post/stdio/Makefile 2017-01-22 12:38:06.429558165 +1100
++++ libx_c/stdio/Makefile 2017-01-22 12:38:06.473558409 +1100
@@ -1,3 +1,5 @@
+ROOT=../../..
+CC=FAKEROOT=${ROOT}/cross ${ROOT}/cross/bin/cc -Dvax
-# IF YOU PUT STUFF HERE IT WILL GO AWAY
-# see make depend above
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.post/stdio.h libx_c/stdio.h
---- libx_c.post/stdio.h 2017-01-21 22:50:06.048114542 +1100
-+++ libx_c/stdio.h 2017-01-21 22:50:06.080114580 +1100
+--- libx_c.post/stdio.h 2017-01-22 12:38:06.441558232 +1100
++++ libx_c/stdio.h 2017-01-22 12:38:06.473558409 +1100
@@ -82,7 +82,7 @@
#endif
/* stdio/puts.c */
int puts __P((register 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.post/string.h libx_c/string.h
+--- libx_c.post/string.h 2017-01-22 12:38:06.437558209 +1100
++++ libx_c/string.h 2017-01-22 12:38:06.473558409 +1100
+@@ -9,7 +9,8 @@
+ * @(#)string.h 5.1 (Berkeley) 85/08/05
+ */
+
+-/*#include <strings.h>*/
++#include <memory.h>
++#include <strings.h>
+
+ /*
+ * these next few are obsolete trash
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.post/sys/dir.h libx_c/sys/dir.h
---- libx_c.post/sys/dir.h 2017-01-21 22:50:06.052114547 +1100
-+++ libx_c/sys/dir.h 2017-01-21 22:50:06.080114580 +1100
+--- libx_c.post/sys/dir.h 2017-01-22 12:38:06.445558254 +1100
++++ libx_c/sys/dir.h 2017-01-22 12:38:06.473558409 +1100
@@ -122,7 +122,7 @@
struct direct *readdir __P((register DIR *dirp));
/* gen/seekdir.c */
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.post/sys/Makefile libx_c/sys/Makefile
--- libx_c.post/sys/Makefile 1970-01-01 10:00:00.000000000 +1000
-+++ libx_c/sys/Makefile 2017-01-21 22:50:06.080114580 +1100
++++ libx_c/sys/Makefile 2017-01-22 12:38:06.473558409 +1100
@@ -0,0 +1,90 @@
+ROOT=../../..
+CC=FAKEROOT=${ROOT}/cross ${ROOT}/cross/bin/cc -Dvax
+# DO NOT DELETE THIS LINE -- make depend uses it
+
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.post/sys/open.c libx_c/sys/open.c
---- libx_c.post/sys/open.c 2017-01-21 22:50:06.052114547 +1100
-+++ libx_c/sys/open.c 2017-01-21 22:50:06.080114580 +1100
+--- libx_c.post/sys/open.c 2017-01-22 12:38:06.445558254 +1100
++++ libx_c/sys/open.c 2017-01-22 12:38:06.473558409 +1100
@@ -17,7 +17,7 @@
va_list argp;
int res;
va_end(argp);
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.post/sys/signal.h libx_c/sys/signal.h
---- libx_c.post/sys/signal.h 2017-01-21 22:50:06.052114547 +1100
-+++ libx_c/sys/signal.h 2017-01-21 22:50:06.080114580 +1100
+--- libx_c.post/sys/signal.h 2017-01-22 12:38:06.445558254 +1100
++++ libx_c/sys/signal.h 2017-01-22 12:38:06.473558409 +1100
@@ -9,7 +9,7 @@
* @(#)signal.h 7.1 (Berkeley) 6/4/86
*/