Get fopen() and friends working properly, also perror(), fix vopen() prototype
authorNick Downing <downing.nick@gmail.com>
Fri, 20 Jan 2017 04:12:21 +0000 (15:12 +1100)
committerNick Downing <downing.nick@gmail.com>
Fri, 20 Jan 2017 04:12:21 +0000 (15:12 +1100)
17 files changed:
.gitignore
cross/include/sys/x_file.h
cross/include/sys/x_types.h
lib/libx_c/generated.txt
lib/libx_c/linux/sys/Makefile
lib/libx_c/linux/sys/readv.c [new file with mode: 0644]
lib/libx_c/linux/sys/vopen.c
lib/libx_c/linux/sys/writev.c [new file with mode: 0644]
lib/libx_c/mkpostpatch.sh
lib/libx_c/mkprepatch.sh
lib/libx_c/n.sh
lib/libx_c/post.patch
lib/libx_c/pre.patch
lib/libx_c/sys/file.h
lib/libx_c/sys/types.h
lib/libx_c/sys/vopen.c
test/hello.c

index 221807a..3310213 100644 (file)
@@ -35,6 +35,7 @@ lib/libx_c/stdio/stdiolib
 lib/libx_c/sys/syslib
 lib/libx_c/xx*
 test/hello
+test/hello.txt
 xify/newline
 xify/nocomment
 xify/nostring
index ab78fdc..b6d1a5c 100644 (file)
@@ -6,6 +6,9 @@
 #include <sys/x_errno.h>
 #include <sys/x_param.h>
 #include <sys/x_types.h>
+#ifdef __STDC__
+#include <stdarg.h>
+#endif
 
 /*
  * Copyright (c) 1982, 1986 Regents of the University of California.
@@ -219,6 +222,9 @@ x_int x_umask __P((x_int x_n));
 /* sys/unlink.c */
 x_int x_unlink __P((char *x_s));
 
+/* sys/vopen.c */
+x_int x_vopen __P((char *x_f, x_int x_m, va_list x_argp));
+
 /* sys/write.c */
 x_int x_write __P((x_int x_f, void *x_b, x_int x_l));
 #endif
index 9349773..9ef9db6 100644 (file)
@@ -40,7 +40,7 @@ typedef       struct  x_label_t       {
 #endif
 typedef        struct  x__quad { x_long x_val[2]; } x_quad;
 typedef        x_long  x_daddr_t;
-typedef        char *  x_caddr_t;
+typedef        void *  x_caddr_t;
 typedef        x_u_long        x_ino_t;
 typedef        x_long  x_swblk_t;
 typedef        x_long  x_size_t;
index c05fe25..9df40df 100644 (file)
-net/htons.c
+gen/_setjmp.c
+gen/abs.c
+gen/atof.c
+gen/ldexp.c
+gen/modf.c
+gen/setjmp.c
 net/htonl.c
-net/ntohs.c
+net/htons.c
 net/ntohl.c
-sys/settimeofday.c
-sys/sigpause.c
-sys/getrlimit.c
-sys/mknod.c
-sys/symlink.c
+net/ntohs.c
+sys/_exit.c
+sys/accept.c
+sys/access.c
 sys/acct.c
-sys/setpgrp.c
-sys/exect.c
-sys/gettimeofday.c
-sys/sendto.c
-sys/getpeername.c
 sys/adjtime.c
-sys/sigvec.c
-sys/dup2.c
-sys/reboot.c
-sys/listen.c
-sys/umask.c
-sys/readv.c
-sys/creat.c
-sys/link.c
+sys/bind.c
+sys/brk.c
+sys/chdir.c
 sys/chmod.c
-sys/kill.c
-sys/stat.c
-sys/gethostname.c
+sys/chown.c
+sys/chroot.c
+sys/close.c
+sys/connect.c
+sys/creat.c
+sys/dup.c
+sys/dup2.c
+sys/execl.c
+sys/execle.c
+sys/exect.c
+sys/execv.c
+sys/execve.c
+sys/fchmod.c
+sys/fchown.c
+sys/fcntl.c
+sys/flock.c
+sys/fork.c
+sys/fstat.c
+sys/fsync.c
+sys/ftruncate.c
+sys/getdtablesize.c
+sys/getegid.c
+sys/geteuid.c
 sys/getgid.c
-sys/open.c
-sys/getrusage.c
+sys/getgroups.c
 sys/gethostid.c
-sys/truncate.c
-sys/setpriority.c
-sys/flock.c
+sys/gethostname.c
+sys/getitimer.c
+sys/getpagesize.c
+sys/getpeername.c
+sys/getpgrp.c
+sys/getpid.c
+sys/getppid.c
+sys/getpriority.c
+sys/getrlimit.c
+sys/getrusage.c
 sys/getsockname.c
-sys/fcntl.c
-sys/write.c
-sys/wait3.c
-sys/send.c
-sys/ftruncate.c
-sys/mkdir.c
-sys/rmdir.c
-sys/setgroups.c
+sys/getsockopt.c
+sys/gettimeofday.c
+sys/getuid.c
+sys/ioctl.c
+sys/kill.c
 sys/killpg.c
-sys/mount.c
+sys/link.c
+sys/listen.c
 sys/lseek.c
-sys/getsockopt.c
+sys/lstat.c
+sys/mkdir.c
+sys/mknod.c
+sys/mount.c
+sys/open.c
+sys/pipe.c
+sys/profil.c
 sys/ptrace.c
-sys/bind.c
 sys/quota.c
-sys/utimes.c
-sys/fstat.c
-sys/execl.c
-sys/unlink.c
-sys/getpagesize.c
-sys/chroot.c
-sys/getitimer.c
-sys/setsockopt.c
-sys/sigblock.c
-sys/sigstack.c
-sys/getegid.c
+sys/read.c
+sys/readlink.c
+sys/readv.c
+sys/reboot.c
 sys/recv.c
-sys/socketpair.c
+sys/recvfrom.c
+sys/recvmsg.c
+sys/rename.c
+sys/rmdir.c
 sys/sbrk.c
-sys/accept.c
-sys/ioctl.c
-sys/dup.c
-sys/getpid.c
-sys/fork.c
+sys/select.c
+sys/send.c
 sys/sendmsg.c
-sys/chdir.c
+sys/sendto.c
+sys/setgroups.c
+sys/sethostid.c
+sys/sethostname.c
+sys/setitimer.c
+sys/setpgrp.c
+sys/setpriority.c
+sys/setquota.c
 sys/setregid.c
-sys/geteuid.c
-sys/getppid.c
-sys/sync.c
 sys/setreuid.c
-sys/getgroups.c
-sys/connect.c
-sys/_exit.c
-sys/recvfrom.c
-sys/fchown.c
-sys/close.c
-sys/read.c
-sys/execv.c
-sys/sigreturn.c
-sys/brk.c
+sys/setrlimit.c
+sys/setsockopt.c
+sys/settimeofday.c
 sys/shutdown.c
-sys/sethostname.c
-sys/fsync.c
-sys/execve.c
-sys/getpriority.c
+sys/sigblock.c
+sys/sigpause.c
+sys/sigreturn.c
+sys/sigsetmask.c
+sys/sigstack.c
+sys/sigvec.c
+sys/socket.c
+sys/socketpair.c
+sys/stat.c
+sys/swapon.c
+sys/symlink.c
+sys/sync.c
+sys/truncate.c
+sys/umask.c
 sys/umount.c
-sys/lstat.c
-sys/setrlimit.c
+sys/unlink.c
+sys/utimes.c
 sys/vhangup.c
-sys/getdtablesize.c
-sys/sethostid.c
-sys/execle.c
+sys/vopen.c
 sys/wait.c
-sys/sigsetmask.c
-sys/readlink.c
-sys/pipe.c
+sys/wait3.c
+sys/write.c
 sys/writev.c
-sys/access.c
-sys/getpgrp.c
-sys/getuid.c
-sys/setitimer.c
-sys/select.c
-sys/setquota.c
-sys/rename.c
-sys/recvmsg.c
-sys/swapon.c
-sys/chown.c
-sys/fchmod.c
-sys/socket.c
-sys/profil.c
-gen/ldexp.c
-gen/abs.c
-gen/setjmp.c
-gen/atof.c
-gen/_setjmp.c
-gen/modf.c
index 875d939..db489fd 100644 (file)
@@ -8,10 +8,10 @@ CC=gcc -g -I${ROOT}/cross/include -Dx_vax -Wall -Wno-char-subscripts -Wno-deprec
 #      @(#)Makefile    5.4 (Berkeley) 9/5/85
 #
 
-SRCS=  close.c fstat.c getpagesize.c isatty.c lseek.c read.c sbrk.c vopen.c \
-       write.c _exit.c
-OBJS=  close.o fstat.o getpagesize.o isatty.o lseek.o read.o sbrk.o vopen.o \
-       write.o _exit.o
+SRCS=  close.c fstat.c getpagesize.c isatty.c lseek.c read.c readv.c sbrk.c \
+       vopen.c write.c writev.c _exit.c
+OBJS=  close.o fstat.o getpagesize.o isatty.o lseek.o read.o readv.o sbrk.o \
+       vopen.o write.o writev.o _exit.o
 TAGSFILE=tags
 
 .c.o:
diff --git a/lib/libx_c/linux/sys/readv.c b/lib/libx_c/linux/sys/readv.c
new file mode 100644 (file)
index 0000000..8fdb3d7
--- /dev/null
@@ -0,0 +1,26 @@
+#include <nox_unistd.h>
+#include <sys/nox_uio.h>
+
+#include <gen.h>
+#include <sys/errno.h>
+#include <sys/file.h>
+#include <sys/uio.h>
+
+int readv(f, v, l) int f; struct iovec *v; int l; {
+       int i;
+       struct nox_iovec iov[8];
+       int res;
+
+       if (l > 8) {
+               read(2, "readv(): iovec too large\n", 25);
+               abort();
+       }
+       for (i = 0; i < l; ++i) {
+               iov[i].nox_iov_base = v[i].iov_base;
+               iov[i].nox_iov_len = v[i].iov_len;
+       }
+       res = nox_readv(f, iov, l);
+       if (res == -1)
+               errno = EIO;
+       return res;
+}
index b030acd..7fee17a 100644 (file)
@@ -1,5 +1,6 @@
 #include <nox_fcntl.h>
 
+#include <gen.h>
 #include <sys/errno.h>
 #include <sys/file.h>
 #ifdef __STDC__
 #define _va_start(argp, arg) va_start(argp)
 #endif
 
-int vopen(f, m, argp) char *f; va_list argp; {
+int vopen(f, m, argp) char *f; int m; va_list argp; {
+       int flags;
+       nox_mode_t mode = 0;
        int res;
 
-       res = nox_open(f, m, m & O_CREAT ? va_arg(argp, int) : 0);
+       switch (m & 3) {
+       case O_RDONLY:
+               flags = nox_O_RDONLY;
+               break;
+       case O_WRONLY:
+               flags = nox_O_WRONLY;
+               break;
+       case O_RDWR:
+               flags = nox_O_RDWR;
+               break;
+       default:
+               write(2, "vopen(): invalid flags\n", 23);
+               abort();
+       }
+       if (m & O_NDELAY)
+               flags |= nox_O_NDELAY;
+       if (m & O_APPEND)
+               flags |= nox_O_APPEND;
+       if (m & O_CREAT) {
+               flags |= nox_O_CREAT;
+               mode = va_arg(argp, int);
+       }
+       if (m & O_TRUNC)
+               flags |= nox_O_TRUNC;
+       if (m & O_EXCL)
+               flags |= nox_O_EXCL;
+       res = nox_open(f, flags, mode);
        if (res == -1)
                errno = ENOENT;
        return res;
diff --git a/lib/libx_c/linux/sys/writev.c b/lib/libx_c/linux/sys/writev.c
new file mode 100644 (file)
index 0000000..437936f
--- /dev/null
@@ -0,0 +1,26 @@
+#include <nox_unistd.h>
+#include <sys/nox_uio.h>
+
+#include <gen.h>
+#include <sys/errno.h>
+#include <sys/file.h>
+#include <sys/uio.h>
+
+int writev(f, v, l) int f; struct iovec *v; int l; {
+       int i;
+       struct nox_iovec iov[8];
+       int res;
+
+       if (l > 8) {
+               write(2, "writev(): iovec too large\n", 26);
+               abort();
+       }
+       for (i = 0; i < l; ++i) {
+               iov[i].nox_iov_base = v[i].iov_base;
+               iov[i].nox_iov_len = v[i].iov_len;
+       }
+       res = nox_writev(f, iov, l);
+       if (res == -1)
+               errno = EIO;
+       return res;
+}
index 644a3ce..79c8ed2 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/sh
 rm -f ../libx_c.post/post.patch ../libx_c.post/post.patch.bak post.patch.bak
 mv post.patch ../post.patch.bak
-(cd ..; 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.c --exclude=*.[ch].usedby --exclude=*.[ch].uses libx_c.post libx_c >post.patch)
+(cd ..; 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 libx_c >post.patch)
 mv ../post.patch.bak ../post.patch .
 wc -l post.patch post.patch.bak
index 512cc8a..46de732 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/sh
 rm -f ../libx_c.pre/pre.patch ../libx_c.pre/pre.patch.bak pre.patch.bak
 mv pre.patch ../pre.patch.bak
-(cd ..; 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.c --exclude=*.[ch].usedby --exclude=*.[ch].uses libx_c.pre libx_c >pre.patch)
+(cd ..; 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 libx_c >pre.patch)
 mv ../pre.patch.bak ../pre.patch .
 wc -l pre.patch pre.patch.bak
index dcab5b0..41c837c 100755 (executable)
@@ -33,7 +33,7 @@ cp ../../usr.bin/lint/llib-lc .
 patch llib-lc <llib-lc.patch
 sed -e 's/[\t ]\+/ /g;s/^ /void /;s/\* /*/g;s/( /(/g;s/ )/)/g' <llib-lc >llib-lc.temp
 
-rm -f generated.txt
+rm -f a
 
 find vax -name '*.s' -print |\
 sed -e 's:^vax/\(.*\)\.s$:\1:' |\
@@ -57,18 +57,20 @@ do
       do
         grep "[^0-9A-Za-z_]$j[  ]*(" llib-lc.temp |\
         sed -e "s/{.*}/{\\n\\twrite(2, \"$j()\\\\n\", `expr length $j + 3`);\\n\\tabort();\\n}/"
-      done >a
-      if test -s a
+      done >b
+      if test -s b
       then
         rm vax/$i.s
         mkdir -p `dirname $i`
-        mv a $i.c
-        echo $i.c >>generated.txt
+        mv b $i.c
+        echo $i.c >>a
       fi
     fi
   fi
 done
 
+LC_ALL=C sort <a >generated.txt
+
 find vax -name Makefile -print |\
 while read i
 do
index 434d64f..30ba78d 100644 (file)
@@ -1,6 +1,6 @@
-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.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-20 14:13:50.265402116 +1100
-+++ libx_c/compat-4.1/Makefile 2017-01-20 14:13:50.297402309 +1100
+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-20 15:08:37.023597586 +1100
++++ libx_c/compat-4.1/Makefile 2017-01-20 15:08:37.059597681 +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
@@ -51,9 +51,9 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '
  # 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.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-20 14:13:50.289402261 +1100
-+++ libx_c/compat-sys5/Makefile        2017-01-20 14:13:50.297402309 +1100
+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-20 15:08:37.051597659 +1100
++++ libx_c/compat-sys5/Makefile        2017-01-20 15:08:37.059597681 +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
@@ -122,9 +122,9 @@ 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=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--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-20 14:13:50.289402261 +1100
-+++ libx_c/gen/bcopy.c 2017-01-20 14:13:50.297402309 +1100
+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-20 15:08:37.051597659 +1100
++++ libx_c/gen/bcopy.c 2017-01-20 15:08:37.059597681 +1100
 @@ -1,6 +1,12 @@
  #include <gen.h>
  #include <sys/types.h>
@@ -158,9 +158,9 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '
                                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.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-20 14:13:50.289402261 +1100
-+++ libx_c/gen/getpass.c       2017-01-20 14:13:50.297402309 +1100
+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-20 15:08:37.051597659 +1100
++++ libx_c/gen/getpass.c       2017-01-20 15:08:37.059597681 +1100
 @@ -20,7 +20,7 @@
        FILE *fi;
        static char pbuf[9];
@@ -170,9 +170,9 @@ 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=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--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-20 14:13:50.289402261 +1100
-+++ libx_c/gen/getpwnamuid.c   2017-01-20 14:13:50.297402309 +1100
+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-20 15:08:37.051597659 +1100
++++ libx_c/gen/getpwnamuid.c   2017-01-20 15:08:37.059597681 +1100
 @@ -44,19 +44,37 @@
          cp = key.dptr;
        tp = line;
@@ -211,9 +211,9 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '
          return (&passwd);
  }
  
-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.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.post/gen/Makefile libx_c/gen/Makefile
---- libx_c.post/gen/Makefile   2017-01-20 14:13:50.293402285 +1100
-+++ libx_c/gen/Makefile        2017-01-20 14:13:50.297402309 +1100
+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-20 15:08:37.051597659 +1100
++++ libx_c/gen/Makefile        2017-01-20 15:08:37.059597681 +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
@@ -445,9 +445,9 @@ 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=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--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-20 14:13:50.289402261 +1100
-+++ libx_c/gen/malloc.c        2017-01-20 14:13:50.301402334 +1100
+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-20 15:08:37.051597659 +1100
++++ libx_c/gen/malloc.c        2017-01-20 15:08:37.059597681 +1100
 @@ -4,6 +4,12 @@
  #include <sys/proc.h>
  #include <sys/types.h>
@@ -507,9 +507,9 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '
                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.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-20 14:13:50.289402261 +1100
-+++ libx_c/gen/ndbm.c  2017-01-20 14:13:50.301402334 +1100
+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-20 15:08:37.051597659 +1100
++++ libx_c/gen/ndbm.c  2017-01-20 15:08:37.059597681 +1100
 @@ -70,14 +70,14 @@
                flags = (flags & ~03) | O_RDWR;
        strcpy(db->dbm_pagbuf, file);
@@ -527,9 +527,9 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '
        db->dbm_dirf = vopen(db->dbm_pagbuf, flags, argp);
        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.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-20 14:13:50.293402285 +1100
-+++ libx_c/gen/qsort.c 2017-01-20 14:13:50.301402334 +1100
+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-20 15:08:37.051597659 +1100
++++ libx_c/gen/qsort.c 2017-01-20 15:08:37.059597681 +1100
 @@ -36,7 +36,7 @@
  
  static void qst __P((char *base, char *max));
@@ -539,9 +539,9 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '
  #define base ((char *)_base)
        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.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-20 14:13:50.289402261 +1100
-+++ libx_c/gen/scandir.c       2017-01-20 14:13:50.301402334 +1100
+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-20 15:08:37.051597659 +1100
++++ libx_c/gen/scandir.c       2017-01-20 15:08:37.059597681 +1100
 @@ -24,7 +24,7 @@
  /*#include <sys/stat.h>*/
  /*#include <sys/dir.h>*/
@@ -560,9 +560,9 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '
        *namelist = names;
        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.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-20 14:13:50.289402261 +1100
-+++ libx_c/gen/signal.c        2017-01-20 14:13:50.301402334 +1100
+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-20 15:08:37.051597659 +1100
++++ libx_c/gen/signal.c        2017-01-20 15:08:37.063597691 +1100
 @@ -15,12 +15,12 @@
   */
  /*#include <signal.h>*/
@@ -585,9 +585,9 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '
 -      return (osv.sv_handler);
 +      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.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-20 14:13:50.293402285 +1100
-+++ libx_c/gen/sleep.c 2017-01-20 14:13:50.301402334 +1100
+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-20 15:08:37.051597659 +1100
++++ libx_c/gen/sleep.c 2017-01-20 15:08:37.063597691 +1100
 @@ -15,7 +15,7 @@
  /*#include <signal.h>*/
  
@@ -597,9 +597,9 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '
  
  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.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-20 14:13:50.289402261 +1100
-+++ libx_c/gen/system.c        2017-01-20 14:13:50.301402334 +1100
+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-20 15:08:37.051597659 +1100
++++ libx_c/gen/system.c        2017-01-20 15:08:37.063597691 +1100
 @@ -11,7 +11,7 @@
  
  int system(s) char *s; {
@@ -609,9 +609,9 @@ 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=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--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-20 14:13:50.289402261 +1100
-+++ libx_c/gen/usleep.c        2017-01-20 14:13:50.301402334 +1100
+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-20 15:08:37.051597659 +1100
++++ libx_c/gen/usleep.c        2017-01-20 15:08:37.063597691 +1100
 @@ -18,7 +18,7 @@
  #define TICK  10000           /* system clock resolution in microseconds */
  
@@ -621,9 +621,9 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '
  
  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.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-20 14:13:50.289402261 +1100
-+++ libx_c/gen/valloc.c        2017-01-20 14:13:50.301402334 +1100
+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-20 15:08:37.051597659 +1100
++++ libx_c/gen/valloc.c        2017-01-20 15:08:37.063597691 +1100
 @@ -1,6 +1,12 @@
  #include <gen.h>
  #include <sys.h>
@@ -650,9 +650,9 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '
 +      j = ((INT)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.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.post/gen.h libx_c/gen.h
---- libx_c.post/gen.h  2017-01-20 14:13:50.269402140 +1100
-+++ libx_c/gen.h       2017-01-20 14:13:50.301402334 +1100
+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-20 15:08:37.027597596 +1100
++++ libx_c/gen.h       2017-01-20 15:08:37.063597691 +1100
 @@ -108,7 +108,7 @@
  char *mktemp __P((char *as));
  
@@ -662,9 +662,9 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '
  
  /* 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.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.post/inet/Makefile libx_c/inet/Makefile
---- libx_c.post/inet/Makefile  2017-01-20 14:13:50.269402140 +1100
-+++ libx_c/inet/Makefile       2017-01-20 14:13:50.301402334 +1100
+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-20 15:08:37.027597596 +1100
++++ libx_c/inet/Makefile       2017-01-20 15:08:37.063597691 +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,9 +725,9 @@ 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=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.post/linux/csu/crt0.c libx_c/linux/csu/crt0.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/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-20 12:19:51.000000000 +1100
++++ libx_c/linux/csu/crt0.c    2017-01-20 15:08:37.063597691 +1100
 @@ -0,0 +1,19 @@
 +#include <stdio.h>
 +
@@ -748,9 +748,9 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '
 +      environ = nox_environ;
 +      exit(main(argc, argv));
 +}
-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.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.post/linux/csu/Makefile libx_c/linux/csu/Makefile
+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-20 12:09:42.000000000 +1100
++++ libx_c/linux/csu/Makefile  2017-01-20 15:08:37.063597691 +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
@@ -849,9 +849,9 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '
 +
 +# 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.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.post/linux/gen/abort.c libx_c/linux/gen/abort.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/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-20 12:11:05.000000000 +1100
++++ libx_c/linux/gen/abort.c   2017-01-20 15:08:37.063597691 +1100
 @@ -0,0 +1,7 @@
 +#include <nox_stdlib.h>
 +
@@ -860,10 +860,9 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '
 +int abort() {
 +      nox_abort();
 +}
-Binary files libx_c.post/linux/gen/genlib and libx_c/linux/gen/genlib differ
-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.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.post/linux/gen/Makefile libx_c/linux/gen/Makefile
+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-20 12:11:05.000000000 +1100
++++ libx_c/linux/gen/Makefile  2017-01-20 15:08:37.063597691 +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
@@ -920,9 +919,9 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '
 +
 +# 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.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.post/linux/gen/modf.c libx_c/linux/gen/modf.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/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-20 12:11:05.000000000 +1100
++++ libx_c/linux/gen/modf.c    2017-01-20 15:08:37.063597691 +1100
 @@ -0,0 +1,7 @@
 +#include <nox_math.h>
 +
@@ -931,10 +930,9 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '
 +double modf(v, p) double v; double *p; {
 +      return nox_modf(v, p);
 +}
-Binary files libx_c.post/linux/linuxlib and libx_c/linux/linuxlib differ
-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.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.post/linux/Makefile libx_c/linux/Makefile
+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-20 12:09:42.000000000 +1100
++++ libx_c/linux/Makefile      2017-01-20 15:08:37.063597691 +1100
 @@ -0,0 +1,43 @@
 +#
 +# Copyright (c) 1980 Regents of the University of California.
@@ -979,9 +977,9 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '
 +depend:
 +      for i in ${ALL}; do \
 +              (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.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.post/linux/sys/close.c libx_c/linux/sys/close.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/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-20 12:24:42.000000000 +1100
++++ libx_c/linux/sys/close.c   2017-01-20 15:08:37.063597691 +1100
 @@ -0,0 +1,13 @@
 +#include <nox_unistd.h>
 +
@@ -996,9 +994,9 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '
 +              errno = EBADF;
 +      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.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.post/linux/sys/_exit.c libx_c/linux/sys/_exit.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/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-20 12:21:29.000000000 +1100
++++ libx_c/linux/sys/_exit.c   2017-01-20 15:08:37.063597691 +1100
 @@ -0,0 +1,7 @@
 +#include <nox_unistd.h>
 +
@@ -1007,9 +1005,9 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '
 +void _exit(s) int s; {
 +      nox__exit(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.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.post/linux/sys/fstat.c libx_c/linux/sys/fstat.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/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-20 12:11:05.000000000 +1100
++++ libx_c/linux/sys/fstat.c   2017-01-20 15:08:37.063597691 +1100
 @@ -0,0 +1,17 @@
 +#include <sys/nox_stat.h>
 +#include <nox_unistd.h>
@@ -1028,9 +1026,9 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '
 +      b->st_size = (off_t)statbuf.nox_st_size;
 +      return 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.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.post/linux/sys/getpagesize.c libx_c/linux/sys/getpagesize.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/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-20 12:11:05.000000000 +1100
++++ libx_c/linux/sys/getpagesize.c     2017-01-20 15:08:37.063597691 +1100
 @@ -0,0 +1,7 @@
 +#include <nox_unistd.h>
 +
@@ -1039,9 +1037,9 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '
 +int getpagesize() {
 +      return nox_getpagesize();
 +}
-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.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.post/linux/sys/isatty.c libx_c/linux/sys/isatty.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/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-20 12:11:05.000000000 +1100
++++ libx_c/linux/sys/isatty.c  2017-01-20 15:08:37.063597691 +1100
 @@ -0,0 +1,13 @@
 +#include <nox_unistd.h>
 +
@@ -1056,9 +1054,9 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '
 +              errno = EBADF;
 +      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.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.post/linux/sys/lseek.c libx_c/linux/sys/lseek.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/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-20 12:32:39.000000000 +1100
++++ libx_c/linux/sys/lseek.c   2017-01-20 15:08:37.063597691 +1100
 @@ -0,0 +1,15 @@
 +#include <nox_unistd.h>
 +#include <sys/nox_types.h>
@@ -1075,9 +1073,9 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '
 +              errno = EINVAL;
 +      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.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.post/linux/sys/Makefile libx_c/linux/sys/Makefile
+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-20 14:15:29.885950308 +1100
++++ libx_c/linux/sys/Makefile  2017-01-20 15:08:37.063597691 +1100
 @@ -0,0 +1,57 @@
 +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
@@ -1089,10 +1087,10 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '
 +#     @(#)Makefile    5.4 (Berkeley) 9/5/85
 +#
 +
-+SRCS= close.c fstat.c getpagesize.c isatty.c lseek.c read.c sbrk.c vopen.c \
-+      write.c _exit.c
-+OBJS= close.o fstat.o getpagesize.o isatty.o lseek.o read.o sbrk.o vopen.o \
-+      write.o _exit.o
++SRCS= close.c fstat.c getpagesize.c isatty.c lseek.c read.c readv.c sbrk.c \
++      vopen.c write.c writev.c _exit.c
++OBJS= close.o fstat.o getpagesize.o isatty.o lseek.o read.o readv.o sbrk.o \
++      vopen.o write.o writev.o _exit.o
 +TAGSFILE=tags
 +
 +.c.o:
@@ -1136,9 +1134,9 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '
 +
 +# 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.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.post/linux/sys/read.c libx_c/linux/sys/read.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/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-20 12:23:18.000000000 +1100
++++ libx_c/linux/sys/read.c    2017-01-20 15:08:37.063597691 +1100
 @@ -0,0 +1,15 @@
 +#include <nox_unistd.h>
 +
@@ -1155,9 +1153,39 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '
 +      }
 +      return (int)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.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.post/linux/sys/sbrk.c libx_c/linux/sys/sbrk.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/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-20 15:08:37.063597691 +1100
+@@ -0,0 +1,26 @@
++#include <nox_unistd.h>
++#include <sys/nox_uio.h>
++
++#include <gen.h>
++#include <sys/errno.h>
++#include <sys/file.h>
++#include <sys/uio.h>
++
++int readv(f, v, l) int f; struct iovec *v; int l; {
++      int i;
++      struct nox_iovec iov[8];
++      int res;
++
++      if (l > 8) {
++              read(2, "readv(): iovec too large\n", 25);
++              abort();
++      }
++      for (i = 0; i < l; ++i) {
++              iov[i].nox_iov_base = v[i].iov_base;
++              iov[i].nox_iov_len = v[i].iov_len;
++      }
++      res = nox_readv(f, iov, l);
++      if (res == -1)
++              errno = EIO;
++      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/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-20 12:11:18.000000000 +1100
++++ libx_c/linux/sys/sbrk.c    2017-01-20 15:08:37.063597691 +1100
 @@ -0,0 +1,14 @@
 +#include <nox_stdint.h>
 +#include <nox_unistd.h>
@@ -1173,13 +1201,13 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '
 +              errno = ENOMEM;
 +      return res;
 +}
-Binary files libx_c.post/linux/sys/syslib and libx_c/linux/sys/syslib differ
-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.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.post/linux/sys/vopen.c libx_c/linux/sys/vopen.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/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-20 14:16:40.382239502 +1100
-@@ -0,0 +1,20 @@
++++ libx_c/linux/sys/vopen.c   2017-01-20 15:08:37.063597691 +1100
+@@ -0,0 +1,49 @@
 +#include <nox_fcntl.h>
 +
++#include <gen.h>
 +#include <sys/errno.h>
 +#include <sys/file.h>
 +#ifdef __STDC__
@@ -1190,17 +1218,45 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '
 +#define _va_start(argp, arg) va_start(argp)
 +#endif
 +
-+int vopen(f, m, argp) char *f; va_list argp; {
++int vopen(f, m, argp) char *f; int m; va_list argp; {
++      int flags;
++      nox_mode_t mode = 0;
 +      int res;
 +
-+      res = nox_open(f, m, m & O_CREAT ? va_arg(argp, int) : 0);
++      switch (m & 3) {
++      case O_RDONLY:
++              flags = nox_O_RDONLY;
++              break;
++      case O_WRONLY:
++              flags = nox_O_WRONLY;
++              break;
++      case O_RDWR:
++              flags = nox_O_RDWR;
++              break;
++      default:
++              write(2, "vopen(): invalid flags\n", 23);
++              abort();
++      }
++      if (m & O_NDELAY)
++              flags |= nox_O_NDELAY;
++      if (m & O_APPEND)
++              flags |= nox_O_APPEND;
++      if (m & O_CREAT) {
++              flags |= nox_O_CREAT;
++              mode = va_arg(argp, int);
++      }
++      if (m & O_TRUNC)
++              flags |= nox_O_TRUNC;
++      if (m & O_EXCL)
++              flags |= nox_O_EXCL;
++      res = nox_open(f, flags, mode);
 +      if (res == -1)
 +              errno = ENOENT;
 +      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.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.post/linux/sys/write.c libx_c/linux/sys/write.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/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-20 12:11:05.000000000 +1100
++++ libx_c/linux/sys/write.c   2017-01-20 15:08:37.063597691 +1100
 @@ -0,0 +1,15 @@
 +#include <nox_unistd.h>
 +
@@ -1217,9 +1273,39 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '
 +      }
 +      return (int)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.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.post/Makefile libx_c/Makefile
---- libx_c.post/Makefile       2017-01-20 14:13:50.269402140 +1100
-+++ libx_c/Makefile    2017-01-20 14:13:50.301402334 +1100
+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-20 15:08:37.063597691 +1100
+@@ -0,0 +1,26 @@
++#include <nox_unistd.h>
++#include <sys/nox_uio.h>
++
++#include <gen.h>
++#include <sys/errno.h>
++#include <sys/file.h>
++#include <sys/uio.h>
++
++int writev(f, v, l) int f; struct iovec *v; int l; {
++      int i;
++      struct nox_iovec iov[8];
++      int res;
++
++      if (l > 8) {
++              write(2, "writev(): iovec too large\n", 26);
++              abort();
++      }
++      for (i = 0; i < l; ++i) {
++              iov[i].nox_iov_base = v[i].iov_base;
++              iov[i].nox_iov_len = v[i].iov_len;
++      }
++      res = nox_writev(f, iov, l);
++      if (res == -1)
++              errno = EIO;
++      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-20 15:08:37.027597596 +1100
++++ libx_c/Makefile    2017-01-20 15:08:37.063597691 +1100
 @@ -1,3 +1,5 @@
 +ROOT=${shell pwd}/../..
 +DESTDIR=${ROOT}/cross
@@ -1292,9 +1378,9 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '
        cd ${MACHINE}/csu; make DESTDIR=${DESTDIR} install
  
  tags:
-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.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-20 14:13:50.265402116 +1100
-+++ libx_c/net/hosttable/Makefile      2017-01-20 14:13:50.301402334 +1100
+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-20 15:08:37.023597586 +1100
++++ libx_c/net/hosttable/Makefile      2017-01-20 15:08:37.063597691 +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
@@ -1349,9 +1435,9 @@ 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=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--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-20 14:13:50.265402116 +1100
-+++ libx_c/net/Makefile        2017-01-20 14:13:50.301402334 +1100
+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-20 15:08:37.023597586 +1100
++++ libx_c/net/Makefile        2017-01-20 15:08:37.063597691 +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
@@ -1452,9 +1538,9 @@ 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=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--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-20 14:13:50.265402116 +1100
-+++ libx_c/net/named/gethostnamadr.c   2017-01-20 14:13:50.301402334 +1100
+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-20 15:08:37.027597596 +1100
++++ libx_c/net/named/gethostnamadr.c   2017-01-20 15:08:37.063597691 +1100
 @@ -12,6 +12,12 @@
  #include <sys/socket.h>
  #include <sys/types.h>
@@ -1479,9 +1565,9 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '
  
                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.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-20 14:13:50.265402116 +1100
-+++ libx_c/net/named/Makefile  2017-01-20 14:13:50.301402334 +1100
+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-20 15:08:37.027597596 +1100
++++ libx_c/net/named/Makefile  2017-01-20 15:08:37.063597691 +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
@@ -1542,9 +1628,9 @@ 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=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--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-20 14:13:50.261402091 +1100
-+++ libx_c/ns/Makefile 2017-01-20 14:13:50.301402334 +1100
+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-20 15:08:37.019597575 +1100
++++ libx_c/ns/Makefile 2017-01-20 15:08:37.063597691 +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
@@ -1599,9 +1685,9 @@ 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=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--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-20 14:13:50.261402091 +1100
-+++ libx_c/stdio/doprnt.c      2017-01-20 14:13:50.301402334 +1100
+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-20 15:08:37.019597575 +1100
++++ libx_c/stdio/doprnt.c      2017-01-20 15:08:37.063597691 +1100
 @@ -13,6 +13,14 @@
  #define _va_start(argp, arg) va_start(argp)
  #endif
@@ -1645,9 +1731,9 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '
                        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.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-20 14:13:50.261402091 +1100
-+++ libx_c/stdio/findiop.c     2017-01-20 14:13:50.301402334 +1100
+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-20 15:08:37.019597575 +1100
++++ libx_c/stdio/findiop.c     2017-01-20 15:08:37.063597691 +1100
 @@ -105,7 +105,7 @@
                        *iov = (FILE *)calloc(1, sizeof **iov);
  }
@@ -1657,9 +1743,9 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '
        register FILE **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.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.post/stdio/Makefile libx_c/stdio/Makefile
---- libx_c.post/stdio/Makefile 2017-01-20 14:13:50.261402091 +1100
-+++ libx_c/stdio/Makefile      2017-01-20 14:13:50.301402334 +1100
+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-20 15:08:37.019597575 +1100
++++ libx_c/stdio/Makefile      2017-01-20 15:08:37.063597691 +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
@@ -1791,9 +1877,9 @@ 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=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--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-20 14:13:50.273402164 +1100
-+++ libx_c/stdio.h     2017-01-20 14:13:50.301402334 +1100
+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-20 15:08:37.031597606 +1100
++++ libx_c/stdio.h     2017-01-20 15:08:37.063597691 +1100
 @@ -109,7 +109,7 @@
  FILE *_findiop __P((void));
  int _f_morefiles __P((void));
@@ -1803,9 +1889,9 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '
  void _cleanup __P((void));
  
  /* stdio/flsbuf.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.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-20 14:13:50.277402188 +1100
-+++ libx_c/sys/dir.h   2017-01-20 14:13:50.301402334 +1100
+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-20 15:08:37.035597617 +1100
++++ libx_c/sys/dir.h   2017-01-20 15:08:37.063597691 +1100
 @@ -122,7 +122,7 @@
  struct direct *readdir __P((register DIR *dirp));
  
@@ -1815,9 +1901,9 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '
  int alphasort __P((struct direct **d1, struct direct **d2));
  
  /* 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.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.post/sys/Makefile libx_c/sys/Makefile
+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-20 14:13:50.301402334 +1100
++++ libx_c/sys/Makefile        2017-01-20 15:08:37.063597691 +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
@@ -1912,9 +1998,9 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '
 +
 +# 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.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-20 14:13:50.277402188 +1100
-+++ libx_c/sys/open.c  2017-01-20 14:14:59.497806536 +1100
+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-20 15:08:37.035597617 +1100
++++ libx_c/sys/open.c  2017-01-20 15:08:37.067597702 +1100
 @@ -17,7 +17,7 @@
        va_list argp;
        int res;
@@ -1924,9 +2010,9 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '
        res = vopen(f, m, argp);
        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.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-20 14:13:50.273402164 +1100
-+++ libx_c/sys/signal.h        2017-01-20 14:13:50.301402334 +1100
+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-20 15:08:37.035597617 +1100
++++ libx_c/sys/signal.h        2017-01-20 15:08:37.067597702 +1100
 @@ -9,7 +9,7 @@
   *    @(#)signal.h    7.1 (Berkeley) 6/4/86
   */
index 03574cc..c5cb72b 100644 (file)
@@ -1,6 +1,6 @@
-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.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 14:09:48.623935316 +1100
-+++ libx_c/compat-4.1/ftime.c  2017-01-20 14:09:48.631935348 +1100
+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
 @@ -10,18 +10,20 @@
  
  #include <sys/types.h>
@@ -28,9 +28,9 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '
  
  ftime(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.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 14:09:48.623935316 +1100
-+++ libx_c/compat-4.1/gtty.c   2017-01-20 14:09:48.631935348 +1100
+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 @@
  #include <sgtty.h>
  
@@ -40,9 +40,9 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '
  
        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.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 14:09:48.623935316 +1100
-+++ libx_c/compat-4.1/stty.c   2017-01-20 14:09:48.631935348 +1100
+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 @@
  #include <sgtty.h>
  
@@ -52,9 +52,9 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '
  
        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.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 14:09:48.623935316 +1100
-+++ libx_c/compat-4.1/times.c  2017-01-20 14:09:48.631935348 +1100
+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
 @@ -10,16 +10,18 @@
  
  #include <sys/time.h>
@@ -80,9 +80,9 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '
  
  times(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.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 14:09:48.623935316 +1100
-+++ libx_c/compat-4.1/vtimes.c 2017-01-20 14:09:48.631935348 +1100
+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
 @@ -10,23 +10,25 @@
  
  #include <sys/time.h>
@@ -121,9 +121,9 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '
  
  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.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 14:09:48.627935332 +1100
-+++ libx_c/compat-sys5/memccpy.c       2017-01-20 14:09:48.631935348 +1100
+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 @@
  #endif
  
@@ -142,9 +142,9 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '
 +#undef 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.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 14:09:48.627935332 +1100
-+++ libx_c/compat-sys5/memchr.c        2017-01-20 14:09:48.631935348 +1100
+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 @@
  static char sccsid[] = "@(#)memchr.c  5.2 (Berkeley) 86/03/09";
  #endif
@@ -163,9 +163,9 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '
        return (0);
 +#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.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 14:09:48.627935332 +1100
-+++ libx_c/compat-sys5/memcmp.c        2017-01-20 14:09:48.631935348 +1100
+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 @@
  static char sccsid[] = "@(#)memcmp.c  5.2 (Berkeley) 86/03/09";
  #endif
@@ -184,9 +184,9 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '
 +#undef s1
 +#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.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 14:09:48.627935332 +1100
-+++ libx_c/compat-sys5/memcpy.c        2017-01-20 14:09:48.631935348 +1100
+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 @@
  static char sccsid[] = "@(#)memcpy.c  5.2 (Berkeley) 86/03/09";
  #endif
@@ -209,9 +209,9 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '
 +#undef 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.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 14:09:48.627935332 +1100
-+++ libx_c/compat-sys5/memset.c        2017-01-20 14:09:48.631935348 +1100
+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 @@
  static char sccsid[] = "@(#)memset.c  5.2 (Berkeley) 86/03/09";
  #endif
@@ -232,8 +232,8 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '
        return (p);
 +#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.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.pre/fcntl.h libx_c/fcntl.h
---- libx_c.pre/fcntl.h 2017-01-20 14:09:48.623935316 +1100
+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/fcntl.h     1970-01-01 10:00:00.000000000 +1000
 @@ -1,40 +0,0 @@
 -/*
@@ -276,9 +276,9 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '
 -#define       FTRUNC          02000           /* truncate to zero length */
 -#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.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 14:09:48.631935348 +1100
-+++ libx_c/gen/bcmp.c  2017-01-20 14:09:48.631935348 +1100
+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 @@
  /*
   * bcmp -- vax cmpc3 instruction
@@ -301,9 +301,9 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '
 +#undef b1
 +#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.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 14:09:48.627935332 +1100
-+++ libx_c/gen/bcopy.c 2017-01-20 14:09:48.631935348 +1100
+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 @@
  /*
   * bcopy -- vax movc3 instruction
@@ -340,9 +340,9 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '
 +#undef src
 +#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.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 14:09:48.631935348 +1100
-+++ libx_c/gen/bzero.c 2017-01-20 14:09:48.631935348 +1100
+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 @@
  /*
   * bzero -- vax movc5 instruction
@@ -361,9 +361,9 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '
        return(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.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 14:09:48.627935332 +1100
-+++ libx_c/gen/calloc.c        2017-01-20 14:09:48.631935348 +1100
+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 @@
  /*
   * Calloc - allocate and clear memory block
@@ -388,9 +388,9 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '
        unsigned num;
        unsigned size; {
        free(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.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 14:09:48.627935332 +1100
-+++ libx_c/gen/fakcu.c 2017-01-20 14:09:48.631935348 +1100
+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 @@
   * Null cleanup routine to resolve reference in exit() 
   * if not using stdio.
@@ -398,9 +398,9 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '
 +void
  _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.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 14:09:48.627935332 +1100
-+++ libx_c/gen/getpass.c       2017-01-20 14:09:48.631935348 +1100
+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 @@
        register c;
        FILE *fi;
@@ -412,9 +412,9 @@ 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=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--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 14:09:48.631935348 +1100
-+++ libx_c/gen/getusershell.c  2017-01-20 14:09:48.631935348 +1100
+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 @@
        register char **sp, *cp;
        register FILE *fp;
@@ -433,9 +433,9 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '
                (void)fclose(fp);
                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.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 14:09:48.627935332 +1100
-+++ libx_c/gen/insque.c        2017-01-20 14:09:48.635935365 +1100
+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
 @@ -8,16 +8,19 @@
  static char sccsid[] = "@(#)insque.c  5.1 (Berkeley) 1/27/87";
  #endif
@@ -460,8 +460,8 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '
  
  insque(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.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 14:09:48.627935332 +1100
+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/gen/isatty.c        1970-01-01 10:00:00.000000000 +1000
 @@ -1,17 +0,0 @@
 -#if defined(LIBC_SCCS) && !defined(lint)
@@ -481,9 +481,9 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '
 -              return(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.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 14:09:48.631935348 +1100
-+++ libx_c/gen/malloc.c        2017-01-20 14:09:48.635935365 +1100
+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
 @@ -82,7 +82,7 @@
  #if defined(DEBUG) || defined(RCHECK)
  #define       ASSERT(p)   if (!(p)) botch("p")
@@ -541,9 +541,9 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '
  mstats(s)
        char *s; {
        register int i, 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.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 14:09:48.627935332 +1100
-+++ libx_c/gen/ndbm.c  2017-01-20 14:09:48.635935365 +1100
+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
 @@ -14,6 +14,7 @@
  #include <stdio.h>
  #include <errno.h>
@@ -585,9 +585,9 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '
        if (db->dbm_dirf < 0)
                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.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 14:09:48.627935332 +1100
-+++ libx_c/gen/perror.c        2017-01-20 14:09:48.635935365 +1100
+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
 @@ -17,7 +17,7 @@
  
  int   errno;
@@ -597,8 +597,8 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '
  perror(s)
        char *s; {
        struct iovec iov[4];
-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.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 14:09:48.631935348 +1100
+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/gen/popen.c 1970-01-01 10:00:00.000000000 +1000
 @@ -1,77 +0,0 @@
 -/*
@@ -678,9 +678,9 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '
 -      (void) sigsetmask(omask);
 -      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.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 14:09:48.631935348 +1100
-+++ libx_c/gen/qsort.c 2017-01-20 14:09:48.635935365 +1100
+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 @@
   * It's not...
   */
@@ -714,9 +714,9 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '
  qst(base, max)
        char *base, *max; {
        register char c, *i, *j, *jj;
-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.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 14:09:48.627935332 +1100
-+++ libx_c/gen/random.c        2017-01-20 14:09:48.635935365 +1100
+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 @@
        if(  n  <  BREAK_1  )  {
            if(  n  <  BREAK_0  )  {
@@ -726,9 +726,9 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '
            }
            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.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 14:09:48.631935348 +1100
-+++ libx_c/gen/regex.c 2017-01-20 14:09:48.635935365 +1100
+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
 @@ -8,8 +8,6 @@
  static char sccsid[] = "@(#)regex.c   5.2 (Berkeley) 3/9/86";
  #endif
@@ -738,9 +738,9 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '
  /*
   * 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.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 14:09:48.631935348 +1100
-+++ libx_c/gen/remque.c        2017-01-20 14:09:48.635935365 +1100
+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
 @@ -8,16 +8,19 @@
  static char sccsid[] = "@(#)remque.c  5.1 (Berkeley) 1/27/87";
  #endif
@@ -765,9 +765,9 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '
  
  remque(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.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 14:09:48.627935332 +1100
-+++ libx_c/gen/signal.c        2017-01-20 14:09:48.635935365 +1100
+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
 @@ -13,9 +13,10 @@
   */
  #include <signal.h>
@@ -781,9 +781,9 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '
        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.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 14:09:48.631935348 +1100
-+++ libx_c/gen/sleep.c 2017-01-20 14:09:48.635935365 +1100
+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 @@
  
  static int ringring;
@@ -807,9 +807,9 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '
 -
        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.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 14:09:48.631935348 +1100
-+++ libx_c/gen/syslog.c        2017-01-20 14:09:48.635935365 +1100
+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 @@
  extern        int errno, sys_nerr;
  extern        char *sys_errlist[];
@@ -836,9 +836,9 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '
        (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.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 14:09:48.627935332 +1100
-+++ libx_c/gen/system.c        2017-01-20 14:09:48.635935365 +1100
+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; {
@@ -848,9 +848,9 @@ 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=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--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 14:09:48.627935332 +1100
-+++ libx_c/gen/usleep.c        2017-01-20 14:09:48.635935365 +1100
+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 @@
  
  static int ringring;
@@ -874,9 +874,9 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '
 -
        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.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 14:09:48.627935332 +1100
-+++ libx_c/gen/valloc.c        2017-01-20 14:09:48.635935365 +1100
+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
 @@ -8,9 +8,9 @@
  static char sccsid[] = "@(#)valloc.c  5.2 (Berkeley) 3/9/86";
  #endif
@@ -889,18 +889,29 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '
  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.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.pre/gen.h libx_c/gen.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/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
+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 14:09:48.635935365 +1100
++++ libx_c/gen.h       2017-01-20 15:07:14.071375330 +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_next;
 +      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.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 14:09:48.623935316 +1100
-+++ libx_c/net/rcmd.c  2017-01-20 14:09:48.635935365 +1100
+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 @@
                sin.sin_family = hp->h_addrtype;
                bcopy(hp->h_addr_list[0], (caddr_t)&sin.sin_addr, hp->h_length);
@@ -928,9 +939,9 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '
                        return (s);
                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.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 14:09:48.623935316 +1100
-+++ libx_c/net/res_debug.c     2017-01-20 14:09:48.635935365 +1100
+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 @@
  }
  
@@ -965,9 +976,9 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '
 +              return nbuf;
        }
  }
-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.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 14:09:48.623935316 +1100
-+++ libx_c/net/res_mkquery.c   2017-01-20 14:09:48.635935365 +1100
+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
 @@ -14,7 +14,10 @@
  #include <arpa/nameser.h>
  #include <resolv.h>
@@ -991,9 +1002,9 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '
        }
        /*
         * 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.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 14:09:48.623935316 +1100
-+++ libx_c/net/res_send.c      2017-01-20 14:09:48.635935365 +1100
+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
                                        continue;
@@ -1012,9 +1023,9 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '
                            sizeof(struct sockaddr)) < 0 ||
                            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.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 14:09:48.623935316 +1100
-+++ libx_c/net/rexec.c 2017-01-20 14:09:48.635935365 +1100
+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 @@
        sin.sin_family = hp->h_addrtype;
        sin.sin_port = rport;
@@ -1033,9 +1044,9 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '
                  close(s2);
                  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.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 14:09:48.623935316 +1100
-+++ libx_c/net/ruserpass.c     2017-01-20 14:09:48.635935365 +1100
+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
 @@ -19,6 +19,7 @@
  struct        utmp *getutmp();
  static        FILE *cfile;
@@ -1115,9 +1126,9 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '
  mkpwclear(sencpasswd,mch,spasswd)
        char mch, *spasswd, *sencpasswd; {
        register char *skey;
-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.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.pre/net.h libx_c/net.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/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 14:09:48.635935365 +1100
++++ libx_c/net.h       2017-01-20 15:07:14.071375330 +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 */
@@ -1135,9 +1146,9 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '
 +u_short       ntohs(), htons();
 +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.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 14:09:48.623935316 +1100
-+++ libx_c/netinet/in.h        2017-01-20 14:09:48.635935365 +1100
+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
 @@ -90,20 +90,21 @@
   */
  #define       IP_OPTIONS      1               /* set/get IP per-packet options */
@@ -1170,9 +1181,9 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '
  
  #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.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 14:09:48.623935316 +1100
-+++ libx_c/netinet/ip.h        2017-01-20 14:09:48.639935381 +1100
+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
 @@ -81,7 +81,7 @@
                        struct in_addr ipt_addr;
                        n_long ipt_time;
@@ -1182,9 +1193,9 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '
  };
  
  /* 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.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 14:09:48.623935316 +1100
-+++ libx_c/netinet/tcp.h       2017-01-20 14:09:48.639935381 +1100
+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
 @@ -44,7 +44,9 @@
  #ifdef        lint
  #define       TCP_MSS 536
@@ -1196,9 +1207,9 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '
  #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.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 14:09:48.623935316 +1100
-+++ libx_c/netns/ns.h  2017-01-20 14:09:48.639935381 +1100
+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
 @@ -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))
@@ -1231,8 +1242,8 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '
  
  #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.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.pre/nlist.h libx_c/nlist.h
---- libx_c.pre/nlist.h 2017-01-20 14:09:48.623935316 +1100
+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/nlist.h     1970-01-01 10:00:00.000000000 +1000
 @@ -1,46 +0,0 @@
 -/*
@@ -1281,9 +1292,9 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '
 - * Format for namelist values.
 - */
 -#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.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 14:09:48.623935316 +1100
-+++ libx_c/ns/ns_addr.c        2017-01-20 14:09:48.639935381 +1100
+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 @@
        socketname = index(hostname, separator);
        if (socketname) {
@@ -1302,9 +1313,9 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '
  Field(buf, out, len)
  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.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 14:09:48.623935316 +1100
-+++ libx_c/stdio/doprnt.c      2017-01-20 14:09:48.639935381 +1100
+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 @@
                                 * NUL in the first `prec' characters, and
                                 * strlen() will go further.
@@ -1318,9 +1329,9 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '
                                        size = p - t;
                                        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.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 14:09:48.623935316 +1100
-+++ libx_c/stdio/doscan.c      2017-01-20 14:09:48.639935381 +1100
+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
 @@ -3,7 +3,8 @@
  #endif
  
@@ -1400,9 +1411,9 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '
                break;
        }
        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.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 14:09:48.623935316 +1100
-+++ libx_c/stdio/findiop.c     2017-01-20 14:09:48.639935381 +1100
+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
 @@ -23,7 +23,7 @@
        { 0, NULL, NULL, 0, _IOWRT|_IONBF,      2 },    /* stderr */
  };
@@ -1441,9 +1452,9 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '
  _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.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 14:09:48.623935316 +1100
-+++ libx_c/stdio/fprintf.c     2017-01-20 14:09:48.639935381 +1100
+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 @@
  /*
   * Copyright (c) 1980 Regents of the University of California.
@@ -1503,9 +1514,9 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '
 +      va_end(argp);
 +      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.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 14:09:48.623935316 +1100
-+++ libx_c/stdio/fread.c       2017-01-20 14:09:48.639935381 +1100
+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 @@
  
  #include      <stdio.h>
@@ -1526,9 +1537,9 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '
        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.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 14:09:48.623935316 +1100
-+++ libx_c/stdio/fwrite.c      2017-01-20 14:09:48.639935381 +1100
+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 @@
  
  #include      <stdio.h>
@@ -1549,9 +1560,9 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '
        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.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.pre/stdio/popen.c libx_c/stdio/popen.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.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 14:09:48.639935381 +1100
++++ libx_c/stdio/popen.c       2017-01-20 15:07:14.075375340 +1100
 @@ -0,0 +1,77 @@
 +/*
 + * Copyright (c) 1980 Regents of the University of California.
@@ -1630,9 +1641,9 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '
 +      (void) sigsetmask(omask);
 +      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.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 14:09:48.623935316 +1100
-+++ libx_c/stdio/printf.c      2017-01-20 14:09:48.639935381 +1100
+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 @@
 +/*
 + * Copyright (c) 1987 Regents of the University of California.
@@ -1675,9 +1686,9 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '
 +      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.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 14:09:48.623935316 +1100
-+++ libx_c/stdio/scanf.c       2017-01-20 14:09:48.639935381 +1100
+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 @@
  static char sccsid[] = "@(#)scanf.c   5.2 (Berkeley) 3/9/86";
  #endif
@@ -1739,9 +1750,9 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '
 +      va_end(argp);
 +      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.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 14:09:48.623935316 +1100
-+++ libx_c/stdio/setbuffer.c   2017-01-20 14:09:48.639935381 +1100
+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; {
@@ -1756,9 +1767,9 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '
        if (buf != NULL) {
                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.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 14:09:48.623935316 +1100
-+++ libx_c/stdio/sprintf.c     2017-01-20 14:09:48.639935381 +1100
+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 @@
 +/*
 + * Copyright (c) 1987 Regents of the University of California.
@@ -1807,9 +1818,9 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '
 +      va_end(argp);
 +      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.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.pre/stdio/vfprintf.c libx_c/stdio/vfprintf.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.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 14:09:48.639935381 +1100
++++ libx_c/stdio/vfprintf.c    2017-01-20 15:07:14.075375340 +1100
 @@ -0,0 +1,46 @@
 +/*
 + * Copyright (c) 1988 Regents of the University of California.
@@ -1857,9 +1868,9 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '
 +
 +      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.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.pre/stdio/vprintf.c libx_c/stdio/vprintf.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.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 14:09:48.639935381 +1100
++++ libx_c/stdio/vprintf.c     2017-01-20 15:07:14.075375340 +1100
 @@ -0,0 +1,33 @@
 +/*
 + * Copyright (c) 1988 Regents of the University of California.
@@ -1894,9 +1905,9 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '
 +      len = _doprnt(fmt, argp, stdout);
 +      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.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.pre/stdio/vsprintf.c libx_c/stdio/vsprintf.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.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 14:09:48.639935381 +1100
++++ libx_c/stdio/vsprintf.c    2017-01-20 15:07:14.075375340 +1100
 @@ -0,0 +1,38 @@
 +/*
 + * Copyright (c) 1988 Regents of the University of California.
@@ -1936,9 +1947,9 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '
 +      *f._ptr = 0;
 +      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.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.pre/stdio.h libx_c/stdio.h
---- libx_c.pre/stdio.h 2017-01-20 14:09:48.623935316 +1100
-+++ libx_c/stdio.h     2017-01-20 14:09:48.639935381 +1100
+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
 @@ -59,7 +59,7 @@
  long  ftell();
  char  *fgets();
@@ -1948,9 +1959,9 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '
  char  *sprintf();             /* too painful to do right */
  #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.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 14:09:48.627935332 +1100
-+++ libx_c/sys/dir.h   2017-01-20 14:09:48.639935381 +1100
+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
 @@ -32,9 +32,9 @@
   * dp->d_ino set to 0.
   */
@@ -1964,9 +1975,9 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '
  #define DIRBLKSIZ     DEV_BSIZE
  #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.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 14:09:48.627935332 +1100
-+++ libx_c/sys/errno.h 2017-01-20 14:09:48.639935381 +1100
+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
 @@ -96,3 +96,7 @@
  #define       EPROCLIM        67              /* Too many processes */
  #define       EUSERS          68              /* Too many users */
@@ -1975,9 +1986,9 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '
 +#ifndef KERNEL
 +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.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 14:09:48.627935332 +1100
-+++ libx_c/sys/execl.c 2017-01-20 14:09:48.639935381 +1100
+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
 @@ -1,4 +1,5 @@
 -void execl(f, a) char *f, *a; {
 +#include <varargs.h>
@@ -1985,9 +1996,9 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '
        write(2, "execl()\n", 8);
        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.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 14:09:48.627935332 +1100
-+++ libx_c/sys/execle.c        2017-01-20 14:09:48.639935381 +1100
+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
 @@ -1,4 +1,5 @@
 -void execle(f, a) char *f, *a; {
 +#include <varargs.h>
@@ -1995,9 +2006,9 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '
        write(2, "execle()\n", 9);
        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.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.pre/sys/isatty.c libx_c/sys/isatty.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.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 14:09:48.639935381 +1100
++++ libx_c/sys/isatty.c        2017-01-20 15:07:14.075375340 +1100
 @@ -0,0 +1,17 @@
 +#if defined(LIBC_SCCS) && !defined(lint)
 +static char sccsid[] = "@(#)isatty.c  5.2 (Berkeley) 3/9/86";
@@ -2016,9 +2027,9 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '
 +              return(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.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 14:09:48.627935332 +1100
-+++ libx_c/sys/open.c  2017-01-20 14:11:49.080620797 +1100
+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
 @@ -1,4 +1,9 @@
  int open(f, m, va_alist) char *f; va_dcl {
 -      write(2, "open()\n", 7);
@@ -2031,9 +2042,9 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '
 +      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.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 14:09:48.627935332 +1100
-+++ libx_c/sys/param.h 2017-01-20 14:09:48.639935381 +1100
+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
 @@ -53,15 +53,16 @@
  /*
   * Signals
@@ -2079,9 +2090,9 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '
 +
 +/* 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.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 14:09:48.627935332 +1100
-+++ libx_c/sys/proc.h  2017-01-20 14:09:48.639935381 +1100
+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
 @@ -117,3 +117,8 @@
  #define       SSEL    0x0400000       /* selecting; wakeup/waiting danger */
  #define       SLOGIN  0x0800000       /* a login process (legit child of init) */
@@ -2091,9 +2102,9 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '
 +#define       ISSIG(p) \
 +      ((p)->p_sig && ((p)->p_flag&STRC || \
 +       ((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.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.pre/sys/select.h libx_c/sys/select.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/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 14:09:48.639935381 +1100
++++ libx_c/sys/select.h        2017-01-20 15:07:14.075375340 +1100
 @@ -0,0 +1,28 @@
 +#include <sys/param.h>
 +
@@ -2123,9 +2134,9 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '
 +#define       FD_CLR(n, p)    ((p)->fds_bits[(n)/NFDBITS] &= ~(1 << ((n) % NFDBITS)))
 +#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.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 14:09:48.627935332 +1100
-+++ libx_c/sys/signal.h        2017-01-20 14:09:48.639935381 +1100
+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
 @@ -57,14 +57,14 @@
  #define SIGUSR2 31    /* user defined signal 2 */
  
@@ -2162,9 +2173,9 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '
  #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.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 14:09:48.627935332 +1100
-+++ libx_c/sys/tty.h   2017-01-20 14:09:48.639935381 +1100
+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
 @@ -70,20 +70,22 @@
        struct  ttychars t_chars;       /* tty */
        struct  winsize t_winsize;      /* window size */
@@ -2202,9 +2213,18 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '
  };
  
  #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.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 14:09:48.627935332 +1100
-+++ libx_c/sys/types.h 2017-01-20 14:09:48.639935381 +1100
+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
+@@ -35,7 +35,7 @@
+ #endif
+ typedef       struct  _quad { long val[2]; } quad;
+ typedef       long    daddr_t;
+-typedef       char *  caddr_t;
++typedef       void *  caddr_t;
+ typedef       u_long  ino_t;
+ typedef       long    swblk_t;
+ typedef       long    size_t;
 @@ -45,30 +45,32 @@
  typedef       u_short uid_t;
  typedef       u_short gid_t;
@@ -2254,16 +2274,16 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '
 +/*#define FD_ZERO(p)  bzero((char *)(p), sizeof(*(p)))*/
  
  #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.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.pre/sys/vfork.c libx_c/sys/vfork.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.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 14:09:48.639935381 +1100
++++ libx_c/sys/vfork.c 2017-01-20 15:07:14.075375340 +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.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 14:09:48.627935332 +1100
-+++ libx_c/sys/vmmac.h 2017-01-20 14:09:48.639935381 +1100
+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
 @@ -157,3 +157,10 @@
        } \
        c->c_lock = 0; \
@@ -2275,17 +2295,17 @@ diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '
 +/* moved this from sys/vmmac.h to avoid a circular dependency */
 +#define       mapin(pte, v, pfnum, count, prot) \
 +      (*(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.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.pre/sys/vopen.c libx_c/sys/vopen.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.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 14:10:41.576142959 +1100
++++ libx_c/sys/vopen.c 2017-01-20 15:07:14.075375340 +1100
 @@ -0,0 +1,4 @@
 +int vopen(f, m, argp) char *f; va_list argp; {
 +      write(2, "vopen()\n", 8);
 +      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.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 14:09:48.623935316 +1100
-+++ libx_c/vax/vmparam.h       2017-01-20 14:09:48.639935381 +1100
+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
 @@ -156,5 +156,6 @@
  /*
   * BEWARE THIS DEFINITION WORKS ONLY WITH COUNT OF 1
index 6cd4215..1e56f30 100644 (file)
@@ -4,6 +4,9 @@
 #include <sys/errno.h>
 #include <sys/param.h>
 #include <sys/types.h>
+#ifdef __STDC__
+#include <stdarg.h>
+#endif
 
 /*
  * Copyright (c) 1982, 1986 Regents of the University of California.
@@ -217,6 +220,9 @@ int umask __P((int n));
 /* sys/unlink.c */
 int unlink __P((char *s));
 
+/* sys/vopen.c */
+int vopen __P((char *f, int m, va_list argp));
+
 /* sys/write.c */
 int write __P((int f, void *b, int l));
 #endif
index 1b54291..612ebbf 100644 (file)
@@ -38,7 +38,7 @@ typedef       struct  label_t {
 #endif
 typedef        struct  _quad { long val[2]; } quad;
 typedef        long    daddr_t;
-typedef        char *  caddr_t;
+typedef        void *  caddr_t;
 typedef        u_long  ino_t;
 typedef        long    swblk_t;
 typedef        long    size_t;
index bde1485..15e0641 100644 (file)
@@ -8,7 +8,8 @@
 #define _va_start(argp, arg) va_start(argp)
 #endif
 
-int vopen(f, m, argp) char *f; va_list argp; {
+/*#include <varargs.h>*/
+int vopen(f, m, argp) char *f; int m; va_list argp; {
        write(2, "vopen()\n", 8);
        abort();
 }
index 418cfea..5142949 100644 (file)
@@ -1,6 +1,16 @@
+#include <errno.h>
 #include <stdio.h>
 
 int main() {
+       FILE *fp;
+
        printf("hello, %s %.*s %5.2f\n", "world", 2, "fun", 3.14159);
+       fp = fopen("hello.txt", "w");
+       if (fp == NULL) {
+               perror("hello.txt");
+               exit(1);
+       }
+       fprintf(fp, "hello, world\n");
+       fclose(fp);
        return 0;
 }