From ccf0ac16f146d050f9294da4f1a581a36b4dbc43 Mon Sep 17 00:00:00 2001 From: Nick Downing Date: Fri, 20 Jan 2017 00:14:53 +1100 Subject: [PATCH] Now have isatty(), getpagesize(), write(), fstat(), sbrk() and "hello, world"! --- lib/libstdc/linux/gen/abort.c | 1 + lib/libstdc/linux/sys/Makefile | 4 +- lib/libstdc/linux/sys/fstat.c | 17 + lib/libstdc/linux/sys/getpagesize.c | 7 + lib/libstdc/linux/sys/isatty.c | 13 + lib/libstdc/linux/sys/sbrk.c | 14 + lib/libstdc/linux/sys/write.c | 17 +- lib/libstdc/post.patch | 463 +++++++++++++++++----------- 8 files changed, 346 insertions(+), 190 deletions(-) create mode 100644 lib/libstdc/linux/sys/fstat.c create mode 100644 lib/libstdc/linux/sys/getpagesize.c create mode 100644 lib/libstdc/linux/sys/isatty.c create mode 100644 lib/libstdc/linux/sys/sbrk.c diff --git a/lib/libstdc/linux/gen/abort.c b/lib/libstdc/linux/gen/abort.c index 4f91e17..e4eb702 100644 --- a/lib/libstdc/linux/gen/abort.c +++ b/lib/libstdc/linux/gen/abort.c @@ -1,4 +1,5 @@ #include + #include int abort() { diff --git a/lib/libstdc/linux/sys/Makefile b/lib/libstdc/linux/sys/Makefile index 6c94f63..6362122 100644 --- a/lib/libstdc/linux/sys/Makefile +++ b/lib/libstdc/linux/sys/Makefile @@ -8,8 +8,8 @@ CC=gcc -g -I${ROOT}/cross/include -Dx_vax -Wall -Wno-char-subscripts -Wno-deprec # @(#)Makefile 5.4 (Berkeley) 9/5/85 # -SRCS= write.c -OBJS= write.o +SRCS= fstat.c getpagesize.c isatty.c sbrk.c write.c +OBJS= fstat.o getpagesize.o isatty.o sbrk.o write.o TAGSFILE=tags .c.o: diff --git a/lib/libstdc/linux/sys/fstat.c b/lib/libstdc/linux/sys/fstat.c new file mode 100644 index 0000000..6a8810c --- /dev/null +++ b/lib/libstdc/linux/sys/fstat.c @@ -0,0 +1,17 @@ +#include +#include + +#include +#include +#include + +int fstat(f, b) int f; struct stat *b; { + struct nox_stat statbuf; + if (nox_fstat(f, &statbuf) == -1) { + errno = ENOENT; + return -1; + } + bzero(b, sizeof(struct stat)); + b->st_size = (off_t)statbuf.nox_st_size; + return 0; +} diff --git a/lib/libstdc/linux/sys/getpagesize.c b/lib/libstdc/linux/sys/getpagesize.c new file mode 100644 index 0000000..db8b2ac --- /dev/null +++ b/lib/libstdc/linux/sys/getpagesize.c @@ -0,0 +1,7 @@ +#include + +#include + +int getpagesize() { + return nox_getpagesize(); +} diff --git a/lib/libstdc/linux/sys/isatty.c b/lib/libstdc/linux/sys/isatty.c new file mode 100644 index 0000000..a93ed6a --- /dev/null +++ b/lib/libstdc/linux/sys/isatty.c @@ -0,0 +1,13 @@ +#include + +#include +#include + +int isatty(f) int f; { + int res; + + res = nox_isatty(f); + if (res == -1) + errno = EBADF; + return res; +} diff --git a/lib/libstdc/linux/sys/sbrk.c b/lib/libstdc/linux/sys/sbrk.c new file mode 100644 index 0000000..0441c40 --- /dev/null +++ b/lib/libstdc/linux/sys/sbrk.c @@ -0,0 +1,14 @@ +#include +#include + +#include +#include + +char *sbrk(i) int i; { + char *res; + + res = nox_sbrk(i); + if ((intptr_t)res == -1) + errno = ENOMEM; + return res; +} diff --git a/lib/libstdc/linux/sys/write.c b/lib/libstdc/linux/sys/write.c index 675b43c..3246a04 100644 --- a/lib/libstdc/linux/sys/write.c +++ b/lib/libstdc/linux/sys/write.c @@ -1,14 +1,15 @@ #include + #include #include int write(f, b, l) int f; void *b; int l; { - nox_size_t res; - - res = nox_write(f, b, l); - if (res == (nox_size_t)-1) { - errno = EIO; - return -1; - } - return (int)res; + nox_size_t res; + + res = nox_write(f, b, l); + if (res == (nox_size_t)-1) { + errno = EIO; + return -1; + } + return (int)res; } diff --git a/lib/libstdc/post.patch b/lib/libstdc/post.patch index 284e1f3..91da7b8 100644 --- a/lib/libstdc/post.patch +++ b/lib/libstdc/post.patch @@ -1,6 +1,6 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libstdc.post/compat-4.1/Makefile libstdc/compat-4.1/Makefile ---- libstdc.post/compat-4.1/Makefile 2017-01-19 22:06:11.264034965 +1100 -+++ libstdc/compat-4.1/Makefile 2017-01-19 22:54:49.688875325 +1100 +--- libstdc.post/compat-4.1/Makefile 2017-01-19 23:46:52.602849745 +1100 ++++ libstdc/compat-4.1/Makefile 2017-01-19 23:46:52.638849974 +1100 @@ -1,3 +1,5 @@ +ROOT=../../.. +CC=gcc -g -I${ROOT}/cross/include -Dx_vax -Wall -Wno-char-subscripts -Wno-deprecated-declarations -Wno-format -Wno-maybe-uninitialized -Wno-parentheses -Wno-unused-result @@ -52,8 +52,8 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' ' - diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libstdc.post/compat-sys5/Makefile libstdc/compat-sys5/Makefile ---- libstdc.post/compat-sys5/Makefile 2017-01-19 22:06:11.288035015 +1100 -+++ libstdc/compat-sys5/Makefile 2017-01-19 22:59:10.709340817 +1100 +--- libstdc.post/compat-sys5/Makefile 2017-01-19 23:46:52.626849898 +1100 ++++ libstdc/compat-sys5/Makefile 2017-01-19 23:46:52.638849974 +1100 @@ -1,3 +1,5 @@ +ROOT=../../.. +CC=gcc -g -I${ROOT}/cross/include -Dx_vax -Wall -Wno-char-subscripts -Wno-deprecated-declarations -Wno-format -Wno-maybe-uninitialized -Wno-parentheses -Wno-unused-result @@ -123,8 +123,8 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' ' -# IF YOU PUT STUFF HERE IT WILL GO AWAY -# see make depend above diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libstdc.post/gen/bcopy.c libstdc/gen/bcopy.c ---- libstdc.post/gen/bcopy.c 2017-01-19 22:06:11.292035023 +1100 -+++ libstdc/gen/bcopy.c 2017-01-19 22:06:11.300035039 +1100 +--- libstdc.post/gen/bcopy.c 2017-01-19 23:46:52.630849923 +1100 ++++ libstdc/gen/bcopy.c 2017-01-19 23:46:52.638849974 +1100 @@ -1,6 +1,12 @@ #include #include @@ -159,8 +159,8 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' ' *--dst = *--src; while (--length); diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libstdc.post/gen/getpass.c libstdc/gen/getpass.c ---- libstdc.post/gen/getpass.c 2017-01-19 22:06:11.292035023 +1100 -+++ libstdc/gen/getpass.c 2017-01-19 22:06:11.300035039 +1100 +--- libstdc.post/gen/getpass.c 2017-01-19 23:46:52.630849923 +1100 ++++ libstdc/gen/getpass.c 2017-01-19 23:46:52.638849974 +1100 @@ -20,7 +20,7 @@ FILE *fi; static char pbuf[9]; @@ -171,8 +171,8 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' ' if ((fi = fdopen(open("/dev/tty", 2), "r")) == NULL) fi = stdin; diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libstdc.post/gen/getpwnamuid.c libstdc/gen/getpwnamuid.c ---- libstdc.post/gen/getpwnamuid.c 2017-01-19 22:06:11.292035023 +1100 -+++ libstdc/gen/getpwnamuid.c 2017-01-19 22:06:11.300035039 +1100 +--- libstdc.post/gen/getpwnamuid.c 2017-01-19 23:46:52.630849923 +1100 ++++ libstdc/gen/getpwnamuid.c 2017-01-19 23:46:52.638849974 +1100 @@ -44,19 +44,37 @@ cp = key.dptr; tp = line; @@ -212,8 +212,8 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' ' } diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libstdc.post/gen/Makefile libstdc/gen/Makefile ---- libstdc.post/gen/Makefile 2017-01-19 22:06:11.292035023 +1100 -+++ libstdc/gen/Makefile 2017-01-19 23:21:58.643221214 +1100 +--- libstdc.post/gen/Makefile 2017-01-19 23:46:52.630849923 +1100 ++++ libstdc/gen/Makefile 2017-01-19 23:46:52.638849974 +1100 @@ -1,3 +1,5 @@ +ROOT=../../.. +CC=gcc -g -I${ROOT}/cross/include -Dx_vax -Wall -Wno-char-subscripts -Wno-deprecated-declarations -Wno-format -Wno-maybe-uninitialized -Wno-parentheses -Wno-unused-result @@ -446,8 +446,8 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' ' -# IF YOU PUT STUFF HERE IT WILL GO AWAY -# see make depend above diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libstdc.post/gen/malloc.c libstdc/gen/malloc.c ---- libstdc.post/gen/malloc.c 2017-01-19 22:06:11.292035023 +1100 -+++ libstdc/gen/malloc.c 2017-01-19 22:06:11.300035039 +1100 +--- libstdc.post/gen/malloc.c 2017-01-19 23:46:52.630849923 +1100 ++++ libstdc/gen/malloc.c 2017-01-19 23:46:52.638849974 +1100 @@ -4,6 +4,12 @@ #include #include @@ -508,8 +508,8 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' ' /* * Add new memory allocated to that on diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libstdc.post/gen/ndbm.c libstdc/gen/ndbm.c ---- libstdc.post/gen/ndbm.c 2017-01-19 22:06:11.292035023 +1100 -+++ libstdc/gen/ndbm.c 2017-01-19 22:06:11.300035039 +1100 +--- libstdc.post/gen/ndbm.c 2017-01-19 23:46:52.630849923 +1100 ++++ libstdc/gen/ndbm.c 2017-01-19 23:46:52.638849974 +1100 @@ -70,14 +70,14 @@ flags = (flags & ~03) | O_RDWR; strcpy(db->dbm_pagbuf, file); @@ -528,8 +528,8 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' ' va_end(argp); if (db->dbm_dirf < 0) diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libstdc.post/gen/qsort.c libstdc/gen/qsort.c ---- libstdc.post/gen/qsort.c 2017-01-19 22:06:11.292035023 +1100 -+++ libstdc/gen/qsort.c 2017-01-19 22:06:11.300035039 +1100 +--- libstdc.post/gen/qsort.c 2017-01-19 23:46:52.630849923 +1100 ++++ libstdc/gen/qsort.c 2017-01-19 23:46:52.638849974 +1100 @@ -36,7 +36,7 @@ static void qst __P((char *base, char *max)); @@ -540,8 +540,8 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' ' register char c, *i, *j, *lo, *hi; char *min, *max; diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libstdc.post/gen/scandir.c libstdc/gen/scandir.c ---- libstdc.post/gen/scandir.c 2017-01-19 22:06:11.292035023 +1100 -+++ libstdc/gen/scandir.c 2017-01-19 22:06:11.300035039 +1100 +--- libstdc.post/gen/scandir.c 2017-01-19 23:46:52.630849923 +1100 ++++ libstdc/gen/scandir.c 2017-01-19 23:46:52.638849974 +1100 @@ -24,7 +24,7 @@ /*#include */ /*#include */ @@ -561,8 +561,8 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' ' return(nitems); } diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libstdc.post/gen/signal.c libstdc/gen/signal.c ---- libstdc.post/gen/signal.c 2017-01-19 22:06:11.292035023 +1100 -+++ libstdc/gen/signal.c 2017-01-19 22:06:11.300035039 +1100 +--- libstdc.post/gen/signal.c 2017-01-19 23:46:52.630849923 +1100 ++++ libstdc/gen/signal.c 2017-01-19 23:46:52.638849974 +1100 @@ -15,12 +15,12 @@ */ /*#include */ @@ -586,8 +586,8 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' ' + return ((void (*) __P((int sig)))osv.sv_handler); } diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libstdc.post/gen/sleep.c libstdc/gen/sleep.c ---- libstdc.post/gen/sleep.c 2017-01-19 22:06:11.292035023 +1100 -+++ libstdc/gen/sleep.c 2017-01-19 22:06:11.300035039 +1100 +--- libstdc.post/gen/sleep.c 2017-01-19 23:46:52.630849923 +1100 ++++ libstdc/gen/sleep.c 2017-01-19 23:46:52.638849974 +1100 @@ -15,7 +15,7 @@ /*#include */ @@ -598,8 +598,8 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' ' static int ringring; diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libstdc.post/gen/system.c libstdc/gen/system.c ---- libstdc.post/gen/system.c 2017-01-19 22:06:11.292035023 +1100 -+++ libstdc/gen/system.c 2017-01-19 22:06:11.300035039 +1100 +--- libstdc.post/gen/system.c 2017-01-19 23:46:52.630849923 +1100 ++++ libstdc/gen/system.c 2017-01-19 23:46:52.638849974 +1100 @@ -11,7 +11,7 @@ int system(s) char *s; { @@ -610,8 +610,8 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' ' if ((pid = vfork()) == 0) { execl("/bin/sh", "sh", "-c", s, 0); diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libstdc.post/gen/usleep.c libstdc/gen/usleep.c ---- libstdc.post/gen/usleep.c 2017-01-19 22:06:11.292035023 +1100 -+++ libstdc/gen/usleep.c 2017-01-19 22:06:11.300035039 +1100 +--- libstdc.post/gen/usleep.c 2017-01-19 23:46:52.630849923 +1100 ++++ libstdc/gen/usleep.c 2017-01-19 23:46:52.638849974 +1100 @@ -18,7 +18,7 @@ #define TICK 10000 /* system clock resolution in microseconds */ @@ -622,8 +622,8 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' ' static int ringring; diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libstdc.post/gen/valloc.c libstdc/gen/valloc.c ---- libstdc.post/gen/valloc.c 2017-01-19 22:06:11.292035023 +1100 -+++ libstdc/gen/valloc.c 2017-01-19 22:06:11.300035039 +1100 +--- libstdc.post/gen/valloc.c 2017-01-19 23:46:52.630849923 +1100 ++++ libstdc/gen/valloc.c 2017-01-19 23:46:52.638849974 +1100 @@ -1,6 +1,12 @@ #include #include @@ -651,8 +651,8 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' ' return ((char *)j); } diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libstdc.post/gen.h libstdc/gen.h ---- libstdc.post/gen.h 2017-01-19 22:06:11.268034974 +1100 -+++ libstdc/gen.h 2017-01-19 22:06:11.300035039 +1100 +--- libstdc.post/gen.h 2017-01-19 23:46:52.606849771 +1100 ++++ libstdc/gen.h 2017-01-19 23:46:52.638849974 +1100 @@ -108,7 +108,7 @@ char *mktemp __P((char *as)); @@ -663,8 +663,8 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' ' /* gen/random.c */ int srandom __P((unsigned x)); diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libstdc.post/inet/Makefile libstdc/inet/Makefile ---- libstdc.post/inet/Makefile 2017-01-19 22:06:11.268034974 +1100 -+++ libstdc/inet/Makefile 2017-01-19 22:58:10.357181705 +1100 +--- libstdc.post/inet/Makefile 2017-01-19 23:46:52.606849771 +1100 ++++ libstdc/inet/Makefile 2017-01-19 23:46:52.638849974 +1100 @@ -1,3 +1,5 @@ +ROOT=../../.. +CC=gcc -g -I${ROOT}/cross/include -Dx_vax -Wall -Wno-char-subscripts -Wno-deprecated-declarations -Wno-format -Wno-maybe-uninitialized -Wno-parentheses -Wno-unused-result @@ -725,65 +725,131 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' ' -# DEPENDENCIES MUST END AT END OF FILE -# IF YOU PUT STUFF HERE IT WILL GO AWAY -# see make depend above +diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libstdc.post/linux/csu/crt0.c libstdc/linux/csu/crt0.c +--- libstdc.post/linux/csu/crt0.c 1970-01-01 10:00:00.000000000 +1000 ++++ libstdc/linux/csu/crt0.c 2017-01-19 23:50:16.020036238 +1100 +@@ -0,0 +1,17 @@ ++extern char **nox_environ; ++char **environ; ++ ++#ifndef __P ++#ifdef __STDC__ ++#define __P(args) args ++#else ++#define __P(args) () ++#endif ++#endif ++ ++int main __P((int argc, char **argv)); ++ ++nox_int nox_main(argc, argv) nox_int argc; char **argv; { ++ environ = nox_environ; ++ return main(argc, argv); ++} diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libstdc.post/linux/csu/Makefile libstdc/linux/csu/Makefile ---- libstdc.post/linux/csu/Makefile 2017-01-19 22:06:11.272034982 +1100 -+++ libstdc/linux/csu/Makefile 2017-01-19 22:45:26.680158601 +1100 -@@ -1,5 +1,5 @@ - ROOT=../../../.. --CC=gcc -g -Wall -I${ROOT}/cross/include -Dx_vax +--- libstdc.post/linux/csu/Makefile 1970-01-01 10:00:00.000000000 +1000 ++++ libstdc/linux/csu/Makefile 2017-01-19 23:50:16.020036238 +1100 +@@ -0,0 +1,97 @@ ++ROOT=../../../.. +CC=gcc -g -I${ROOT}/cross/include -Dx_vax -Wall -Wno-char-subscripts -Wno-deprecated-declarations -Wno-format -Wno-maybe-uninitialized -Wno-parentheses -Wno-unused-result - DESTDIR=${ROOT}/cross - # - # Copyright (c) 1980 Regents of the University of California. -@@ -12,16 +12,13 @@ - # mcrt0 C run time start off for profiling, ``prof'' conventions - # gcrt0 C run time start off for profiling, ``gprof'' conventions - # ++DESTDIR=${ROOT}/cross ++# ++# Copyright (c) 1980 Regents of the University of California. ++# All rights reserved. The Berkeley software License Agreement ++# specifies the terms and conditions for redistribution. ++# ++# @(#)Makefile 5.4 (Berkeley) 9/5/85 ++# ++# crt0 Normal C run time startoff ++# mcrt0 C run time start off for profiling, ``prof'' conventions ++# gcrt0 C run time start off for profiling, ``gprof'' conventions ++# +#DESTDIR= - SRCS= crt0.c - # mon.c gmon.c - OBJS= crt0.o - # mcrt0.o gcrt0.o mon.o gmon.o - TAGSFILE=tags - --.c.o: -- ${ROOT}/xify/xify.sh <$< >$*.temp.c -- ${CC} -o $@ -c $*.temp.c -- - all: ${OBJS} - - install: ${OBJS} -@@ -29,13 +26,15 @@ - # mv mcrt0.o ${DESTDIR}/lib/mcrt0.o - # mv gcrt0.o ${DESTDIR}/usr/lib/gcrt0.o - --#crt0.o: crt0.c ++SRCS= crt0.c ++# mon.c gmon.c ++OBJS= crt0.o ++# mcrt0.o gcrt0.o mon.o gmon.o ++TAGSFILE=tags ++ ++all: ${OBJS} ++ ++install: ${OBJS} ++ mv crt0.o ${DESTDIR}/lib/crt0.o ++# mv mcrt0.o ${DESTDIR}/lib/mcrt0.o ++# mv gcrt0.o ${DESTDIR}/usr/lib/gcrt0.o ++ +crt0.o: crt0.c - # cc -S ${DFLAGS} -DCRT0 crt0.c - # /lib/cpp crt0.s > x.s - # as -o x.o x.s - # ld -x -r -o crt0.o x.o - # rm -f x.s x.o crt0.s --# ++# cc -S ${DFLAGS} -DCRT0 crt0.c ++# /lib/cpp crt0.s > x.s ++# as -o x.o x.s ++# ld -x -r -o crt0.o x.o ++# rm -f x.s x.o crt0.s + ${ROOT}/xify/xify.sh <$< >$*.temp.c + ${CC} -o $@ -c $*.temp.c + - #moncrt0.o: crt0.c - # cc -S ${DFLAGS} -DMCRT0 crt0.c - # /lib/cpp crt0.s > x.s -@@ -96,9 +95,3 @@ - - # DO NOT DELETE THIS LINE -- make depend uses it - --crt0.o: crt0.c --mon.o: mon.c --gmon.o: gmon.c ./gmon.h --# DEPENDENCIES MUST END AT END OF FILE --# IF YOU PUT STUFF HERE IT WILL GO AWAY --# see make depend above ++#moncrt0.o: crt0.c ++# cc -S ${DFLAGS} -DMCRT0 crt0.c ++# /lib/cpp crt0.s > x.s ++# as -o x.o x.s ++# ld -x -r -o moncrt0.o x.o ++# rm -f x.s x.o crt0.s ++# ++#gcrt0.o: moncrt0.o gmon.o ++# ld -x -r -o gcrt0.o moncrt0.o gmon.o ++# ++#mcrt0.o: moncrt0.o mon.o ++# ld -x -r -o mcrt0.o moncrt0.o mon.o ++# ++#mon.o: mon.c mon.ex ++# cc -S ${DEFS} ${DFLAGS} mon.c ++# ex - mon.s < mon.ex ++# as -o x.o mon.s ++# ld -x -r -o mon.o x.o ++# rm -f x.o mon.s ++# ++#gmon.o: gmon.c gmon.h gmon.ex ++# cc -S ${DEFS} ${DFLAGS} gmon.c ++# ex - gmon.s < gmon.ex ++# as -o x.o gmon.s ++# ld -x -r -o gmon.o x.o ++# rm -f x.o gmon.s ++ ++tags: ++ cwd=`pwd`; \ ++ for i in ${SRCS}; do \ ++ ctags -a -f ${TAGSFILE} $$cwd/$$i; \ ++ done ++ ++clean: ++ rm -f ${OBJS} *.o *.s *.temp.c core errs tags Makefile.bak ++ ++lint: crt0.c ++ lint crt0.c -DMCRT0 ++ lint crt0.c -DGCRT0 ++ lint crt0.c -DCRT0 ++ ++depend: ++ for i in ${SRCS}; do \ ++ cc -M ${DEFS} ${DFLAGS} $$i | awk ' { if ($$1 != prev) \ ++ { if (rec != "") print rec; rec = $$0; prev = $$1; } \ ++ else { if (length(rec $$2) > 78) { print rec; rec = $$0; } \ ++ else rec = rec " " $$2 } } \ ++ END { print rec } ' >> makedep; done ++ echo '/^# DO NOT DELETE THIS LINE/+2,$$d' >eddep ++ echo '$$r makedep' >>eddep ++ echo 'w' >>eddep ++ cp Makefile Makefile.bak ++ ed - Makefile < eddep ++ rm eddep makedep ++ echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile ++ echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile ++ echo '# see make depend above' >> Makefile ++ ++# DO NOT DELETE THIS LINE -- make depend uses it ++ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libstdc.post/linux/gen/abort.c libstdc/linux/gen/abort.c --- libstdc.post/linux/gen/abort.c 1970-01-01 10:00:00.000000000 +1000 -+++ libstdc/linux/gen/abort.c 2017-01-19 23:25:25.791352190 +1100 ++++ libstdc/linux/gen/abort.c 2017-01-19 23:50:16.020036238 +1100 @@ -0,0 +1,6 @@ +#include +#include @@ -793,7 +859,7 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' ' +} diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libstdc.post/linux/gen/Makefile libstdc/linux/gen/Makefile --- libstdc.post/linux/gen/Makefile 1970-01-01 10:00:00.000000000 +1000 -+++ libstdc/linux/gen/Makefile 2017-01-19 23:24:41.719319163 +1100 ++++ libstdc/linux/gen/Makefile 2017-01-19 23:50:16.020036238 +1100 @@ -0,0 +1,55 @@ +ROOT=../../../.. +CC=gcc -g -I${ROOT}/cross/include -Dx_vax -Wall -Wno-char-subscripts -Wno-deprecated-declarations -Wno-format -Wno-maybe-uninitialized -Wno-parentheses -Wno-unused-result @@ -851,95 +917,132 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' ' +# DO NOT DELETE THIS LINE -- make depend uses it + diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libstdc.post/linux/Makefile libstdc/linux/Makefile ---- libstdc.post/linux/Makefile 2017-01-19 22:06:11.272034982 +1100 -+++ libstdc/linux/Makefile 2017-01-19 23:25:48.627370231 +1100 -@@ -8,17 +8,19 @@ - # Machine dependent routines for linux hosted are located here - # - #COMPAT= compat-4.1 --ALL= sys +--- libstdc.post/linux/Makefile 1970-01-01 10:00:00.000000000 +1000 ++++ libstdc/linux/Makefile 2017-01-19 23:50:16.020036238 +1100 +@@ -0,0 +1,43 @@ ++# ++# Copyright (c) 1980 Regents of the University of California. ++# All rights reserved. The Berkeley software License Agreement ++# specifies the terms and conditions for redistribution. ++# ++# @(#)Makefile 5.5 (Berkeley) 9/5/85 ++# ++# Machine dependent routines for linux hosted are located here ++# ++#COMPAT= compat-4.1 +ALL= gen sys - #gen net stdio sys ${COMPAT} - TAGSFILE=tags - --linuxlib linuxlib_p: ${ALL} ++#gen net stdio sys ${COMPAT} ++TAGSFILE=tags ++ +#linuxlib linuxlib_p: ${ALL} +linuxlib: ${ALL} - -mkdir tmp - for i in ${ALL}; do (cd tmp; ar x ../$$i/$${i}lib); done -- ar cr linuxlib `ls tmp/*.o | sort -t/ +1` -- rm -f tmp/* -- for i in ${ALL}; do (cd tmp; ar x ../$$i/$${i}lib_p); done -- ar cr linuxlib_p `ls tmp/*.o | sort -t/ +1` ++ -mkdir tmp ++ for i in ${ALL}; do (cd tmp; ar x ../$$i/$${i}lib); done +# ar cr linuxlib `ls tmp/*.o | sort -t/ +1` + ar cr linuxlib `ls tmp/*.o | LC_ALL=C sort -t/` +# rm -f tmp/* +# for i in ${ALL}; do (cd tmp; ar x ../$$i/$${i}lib_p); done +# ar cr linuxlib_p `ls tmp/*.o | sort -t/ +1` - rm -rf tmp - - ${ALL}: FRC ++ rm -rf tmp ++ ++${ALL}: FRC ++ cd $@; make ${MFLAGS} DEFS=${DEFS} ++ ++FRC: ++ ++tags: ++ for i in ${ALL}; do \ ++ (cd $$i; make ${MFLAGS} TAGSFILE=../${TAGSFILE} tags); \ ++ done ++ ++clean: ++ for i in ${ALL}; do (cd $$i; make ${MFLAGS} clean); done ++ rm -f linuxlib linuxlib_p tmp/*.o; ++ -rmdir tmp ++ ++depend: ++ for i in ${ALL}; do \ ++ (cd $$i; make ${MFLAGS} DEFS=${DEFS} depend); done diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libstdc.post/linux/sys/Makefile libstdc/linux/sys/Makefile ---- libstdc.post/linux/sys/Makefile 2017-01-19 22:06:11.272034982 +1100 -+++ libstdc/linux/sys/Makefile 2017-01-19 22:44:43.124079518 +1100 -@@ -1,5 +1,5 @@ - ROOT=../../../.. --CC=gcc -g -Wall -I${ROOT}/cross/include -Dx_vax +--- libstdc.post/linux/sys/Makefile 1970-01-01 10:00:00.000000000 +1000 ++++ libstdc/linux/sys/Makefile 2017-01-19 23:50:16.020036238 +1100 +@@ -0,0 +1,55 @@ ++ROOT=../../../.. +CC=gcc -g -I${ROOT}/cross/include -Dx_vax -Wall -Wno-char-subscripts -Wno-deprecated-declarations -Wno-format -Wno-maybe-uninitialized -Wno-parentheses -Wno-unused-result - # - # Copyright (c) 1980 Regents of the University of California. - # All rights reserved. The Berkeley software License Agreement -@@ -12,14 +12,13 @@ - OBJS= write.o - TAGSFILE=tags - --#.c.o: ++# ++# Copyright (c) 1980 Regents of the University of California. ++# All rights reserved. The Berkeley software License Agreement ++# specifies the terms and conditions for redistribution. ++# ++# @(#)Makefile 5.4 (Berkeley) 9/5/85 ++# ++ ++SRCS= write.c ++OBJS= write.o ++TAGSFILE=tags ++ +.c.o: - # /lib/cpp -E ${DEFS} -DPROF $*.c | ${AS} -o $*.o - # -ld -x -r $*.o - # mv a.out profiled/$*.o - # /lib/cpp -E ${DEFS} $*.c | ${AS} -o $*.o - # -ld -x -r $*.o - # mv a.out $*.o --.c.o: - ${ROOT}/xify/xify.sh <$< >$*.temp.c - ${CC} -o $@ -c $*.temp.c - -@@ -33,7 +32,7 @@ - tags: - - clean: -- rm -f syslib syslib_p ${OBJS} profiled/*.o *.temp.c tags Makefile.bak ++# /lib/cpp -E ${DEFS} -DPROF $*.c | ${AS} -o $*.o ++# -ld -x -r $*.o ++# mv a.out profiled/$*.o ++# /lib/cpp -E ${DEFS} $*.c | ${AS} -o $*.o ++# -ld -x -r $*.o ++# mv a.out $*.o ++ ${ROOT}/xify/xify.sh <$< >$*.temp.c ++ ${CC} -o $@ -c $*.temp.c ++ ++#syslib syslib_p: ${OBJS} ++syslib: ${OBJS} ++# @echo "building profiled syslib_p" ++# @cd profiled; ar cru ../syslib_p ${OBJS} ++ @echo "building normal syslib_p" ++ @ar cru syslib ${OBJS} ++ ++tags: ++ ++clean: + rm -f syslib syslib_p *.temp.c ${OBJS} profiled/*.o tags Makefile.bak - - depend: - for i in ${SRCS}; do \ ++ ++depend: ++ for i in ${SRCS}; do \ ++ cc -M ${DEFS} $$i | awk ' { if ($$1 != prev) \ ++ { if (rec != "") print rec; rec = $$0; prev = $$1; } \ ++ else { if (length(rec $$2) > 78) { print rec; rec = $$0; } \ ++ else rec = rec " " $$2 } } \ ++ END { print rec } ' >> makedep; done ++ echo '/^# DO NOT DELETE THIS LINE/+2,$$d' >eddep ++ echo '$$r makedep' >>eddep ++ echo 'w' >>eddep ++ cp Makefile Makefile.bak ++ ed - Makefile < eddep ++ rm eddep makedep ++ echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile ++ echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile ++ echo '# see make depend above' >> Makefile ++ ++# DO NOT DELETE THIS LINE -- make depend uses it ++ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libstdc.post/linux/sys/write.c libstdc/linux/sys/write.c ---- libstdc.post/linux/sys/write.c 2017-01-19 22:06:11.272034982 +1100 -+++ libstdc/linux/sys/write.c 2017-01-19 23:25:32.723357594 +1100 -@@ -1,16 +1,13 @@ +--- libstdc.post/linux/sys/write.c 1970-01-01 10:00:00.000000000 +1000 ++++ libstdc/linux/sys/write.c 2017-01-19 23:50:16.020036238 +1100 +@@ -0,0 +1,14 @@ +#include +#include - #include - --/*#include */ -- --/*#include */ --/*#include */ -- - int write(f, b, l) int f; void *b; int l; { - nox_size_t res; - - res = nox_write(f, b, l); - if (res == (nox_size_t)-1) { -- errno = nox_ENOSYS; ++#include ++ ++int write(f, b, l) int f; void *b; int l; { ++ nox_size_t res; ++ ++ res = nox_write(f, b, l); ++ if (res == (nox_size_t)-1) { + errno = EIO; - return -1; - } - return (int)res; ++ return -1; ++ } ++ return (int)res; ++} diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libstdc.post/Makefile libstdc/Makefile ---- libstdc.post/Makefile 2017-01-19 22:06:11.272034982 +1100 -+++ libstdc/Makefile 2017-01-19 23:24:13.531299380 +1100 +--- libstdc.post/Makefile 2017-01-19 23:46:52.610849797 +1100 ++++ libstdc/Makefile 2017-01-19 23:50:16.016036217 +1100 @@ -1,3 +1,5 @@ +ROOT=${shell pwd}/../.. +DESTDIR=${ROOT}/cross @@ -1013,8 +1116,8 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' ' tags: diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libstdc.post/net/hosttable/Makefile libstdc/net/hosttable/Makefile ---- libstdc.post/net/hosttable/Makefile 2017-01-19 22:06:11.268034974 +1100 -+++ libstdc/net/hosttable/Makefile 2017-01-19 22:56:56.969006135 +1100 +--- libstdc.post/net/hosttable/Makefile 2017-01-19 23:46:52.602849745 +1100 ++++ libstdc/net/hosttable/Makefile 2017-01-19 23:50:16.020036238 +1100 @@ -1,3 +1,5 @@ +ROOT=../../../.. +CC=gcc -g -I${ROOT}/cross/include -Dx_vax -Wall -Wno-char-subscripts -Wno-deprecated-declarations -Wno-format -Wno-maybe-uninitialized -Wno-parentheses -Wno-unused-result @@ -1070,8 +1173,8 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' ' -# IF YOU PUT STUFF HERE IT WILL GO AWAY -# see make depend above diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libstdc.post/net/Makefile libstdc/net/Makefile ---- libstdc.post/net/Makefile 2017-01-19 22:06:11.268034974 +1100 -+++ libstdc/net/Makefile 2017-01-19 22:55:58.740943241 +1100 +--- libstdc.post/net/Makefile 2017-01-19 23:46:52.602849745 +1100 ++++ libstdc/net/Makefile 2017-01-19 23:50:16.020036238 +1100 @@ -1,3 +1,5 @@ +ROOT=../../.. +CC=gcc -g -I${ROOT}/cross/include -Dx_vax -Wall -Wno-char-subscripts -Wno-deprecated-declarations -Wno-format -Wno-maybe-uninitialized -Wno-parentheses -Wno-unused-result @@ -1173,8 +1276,8 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' ' -# IF YOU PUT STUFF HERE IT WILL GO AWAY -# see make depend above diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libstdc.post/net/named/gethostnamadr.c libstdc/net/named/gethostnamadr.c ---- libstdc.post/net/named/gethostnamadr.c 2017-01-19 22:06:11.268034974 +1100 -+++ libstdc/net/named/gethostnamadr.c 2017-01-19 22:06:11.300035039 +1100 +--- libstdc.post/net/named/gethostnamadr.c 2017-01-19 23:46:52.602849745 +1100 ++++ libstdc/net/named/gethostnamadr.c 2017-01-19 23:50:16.020036238 +1100 @@ -12,6 +12,12 @@ #include #include @@ -1201,8 +1304,8 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' ' if (bp + n >= &hostbuf[sizeof(hostbuf)]) { #ifdef DEBUG diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libstdc.post/net/named/Makefile libstdc/net/named/Makefile ---- libstdc.post/net/named/Makefile 2017-01-19 22:06:11.268034974 +1100 -+++ libstdc/net/named/Makefile 2017-01-19 22:44:01.808004502 +1100 +--- libstdc.post/net/named/Makefile 2017-01-19 23:46:52.602849745 +1100 ++++ libstdc/net/named/Makefile 2017-01-19 23:50:16.020036238 +1100 @@ -1,3 +1,5 @@ +ROOT=../../../.. +CC=gcc -g -I${ROOT}/cross/include -Dx_vax -Wall -Wno-char-subscripts -Wno-deprecated-declarations -Wno-format -Wno-maybe-uninitialized -Wno-parentheses -Wno-unused-result @@ -1264,8 +1367,8 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' ' -# IF YOU PUT STUFF HERE IT WILL GO AWAY -# see make depend above diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libstdc.post/ns/Makefile libstdc/ns/Makefile ---- libstdc.post/ns/Makefile 2017-01-19 22:06:11.260034958 +1100 -+++ libstdc/ns/Makefile 2017-01-19 23:02:14.253773608 +1100 +--- libstdc.post/ns/Makefile 2017-01-19 23:46:52.598849720 +1100 ++++ libstdc/ns/Makefile 2017-01-19 23:50:16.020036238 +1100 @@ -1,3 +1,5 @@ +ROOT=../../.. +CC=gcc -g -I${ROOT}/cross/include -Dx_vax -Wall -Wno-char-subscripts -Wno-deprecated-declarations -Wno-format -Wno-maybe-uninitialized -Wno-parentheses -Wno-unused-result @@ -1321,8 +1424,8 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' ' -# IF YOU PUT STUFF HERE IT WILL GO AWAY -# see make depend above diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libstdc.post/stdio/doprnt.c libstdc/stdio/doprnt.c ---- libstdc.post/stdio/doprnt.c 2017-01-19 22:06:11.260034958 +1100 -+++ libstdc/stdio/doprnt.c 2017-01-19 22:06:11.300035039 +1100 +--- libstdc.post/stdio/doprnt.c 2017-01-19 23:46:52.598849720 +1100 ++++ libstdc/stdio/doprnt.c 2017-01-19 23:50:16.020036238 +1100 @@ -13,6 +13,14 @@ #define _va_start(argp, arg) va_start(argp) #endif @@ -1367,8 +1470,8 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' ' goto nosign; case 's': diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libstdc.post/stdio/findiop.c libstdc/stdio/findiop.c ---- libstdc.post/stdio/findiop.c 2017-01-19 22:06:11.260034958 +1100 -+++ libstdc/stdio/findiop.c 2017-01-19 22:06:11.300035039 +1100 +--- libstdc.post/stdio/findiop.c 2017-01-19 23:46:52.598849720 +1100 ++++ libstdc/stdio/findiop.c 2017-01-19 23:50:16.020036238 +1100 @@ -105,7 +105,7 @@ *iov = (FILE *)calloc(1, sizeof **iov); } @@ -1379,8 +1482,8 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' ' register FILE *fp; diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libstdc.post/stdio/Makefile libstdc/stdio/Makefile ---- libstdc.post/stdio/Makefile 2017-01-19 22:06:11.260034958 +1100 -+++ libstdc/stdio/Makefile 2017-01-19 23:27:31.011458224 +1100 +--- libstdc.post/stdio/Makefile 2017-01-19 23:46:52.598849720 +1100 ++++ libstdc/stdio/Makefile 2017-01-19 23:50:16.020036238 +1100 @@ -1,3 +1,5 @@ +ROOT=../../.. +CC=gcc -g -I${ROOT}/cross/include -Dx_vax -Wall -Wno-char-subscripts -Wno-deprecated-declarations -Wno-format -Wno-maybe-uninitialized -Wno-parentheses -Wno-unused-result @@ -1513,8 +1616,8 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' ' -# IF YOU PUT STUFF HERE IT WILL GO AWAY -# see make depend above diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libstdc.post/stdio.h libstdc/stdio.h ---- libstdc.post/stdio.h 2017-01-19 22:06:11.272034982 +1100 -+++ libstdc/stdio.h 2017-01-19 22:06:11.300035039 +1100 +--- libstdc.post/stdio.h 2017-01-19 23:46:52.610849797 +1100 ++++ libstdc/stdio.h 2017-01-19 23:50:16.020036238 +1100 @@ -109,7 +109,7 @@ FILE *_findiop __P((void)); int _f_morefiles __P((void)); @@ -1525,8 +1628,8 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' ' /* stdio/flsbuf.c */ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libstdc.post/sys/dir.h libstdc/sys/dir.h ---- libstdc.post/sys/dir.h 2017-01-19 22:06:11.276034990 +1100 -+++ libstdc/sys/dir.h 2017-01-19 22:06:11.300035039 +1100 +--- libstdc.post/sys/dir.h 2017-01-19 23:46:52.614849821 +1100 ++++ libstdc/sys/dir.h 2017-01-19 23:50:16.020036238 +1100 @@ -122,7 +122,7 @@ struct direct *readdir __P((register DIR *dirp)); @@ -1538,7 +1641,7 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' ' /* gen/seekdir.c */ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libstdc.post/sys/Makefile libstdc/sys/Makefile --- libstdc.post/sys/Makefile 1970-01-01 10:00:00.000000000 +1000 -+++ libstdc/sys/Makefile 2017-01-19 23:09:01.702292019 +1100 ++++ libstdc/sys/Makefile 2017-01-19 23:50:16.020036238 +1100 @@ -0,0 +1,93 @@ +ROOT=../../.. +CC=gcc -g -I${ROOT}/cross/include -Dx_vax -Wall -Wno-char-subscripts -Wno-deprecated-declarations -Wno-format -Wno-maybe-uninitialized -Wno-parentheses -Wno-unused-result @@ -1634,8 +1737,8 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' ' +# DO NOT DELETE THIS LINE -- make depend uses it + diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libstdc.post/sys/signal.h libstdc/sys/signal.h ---- libstdc.post/sys/signal.h 2017-01-19 22:06:11.276034990 +1100 -+++ libstdc/sys/signal.h 2017-01-19 22:06:11.300035039 +1100 +--- libstdc.post/sys/signal.h 2017-01-19 23:46:52.614849821 +1100 ++++ libstdc/sys/signal.h 2017-01-19 23:50:16.020036238 +1100 @@ -9,7 +9,7 @@ * @(#)signal.h 7.1 (Berkeley) 6/4/86 */ -- 2.34.1