#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.
/* 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
x_int x_setuid __P((x_int x_uid));
/* sys/brk.c */
-char *x_brk __P((char *x_a));
+void *x_brk __P((void *x_a));
/* sys/chdir.c */
x_int x_chdir __P((char *x_s));
x_uid_t x_getuid __P((void));
/* sys/sbrk.c */
-char *x_sbrk __P((x_int x_i));
+void *x_sbrk __P((x_int x_i));
/* sys/setgroups.c */
x_int x_setgroups __P((x_int x_n, x_int *x_g));
#endif
/* sys/quota.c */
-x_int x_quota __P((x_int x_c, x_int x_u, x_int x_a, char *x_ad));
+x_int x_quota __P((x_int x_c, x_int x_u, x_int x_a, void *x_ad));
/* sys/setquota.c */
x_int x_setquota __P((char *x_s, char *x_f));
x_int x_getpeername __P((x_int x_s, struct x_sockaddr *x_n, x_int *x_l));
/* sys/getsockname.c */
-x_int x_getsockname __P((x_int x_s, char *x_name, x_int *x_namelen));
+x_int x_getsockname __P((x_int x_s, struct x_sockaddr *x_name, x_int *x_namelen));
/* sys/getsockopt.c */
-x_int x_getsockopt __P((x_int x_s, x_int x_level, x_int x_opt, char *x_buf, x_int *x_len));
+x_int x_getsockopt __P((x_int x_s, x_int x_level, x_int x_opt, void *x_buf, x_int *x_len));
/* sys/listen.c */
x_int x_listen __P((x_int x_s, x_int x_b));
x_int x_sendto __P((x_int x_s, void *x_m, x_int x_l, x_int x_f, struct x_sockaddr *x_t, x_int x_tl));
/* sys/setsockopt.c */
-x_int x_setsockopt __P((x_int x_s, x_int x_level, x_int x_opt, char *x_buf, x_int x_len));
+x_int x_setsockopt __P((x_int x_s, x_int x_level, x_int x_opt, void *x_buf, x_int x_len));
/* sys/socket.c */
x_int x_socket __P((x_int x_a, x_int x_t, x_int x_p));
#endif
/* sys/wait3.c */
-x_int x_wait3 __P((union x_wait *x_s, x_int x_o, struct x_rusage *x_r));
+x_int x_wait3 __P((x_int *x_s, x_int x_o, struct x_rusage *x_r));
/* sys/wait.c */
x_int x_wait __P((x_int *x_s));
#include <gen.h>
#include <setjmp.h>
+#include <sys/file.h>
/*#include <setjmp.h>*/
int _setjmp(e) jmp_buf e; {
- abort();
+ write(2, "_setjmp()\n", 10);
+ abort();
}
void _longjmp(e, v) jmp_buf e; int v; {
- abort();
+ write(2, "_longjmp()\n", 11);
+ abort();
}
#include <gen.h>
+#include <sys/file.h>
int abs(i) int i; {
- abort();
+ write(2, "abs()\n", 6);
+ abort();
}
#include <gen.h>
#include <math.h>
+#include <sys/file.h>
double atof(s) char *s; {
- abort();
+ write(2, "atof()\n", 7);
+ abort();
}
#include <gen.h>
#include <math.h>
+#include <sys/file.h>
double ldexp(v, e) double v; int e; {
- abort();
+ write(2, "ldexp()\n", 8);
+ abort();
}
#include <gen.h>
#include <math.h>
+#include <sys/file.h>
double modf(v, p) double v; double *p; {
- abort();
+ write(2, "modf()\n", 7);
+ abort();
}
#include <gen.h>
#include <setjmp.h>
+#include <sys/file.h>
/*#include <setjmp.h>*/
int setjmp(e) jmp_buf e; {
- abort();
+ write(2, "setjmp()\n", 9);
+ abort();
}
void longjmp(e, v) jmp_buf e; int v; {
- abort();
+ write(2, "longjmp()\n", 10);
+ abort();
}
+#include <stdio.h>
+
extern char **nox_environ;
char **environ;
nox_int nox_main(argc, argv) nox_int argc; char **argv; {
environ = nox_environ;
- return main(argc, argv);
+ exit(main(argc, argv));
}
# @(#)Makefile 5.4 (Berkeley) 9/5/85
#
-SRCS= fstat.c getpagesize.c isatty.c sbrk.c write.c
-OBJS= fstat.o getpagesize.o isatty.o sbrk.o write.o
+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
TAGSFILE=tags
.c.o:
--- /dev/null
+#include <nox_unistd.h>
+
+#include <sys/proc.h>
+
+void _exit(s) int s; {
+ nox__exit(s);
+}
--- /dev/null
+#include <nox_unistd.h>
+
+#include <sys/errno.h>
+#include <sys/file.h>
+
+int close(f) int f; {
+ int res;
+
+ res = nox_close(f);
+ if (res == -1)
+ errno = EBADF;
+ return res;
+}
--- /dev/null
+#include <nox_unistd.h>
+#include <sys/nox_types.h>
+
+#include <sys/errno.h>
+#include <sys/file.h>
+#include <sys/types.h>
+
+off_t lseek(f, o, d) int f; off_t o; int d; {
+ off_t res;
+
+ res = (off_t)nox_lseek(f, (nox_off_t)o, d);
+ if (res == (off_t)-1)
+ errno = EINVAL;
+ return res;
+}
--- /dev/null
+#include <nox_unistd.h>
+
+#include <sys/errno.h>
+#include <sys/file.h>
+
+int read(f, b, l) int f; void *b; int l; {
+ nox_size_t res;
+
+ res = nox_read(f, b, l);
+ if (res == (nox_size_t)-1) {
+ errno = EIO;
+ return -1;
+ }
+ return (int)res;
+}
--- /dev/null
+#include <nox_fcntl.h>
+
+#include <sys/errno.h>
+#include <sys/file.h>
+#ifdef __STDC__
+#include <stdarg.h>
+#define _va_start(argp, arg) va_start(argp, arg)
+#else
+#include <varargs.h>
+#define _va_start(argp, arg) va_start(argp)
+#endif
+
+int vopen(f, m, argp) char *f; va_list argp; {
+ int res;
+
+ res = nox_open(f, m, m & O_CREAT ? va_arg(argp, int) : 0);
+ if (res == -1)
+ errno = ENOENT;
+ return res;
+}
int acct(f) char *f; { return 0;}
int adjtime(delta, odelta) struct timeval *delta, *odelta; { return 0; }
int bind(s, n, l) struct sockaddr *n; { return 0; }
-char *brk(a) char *a; { return(a); }
+void *brk(a) void *a; { return(a); }
int chdir(s) char *s; { return(0); }
int chmod(s, m) char *s; { return(0); }
int chown(s, u, g) char *s; { return(0); }
int getpriority( w, who) { return 1;}
int getrlimit( res, rip) struct rlimit *rip; { return 0;}
int getrusage( res, rip) struct rusage *rip; { return 0;}
-int getsockname(s, name, namelen) char *name; int *namelen; { return(0); }
-int getsockopt( s, level, opt, buf, len ) char *buf; int *len; { return 0;}
+int getsockname(s, name, namelen) struct sockaddr *name; int *namelen; { return(0); }
+int getsockopt( s, level, opt, buf, len ) void *buf; int *len; { return 0;}
int gettimeofday( t, z ) struct timeval *t; struct timezone *z; { return 0;}
uid_t getuid() { return((uid_t)1); }
-int ioctl( d, r, p) u_long r; char *p; { return 0;}
+int ioctl( d, r, p) u_long r; void *p; { return 0;}
int kill(p, s) { return(0); }
int killpg( pg, s) { return 0;}
int link(a, b) char *a, *b; { return(0); }
int munmap( a, l) char * a; { return 0;}
#endif
/* VARARGS2 */
-int open(f, m, stuff) char *f; { return(0); }
+int open(f, m, va_alist) char *f; va_dcl { return(0); }
int pipe(f) int f[2]; { return(0); }
profil(b, s, o, i) char *b; {;}
int ptrace(r, p, a, d) int *a; { return(0); }
-int quota(c, u, a, ad) char *ad; { return(0); }
-int read(f, b, l) char *b; { return(l); }
+int quota(c, u, a, ad) void *ad; { return(0); }
+int read(f, b, l) void *b; { return(l); }
int readv( d, v, l) struct iovec *v; { return l; }
int readlink( p, b, s ) char *p, *b; { return 1; }
reboot( h ) {;}
-int recv( s, b, l, f ) char *b; { return l ; }
-int recvfrom( s, b, l, f, fr, fl ) char *b; struct sockaddr *fr; int *fl; { return l; }
+int recv( s, b, l, f ) void *b; { return l ; }
+int recvfrom( s, b, l, f, fr, fl ) void *b; struct sockaddr *fr; int *fl; { return l; }
int recvmsg( s, m, f ) struct msghdr m[]; { return 1; }
int rename( f, t ) char *f, *t; { return 0;}
int rmdir( p ) char *p; { return 0;}
-char *sbrk(i) { return((char *)0); }
+void *sbrk(i) { return((void *)0); }
int select( n, r, w, e, t ) fd_set *r, *w, *e; struct timeval *t; { return n; }
-int send( s, m, l, f ) char *m; { return l; }
-int sendto( s, m, l, f, t, tl ) char *m; struct sockaddr *t; { return l; }
+int send( s, m, l, f ) void *m; { return l; }
+int sendto( s, m, l, f, t, tl ) void *m; struct sockaddr *t; { return l; }
int sendmsg( s, m, l) struct msghdr m[]; { return l; }
int setgroups( n, g) int *g; { return 0; }
int sethostid( h ) long h; { return 0;}
int setreuid( r, e) int r, e; { return 0; }
int setrlimit( res, rip) struct rlimit *rip; { return 0;}
/* VARARGS */
-int setsockopt( s, level, opt, buf, len ) char *buf; { return 0;}
+int setsockopt( s, level, opt, buf, len ) void *buf; { return 0;}
int settimeofday( t, z ) struct timeval *t; struct timezone *z; { return 0;}
int shutdown( s, h ){ return 0;}
int (*signal(c, f))() int (*f)(); { return(f); }
int utimes( f, t ) char *f; struct timeval t[2]; { return 0 ;}
int vfork() { return(0); }
vhangup() { ; }
-int wait(s) union wait *s; { return(1); }
-int wait3( s, o, r) union wait *s; struct rusage *r; { return 1;}
-int write(f, b, l) char *b; { return(l); }
+int wait(s) int *s; { return(1); }
+int wait3( s, o, r) int *s; struct rusage *r; { return 1;}
+int write(f, b, l) void *b; { return(l); }
int writev( f, v, l) struct iovec *v; { return l; }
-diff --git a/usr.bin/lint/llib-lc b/usr.bin/lint/llib-lc
-index d040b51..e176096 100644
---- a/usr.bin/lint/llib-lc
-+++ b/usr.bin/lint/llib-lc
-@@ -112,8 +112,7 @@ int readv( d, v, l) struct iovec *v; { return l; }
+--- ../../usr.bin/lint/llib-lc 2017-01-17 01:42:54.064222260 +1100
++++ llib-lc 2017-01-20 14:05:22.847303283 +1100
+@@ -42,7 +42,7 @@
+ int acct(f) char *f; { return 0;}
+ int adjtime(delta, odelta) struct timeval *delta, *odelta; { return 0; }
+ int bind(s, n, l) struct sockaddr *n; { return 0; }
+-char *brk(a) char *a; { return(a); }
++void *brk(a) void *a; { return(a); }
+ int chdir(s) char *s; { return(0); }
+ int chmod(s, m) char *s; { return(0); }
+ int chown(s, u, g) char *s; { return(0); }
+@@ -77,11 +77,11 @@
+ int getpriority( w, who) { return 1;}
+ int getrlimit( res, rip) struct rlimit *rip; { return 0;}
+ int getrusage( res, rip) struct rusage *rip; { return 0;}
+-int getsockname(s, name, namelen) char *name; int *namelen; { return(0); }
+-int getsockopt( s, level, opt, buf, len ) char *buf; int *len; { return 0;}
++int getsockname(s, name, namelen) struct sockaddr *name; int *namelen; { return(0); }
++int getsockopt( s, level, opt, buf, len ) void *buf; int *len; { return 0;}
+ int gettimeofday( t, z ) struct timeval *t; struct timezone *z; { return 0;}
+ uid_t getuid() { return((uid_t)1); }
+-int ioctl( d, r, p) u_long r; char *p; { return 0;}
++int ioctl( d, r, p) u_long r; void *p; { return 0;}
+ int kill(p, s) { return(0); }
+ int killpg( pg, s) { return 0;}
+ int link(a, b) char *a, *b; { return(0); }
+@@ -102,25 +102,24 @@
+ int munmap( a, l) char * a; { return 0;}
+ #endif
+ /* VARARGS2 */
+-int open(f, m, stuff) char *f; { return(0); }
++int open(f, m, va_alist) char *f; va_dcl { return(0); }
+ int pipe(f) int f[2]; { return(0); }
+ profil(b, s, o, i) char *b; {;}
+ int ptrace(r, p, a, d) int *a; { return(0); }
+-int quota(c, u, a, ad) char *ad; { return(0); }
+-int read(f, b, l) char *b; { return(l); }
++int quota(c, u, a, ad) void *ad; { return(0); }
++int read(f, b, l) void *b; { return(l); }
+ int readv( d, v, l) struct iovec *v; { return l; }
int readlink( p, b, s ) char *p, *b; { return 1; }
reboot( h ) {;}
- int recv( s, b, l, f ) char *b; { return l ; }
+-int recv( s, b, l, f ) char *b; { return l ; }
-int recvfrom( s, b, l, f, fr, fl ) char *b; struct sockaddr *fr; int *fl;
- { return l; }
-+int recvfrom( s, b, l, f, fr, fl ) char *b; struct sockaddr *fr; int *fl; { return l; }
++int recv( s, b, l, f ) void *b; { return l ; }
++int recvfrom( s, b, l, f, fr, fl ) void *b; struct sockaddr *fr; int *fl; { return l; }
int recvmsg( s, m, f ) struct msghdr m[]; { return 1; }
int rename( f, t ) char *f, *t; { return 0;}
int rmdir( p ) char *p; { return 0;}
-@@ -326,8 +325,7 @@ int rexec(a, rp, n, p, c, f) char **a, *n, *p, *c; u_short rp; int *f; { return
+-char *sbrk(i) { return((char *)0); }
++void *sbrk(i) { return((void *)0); }
+ int select( n, r, w, e, t ) fd_set *r, *w, *e; struct timeval *t; { return n; }
+-int send( s, m, l, f ) char *m; { return l; }
+-int sendto( s, m, l, f, t, tl ) char *m; struct sockaddr *t; { return l; }
++int send( s, m, l, f ) void *m; { return l; }
++int sendto( s, m, l, f, t, tl ) void *m; struct sockaddr *t; { return l; }
+ int sendmsg( s, m, l) struct msghdr m[]; { return l; }
+ int setgroups( n, g) int *g; { return 0; }
+ int sethostid( h ) long h; { return 0;}
+@@ -133,7 +132,7 @@
+ int setreuid( r, e) int r, e; { return 0; }
+ int setrlimit( res, rip) struct rlimit *rip; { return 0;}
+ /* VARARGS */
+-int setsockopt( s, level, opt, buf, len ) char *buf; { return 0;}
++int setsockopt( s, level, opt, buf, len ) void *buf; { return 0;}
+ int settimeofday( t, z ) struct timeval *t; struct timezone *z; { return 0;}
+ int shutdown( s, h ){ return 0;}
+ int (*signal(c, f))() int (*f)(); { return(f); }
+@@ -160,9 +159,9 @@
+ int utimes( f, t ) char *f; struct timeval t[2]; { return 0 ;}
+ int vfork() { return(0); }
+ vhangup() { ; }
+-int wait(s) union wait *s; { return(1); }
+-int wait3( s, o, r) union wait *s; struct rusage *r; { return 1;}
+-int write(f, b, l) char *b; { return(l); }
++int wait(s) int *s; { return(1); }
++int wait3( s, o, r) int *s; struct rusage *r; { return 1;}
++int write(f, b, l) void *b; { return(l); }
+ int writev( f, v, l) struct iovec *v; { return l; }
+
+
+@@ -326,8 +325,7 @@
char * rindex(s, c) char *s, c; { return s; }
int rresvport(p) int *p; { return 0; }
int ruserok(rh, su, ru, lu) char *rh, *ru, *lu; { return 0; }
+++ /dev/null
-/*@(#)llib-lc 1.37 (Berkeley) 5/17/86 */
-
-/*LINTLIBRARY */
-
-#include <sys/types.h>
-#include <sys/time.h>
-
-#include <sys/dir.h>
-#include <sys/resource.h>
-#include <sys/socket.h>
-#include <sys/stat.h>
-#include <sys/timeb.h>
-#include <sys/times.h>
-#include <sys/uio.h>
-#include <sys/vtimes.h>
-#include <sys/wait.h>
-
-#include <netinet/in.h>
-
-#include <netns/ns.h>
-
-#include <arpa/inet.h>
-
-#include <disktab.h>
-#include <fstab.h>
-#include <grp.h>
-#include <ndbm.h>
-#include <netdb.h>
-#include <nlist.h>
-#include <pwd.h>
-#include <setjmp.h>
-#include <sgtty.h>
-#include <signal.h>
-#include <stdio.h>
-#include <ttyent.h>
-
-void /***SECTION 2 ***/
-int errno;
-
-int accept(s, a, l) struct sockaddr *a; int *l; { return s; }
-int access(p, m) char *p; { return 0; }
-int acct(f) char *f; { return 0;}
-int adjtime(delta, odelta) struct timeval *delta, *odelta; { return 0; }
-int bind(s, n, l) struct sockaddr *n; { return 0; }
-char *brk(a) char *a; { return(a); }
-int chdir(s) char *s; { return(0); }
-int chmod(s, m) char *s; { return(0); }
-int chown(s, u, g) char *s; { return(0); }
-int chroot(d) char *d; { return 0; }
-int close(f) { return(0); }
-int connect(s, n, l) struct sockaddr *n; { return 0; }
-int dup(f) { return(f); }
-int dup2(o, n) { return o; }
-void execve(s, v, e) char *s, *v[], *e[]; {;}
-void _exit(s) {;}
-int fchmod(f, m) { return(0); }
-int fchown(f, u, g) { return(0); }
-int fcntl(f, c, a) { return (0); }
-int flock(f, o) { return 0; }
-int fork() { return(0); }
-int fsync(f) { return 0; }
-int fstat(f, b) struct stat *b; { return(0); }
-int ftruncate(d, l) off_t l; { return 0;}
-int getdtablesize() { return 20 ; }
-gid_t getegid() { return((gid_t)1); }
-uid_t geteuid() { return((uid_t)1); }
-gid_t getgid() { return((gid_t)1); }
-int getgroups(n, g) int n, *g; { return 0; }
-long gethostid() { return 1L; }
-int gethostname(n, l) char *n; int l; { return 0 ;}
-int getitimer(w, v) struct itimerval *v; { return 0; }
-int getpagesize() { return 1; }
-int getpeername(s, n, l) struct sockaddr *n; int *l; { return (0); }
-int getpgrp(p) { return 1; }
-int getpid() { return(1); }
-int getppid() { return(1); }
-int getpriority(w, who) { return 1;}
-int getrlimit(res, rip) struct rlimit *rip; { return 0;}
-int getrusage(res, rip) struct rusage *rip; { return 0;}
-int getsockname(s, name, namelen) char *name; int *namelen; { return(0); }
-int getsockopt(s, level, opt, buf, len) char *buf; int *len; { return 0;}
-int gettimeofday(t, z) struct timeval *t; struct timezone *z; { return 0;}
-uid_t getuid() { return((uid_t)1); }
-int ioctl(d, r, p) u_long r; char *p; { return 0;}
-int kill(p, s) { return(0); }
-int killpg(pg, s) { return 0;}
-int link(a, b) char *a, *b; { return(0); }
-int listen(s, b){ return 0; }
-off_t lseek(f, o, d) off_t o; { return(o); }
-int lstat(s, b) char *s; struct stat *b; { return(0); }
-#ifdef notdef
-int madvise(a, l, b) char *a; int l, b; { return 0;}
-int mmap(a, l, p, s, f, o) char *a; off_t o; { return 0;}
-int mincore(a, l, v) char *a; int l; char *v; { return 0; }
-#endif
-int mkdir(p, m) char *p; { return 0; }
-int mknod(n, m, a) char *n; { return(0); }
-int mount(s, n, f) char *s, *n; { return(0); }
-#ifdef notdef
-int mprotect(a, l, p) char *a; { return 0;}
-int mremap(a, l, p, s, f) char *a, f; { return 0;}
-int munmap(a, l) char *a; { return 0;}
-#endif
-void /*VARARGS2 */
-int open(f, m, stuff) char *f; { return(0); }
-int pipe(f) int f[2]; { return(0); }
-void profil(b, s, o, i) char *b; {;}
-int ptrace(r, p, a, d) int *a; { return(0); }
-int quota(c, u, a, ad) char *ad; { return(0); }
-int read(f, b, l) char *b; { return(l); }
-int readv(d, v, l) struct iovec *v; { return l; }
-int readlink(p, b, s) char *p, *b; { return 1; }
-void reboot(h) {;}
-int recv(s, b, l, f) char *b; { return l ; }
-int recvfrom(s, b, l, f, fr, fl) char *b; struct sockaddr *fr; int *fl; { return l; }
-int recvmsg(s, m, f) struct msghdr m[]; { return 1; }
-int rename(f, t) char *f, *t; { return 0;}
-int rmdir(p) char *p; { return 0;}
-char *sbrk(i) { return((char *)0); }
-int select(n, r, w, e, t) fd_set *r, *w, *e; struct timeval *t; { return n; }
-int send(s, m, l, f) char *m; { return l; }
-int sendto(s, m, l, f, t, tl) char *m; struct sockaddr *t; { return l; }
-int sendmsg(s, m, l) struct msghdr m[]; { return l; }
-int setgroups(n, g) int *g; { return 0; }
-int sethostid(h) long h; { return 0;}
-int sethostname(n, l) char *n; int l; { return 0 ;}
-int setitimer(w, v, ov) struct itimerval *v, *ov; { return 0; }
-int setpgrp(g, pg) { return 0; }
-int setpriority(w, who, pri) { return 1;}
-int setquota(s, f) char *s, *f; { return 0; }
-int setregid(r, e) int r, e; { return 0; }
-int setreuid(r, e) int r, e; { return 0; }
-int setrlimit(res, rip) struct rlimit *rip; { return 0;}
-void /*VARARGS */
-int setsockopt(s, level, opt, buf, len) char *buf; { return 0;}
-int settimeofday(t, z) struct timeval *t; struct timezone *z; { return 0;}
-int shutdown(s, h){ return 0;}
-int (*signal(c, f))() int (*f)(); { return(f); }
-int sigvec(c, f, m) struct sigvec *f, *m; { return 0; }
-int sigblock(m) { return (m); }
-int sigsetmask(m) { return (m); }
-void sigpause(m) { ; }
-int sigreturn(scp) struct sigcontext *scp; { return -1; }
-int sigstack(ss, oss) struct sigstack *ss, *oss; { return 0 ; }
-int socket(a, t, p) {return 1;}
-int socketpair(d, t, p, s) int s[2]; { return 0; }
-int stat(s, b) char *s; struct stat *b; { return(0); }
-#ifdef notdef
-char *stk(a) char *a; { return a; }
-char *sstk(a) int a; { return (char *)0; }
-#endif
-int swapon(s) char *s; { return 0;}
-int symlink(t, f) char *t, *f; { return 0;}
-void sync(){;}
-int truncate(p, l) char *p; off_t l; { return 0;}
-int umask(n) { return n; }
-int umount(s) char *s; { return 0; }
-int unlink(s) char *s; { return(0); }
-int utimes(f, t) char *f; struct timeval t[2]; { return 0 ;}
-int vfork() { return(0); }
-void vhangup() { ; }
-int wait(s) union wait *s; { return(1); }
-int wait3(s, o, r) union wait *s; struct rusage *r; { return 1;}
-int write(f, b, l) char *b; { return(l); }
-int writev(f, v, l) struct iovec *v; { return l; }
-
-
-void /***SECTION 3 ***/
-
-struct qelem { /*this should really be defined in an include file */
-void struct qelem *q_forw;
-void struct qelem *q_back;
-void char data[1];
-}
-
-void /*antique system calls and unclassified */
-void _longjmp(e, v) jmp_buf e; {;}
-int _setjmp(e) jmp_buf e; { return(0); }
-void abort() {;}
-int abs(i) int i; { return(i); }
-int alarm(s) unsigned s; { return(s); }
-void alphasort(d1, d2) struct direct **d1, **d2; { return 0;}
-char *asctime(t) struct tm *t; { return(""); }
-double atof(s) char *s; { return(1.); }
-int atoi(s) char *s; { return 1; }
-long atol(s) char *s; { return 1L; }
-int bcmp(b1, b2, length) char *b1, *b2; { return 0; }
-void bcopy(src, dst, length) char *src, *dst; { ; }
-void bzero(b, length) char *b; { ; }
-char *calloc(n,s) unsigned n, s; { static char c[1]; return(c); }
-void closedir(p) DIR *p; {}
-void closelog() {}
-int creat(s, m) char *s; { return(0); }
-char *crypt(k,s) char *k, *s; { return(""); }
-char *ctime(c) long *c;{ return(""); }
-char _ctype_[];
-DBM *dbm_open(file, flags, mode) char *file; { return (DBM *) 0; }
-void dbm_close(db) DBM *db; { ; }
-datum dbm_fetch(db, key) DBM *db; datum key; { return key; }
-int dbm_store(db, key, cont, flags) DBM *db; datum key, cont; { return 0; }
-int dbm_delete(db, key) DBM *db; datum key; { return 0; }
-datum dbm_firstkey(db) DBM *db; { datum key; return key; }
-datum dbm_nextkey(db) DBM *db; { datum key; return key; }
-char *ecvt(v, n, d, s) double v; int *d, *s; { return(""); }
-void encrypt(s, i) char *s; {}
-int endfsent() { return 0; }
-int endgrent() { return 0; }
-void endhostent() { ; }
-void endnetent() { ; }
-void endprotoent() { ; }
-void endpwent() {}
-void endservent() { ; }
-void endttyent() { ; }
-void endusershell() { ; }
-char **environ;
-void /*VARARGS */
-void execl(f, a) char *f, *a; {;}
-void /*VARARGS */
-void execle(f, a) char *f, *a; {;}
-void /*VARARGS */
-void execlp(f, a) char *f, *a; {;}
-void execv(s, v) char *s, *v[]; {;}
-void execvp(s, v) char *s, *v[]; {;}
-void exect(s, v, e) char *s, *v[], *e[]; {;}
-void exit(s) {;}
-char *fcvt(v, n, d, s) double v; int *d, *s; { return(""); }
-int ffs(i) { return i; }
-void free(p) char *p; {;}
-double frexp(v, e) double v; int *e; { return v; }
-void ftime(tp) struct timeb *tp; { ; }
-char *gcvt(v, n, b) double v; char *b; { return(""); }
-struct disktab *getdiskbyname(name) char *name; { return (struct disktab *) 0; }
-char *getenv(n) char *n; { return n; }
-struct fstab *getfsent() { return (struct fstab *)NULL; }
-struct fstab *getfsspec(n) char *n; { return (struct fstab *)NULL; }
-struct fstab *getfsfile(n) char *n; { return (struct fstab *)NULL; }
-struct fstab *getfstype(t) char *t; { return (struct fstab *)NULL; }
-struct group *getgrent() { return (struct group *)NULL; }
-struct group *getgrgid(n) { return (struct group *)NULL; }
-struct group *getgrnam(n) char *n; { return (struct group *)NULL; }
-struct hostent *gethostbyaddr(addr, len, type) char *addr; { return (struct hostent *) 0; }
-struct hostent *gethostbyname(name) char *name; { return (struct hostent *) 0; }
-struct hostent *gethostent() { return (struct hostent *) 0; }
-char *getlogin(){ return " "; }
-struct netent *getnetbyaddr(net, type) { return (struct netent *) 0; }
-struct netent *getnetbyname(name) char *name; { return (struct netent *) 0; }
-struct netent *getnetent() { return (struct netent *) 0; }
-int getopt(argc, argv, optstr) char **argv, *optstr; { return EOF; }
-char *getpass(n) char *n ; { return n; }
-struct protoent *getprotobyname(name) char *name; { return (struct protoent *) 0; }
-struct protoent *getprotobynumber(proto) { return (struct protoent *) 0; }
-struct protoent *getprotoent() { return (struct protoent *) 0; }
-int getpw(u, b) char *b; { return 0; }
-struct passwd *getpwent() { return (struct passwd *)NULL; }
-struct passwd *getpwuid(n) { return (struct passwd *)NULL; }
-struct passwd *getpwnam(n) char *n; { return (struct passwd *)NULL; }
-struct servent *getservbyname(name, proto) char *name, *proto; { return (struct servent *) 0; }
-struct servent *getservbyport(port, proto) char *proto; { return (struct servent *) 0; }
-struct servent *getservent() { return (struct servent *) 0; }
-struct ttyent *getttynam(name) char *name; { return (struct ttyent *) 0; }
-char *getusershell() { return (char *) 0; }
-char *getwd(pathname) char *pathname; { return pathname; }
-struct tm *gmtime(c) long *c; { return gmtime(c); }
-int gtty(f, b) struct sgttyb *b; { return(0); }
-#ifndef htonl
-u_long htonl(hostlong) u_long hostlong; { return hostlong; }
-#endif htonl
-#ifndef htons
-u_short htons(hostshort) u_short hostshort; { return hostshort; }
-#endif htons
-char *index(s, c) char *s, c; { return s; }
-u_long inet_addr(cp) char *cp; { return 0L; }
-int inet_lnaof(in) struct in_addr in; { return 0; }
-int inet_netof(in) struct in_addr in; { return 0; }
-struct in_addr inet_makeaddr(net, host) { struct in_addr in; return in; }
-u_long inet_network(cp) char *cp; { return 0L; }
-char *inet_ntoa(in) struct in_addr in; { return (char *) 0; }
-int initgroups(uname, agroup) char *uname; { return 0; }
-char *initstate(s, st, n) unsigned s; char *st; { return st; }
-void insque(elem, pred) struct qelem *elem, pred; { ; }
-int isatty(f) { return 1; }
-double ldexp(v, e) double v; { return v; }
-void longjmp(e, v) jmp_buf e; {;}
-void longjmperror() {;}
-struct tm *localtime(c) long *c; { return localtime(c); }
-char *malloc(n) unsigned n; {static char c; return(&c);}
-char *memccpy(t, f, c, n) char *t, *f; { return t; }
-char *memchr(s, c, n) char *s; { return s; }
-int memcmp(s1, s2, n) char *s1, *s2; { return 0; }
-char *memcpy(t, f, n) char *t, *f; { return t; }
-char *memset(s, c, n) char *s; { return s; }
-char *mktemp(p) char *p; { return(p);}
-int mkstemp(p) char *p; { return(0);}
-double modf(v, p) double v, *p; { return v; }
-void moncontrol(mode) { ; }
-void monitor(l, h, b, s, n) int (*l)(), (*h)(); short *b; {}
-void monstartup(l, h) int (*l)(), (*h)(); {;}
-int nice(incr) { return 0; }
-int nlist(f, n) char *f; struct nlist n[]; { return (0);}
-struct ns_addr ns_addr(name) char *name; { struct ns_addr ns; return ns; }
-char *ns_ntoa(addr) struct ns_addr addr; { return (char *) 0; }
-#ifndef ntohl
-u_long ntohl(netlong) u_long netlong; { return netlong; }
-#endif ntohl
-#ifndef ntohs
-u_short ntohs(netshort) u_short netshort; { return netshort; }
-#endif ntohs
-DIR *opendir(f) char *f; { return (DIR *)NULL; }
-void openlog(s, f, l) char *s; {}
-char *optarg;
-int optind;
-void pause() {;}
-void perror(s) char *s; {}
-void psignal(sig, s) unsigned sig; char *s; {}
-void qsort(b, n, w, c) char *b; int (*c)(); {;}
-int rand(){ return 1; }
-long random() { return 1L; }
-int rcmd(a, rp, lu, ru, c, f) char **a, *lu, *ru, *c; u_short rp; int *f; { return 0; }
-char *re_comp(s) char *s ; { return s; }
-int re_exec(s) char *s ; { return 1; }
-struct direct *readdir(p) DIR *p; { return (struct direct *)NULL; }
-char *realloc(p, n) char *p; unsigned n; { static char c[1]; return(c);}
-void remque(elem) struct qelem *elem; { ; }
-int rexec(a, rp, n, p, c, f) char **a, *n, *p, *c; u_short rp; int *f; { return 0; }
-char *rindex(s, c) char *s, c; { return s; }
-int rresvport(p) int *p; { return 0; }
-int ruserok(rh, su, ru, lu) char *rh, *ru, *lu; { return 0; }
-int scandir(d, n, s, c) char *d; struct direct *(*n[]); int (*s)(),(*c)(); { return 1; }
-void seekdir(p, l) DIR *p; long l; {}
-int setegid(egid) gid_t egid; { return 0; }
-int seteuid(euid) uid_t euid; { return 0; }
-int setfsent() { return 0; }
-int setgrent() { return 0; }
-int setgid(g) gid_t g; { return(0); }
-void sethostent(stayopen) { ; }
-void sethostfile(name) char *name; { ; }
-int setjmp(e) jmp_buf e; { return(0); }
-void setkey(k) char *k; {}
-int setlogmask(m) { return(0); }
-void setnetent(stayopen) { ; }
-void setprotoent(stayopen) { ; }
-void setpwent() {}
-void setpwfile(file) char *file; {}
-int setrgid(rgid) gid_t rgid; { return 0; }
-int setruid(ruid) uid_t ruid; { return 0; }
-void setservent(stayopen) { ; }
-char *setstate(st) char *st; { return st; }
-void setttyent() { ; }
-int setuid(u) uid_t u; { return(0); }
-void setusershell() { ; }
-int siginterrupt(sig, flag) { return 0; }
-void sleep(i) unsigned i; {}
-int srand(s){ return s; }
-char *strcat(a, b) char *a, *b; { return a; }
-char *strcatn(a, b, n) char *a, *b; { return a;}
-char *strchr(s, c) char *s, c; { return s; }
-int strcmp(a, b) char *a, *b; { return(1); }
-int strcmpn(a, b, n) char *a, *b; { return(1); }
-char *strcpy(a, b) char *a, *b; { return a; }
-char *strcpyn(a, b, n) char *a, *b; { return a; }
-int strcspn(s, set) char *s, *set; { return(0); }
-int strlen(s) char *s; { return(1); }
-char *strncat(a, b, n) char *a, *b; { return a;}
-int strncmp(a, b, n) char *a, *b; { return(1); }
-char *strncpy(a, b, n) char *a, *b; { return a; }
-char *strpbrk(s, brk) char *s, *brk; { return s; }
-char *strrchr(s, c) char *s, c; { return s; }
-int strspn(s, set) char *s, *set; { return(0); }
-char *strtok(s, sep) char *s, *sep; { return s; }
-int stty(f, b) struct sgttyb *b; { return(0); }
-void swab(f, t, n) char *f, *t; {;}
-void /*VARARGS2 */
-void syslog(l, f) char *f; {}
-char *sys_errlist[];
-char *sys_siglist[];
-int sys_nerr;
-int system(s) char *s; { return(0); }
-long tell(f) { return((long)0); }
-long telldir(p) DIR *p; { return 1L; }
-long time(t) long *t; { return(0L);}
-int times(tmsp) struct tms *tmsp; { return 0; }
-char *timezone(z, d){ return (char *)0; }
-char *tmpnam(s) char *s; { return s; }
-char *ttyname(f) { return " "; }
-int ttyslot() { return 1; }
-unsigned ualarm(value, interval) unsigned value, interval; { return 0; }
-void usleep(useconds) unsigned useconds; { ; }
-int utime(name, timep) char *name; time_t *timep; { return 0; }
-char *valloc(s) unsigned s; { return malloc(s); }
-int vlimit(limit, value) { return 0; }
-int vtimes(par, ch) struct vtimes *par, *ch; { return 0; }
-
-void /*standard I/O library */
-
-int fclose(f) FILE *f; {return(0);}
-FILE *fdopen(fd, m) char *m; { return(stdin);}
-int fflush(f) FILE *f; {return(0);}
-int fgetc(f) FILE *f; {return 0; }
-char *fgets(s, l, f) char *s; FILE *f; { return(s); }
-int _filbuf(f) FILE *f; { return 0; }
-int _flsbuf(c, f) unsigned char c; FILE *f; { return 0; }
-FILE *fopen(s,m) char *s, *m; { return(stdin); }
-void /*VARARGS2 */
-void fprintf(f, s) FILE *f; char *s; {;}
-int fputc(c, f) char c; FILE *f; {return 0; }
-void fputs(s,f) char *s; FILE *f; {;}
-int fread(p, s, n, f) char *p; FILE *f; {return(1);}
-FILE *freopen(s, m, f) char *s, *m; FILE *f; { return(stdin); }
-void /*VARARGS2 */
-void fscanf(f, s) FILE *f; char *s; {return(1);}
-int fseek(f, o, p) FILE *f; long o; { return(0); }
-long ftell(f) FILE *f; { return(0L); }
-int fwrite(p, s, n, f) char *p; FILE *f; {return(0);}
-#ifndef getc
-int getc(f) FILE *f; { return EOF; }
-#endif getc
-int getw(f) FILE *f; { return 0;}
-char *gets(s) char *s; { return(s); }
-struct _iobuf _iob[];
-int pclose(f) FILE *f; { return 0; }
-FILE *popen(c, t) char *c, *t; { return(stdin); }
-void /*VARARGS1 */
-void printf(s) char *s; {;}
-void puts(s) char *s;{;}
-#ifndef putc
-int putc(c, f) char c; FILE *f; { return 0; }
-#endif putc
-int putw(w, f) FILE *f; { return 0;}
-void rewind(f) FILE *f; {;}
-void /*VARARGS1 */
-void scanf(f) char *f; {return(1); }
-void setbuf(f, b) FILE *f; char *b; {;}
-void setbuffer(f, b, s) FILE *f; char *b; {;}
-void setlinebuf(f) FILE *f; {;}
-void /*VARARGS2 */
-char *sprintf(s, f) char *s, *f; { return(s);}
-void /*VARARGS2 */
-void sscanf(s, f) char *s, *f; { return(1); }
-void ungetc(c, f) FILE *f; { return(c); }
for j in $entries
do
grep "[^0-9A-Za-z_]$j[ ]*(" llib-lc.temp |\
- #sed -e 's/{.*}/{\n errno = ENOSYS;\n return -1;\n}/'
- sed -e 's/{.*}/{\n abort();\n}/'
+ sed -e "s/{.*}/{\\n\\twrite(2, \"$j()\\\\n\", `expr length $j + 3`);\\n\\tabort();\\n}/"
done >a
if test -s a
then
#include <gen.h>
#include <net.h>
+#include <sys/file.h>
#include <sys/types.h>
/*#include <sys/types.h>*/
u_long htonl(hostlong) u_long hostlong; {
- abort();
+ write(2, "htonl()\n", 8);
+ abort();
}
#include <gen.h>
#include <net.h>
+#include <sys/file.h>
#include <sys/types.h>
/*#include <sys/types.h>*/
u_short htons(hostshort) int hostshort; {
- abort();
+ write(2, "htons()\n", 8);
+ abort();
}
#include <gen.h>
#include <net.h>
+#include <sys/file.h>
#include <sys/types.h>
/*#include <sys/types.h>*/
u_long ntohl(netlong) u_long netlong; {
- abort();
+ write(2, "ntohl()\n", 8);
+ abort();
}
#include <gen.h>
#include <net.h>
+#include <sys/file.h>
#include <sys/types.h>
/*#include <sys/types.h>*/
u_short ntohs(netshort) int netshort; {
- abort();
+ write(2, "ntohs()\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.post/compat-4.1/Makefile libx_c/compat-4.1/Makefile
---- libx_c.post/compat-4.1/Makefile 2017-01-20 12:09:42.936568593 +1100
-+++ libx_c/compat-4.1/Makefile 2017-01-20 12:09:42.972567617 +1100
+--- 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
@@ -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
-
diff --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 12:09:42.960567942 +1100
-+++ libx_c/compat-sys5/Makefile 2017-01-20 12:09:42.972567617 +1100
+--- 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
@@ -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
-# 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 12:09:42.964567834 +1100
-+++ libx_c/gen/bcopy.c 2017-01-20 12:09:42.972567617 +1100
+--- 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
@@ -1,6 +1,12 @@
#include <gen.h>
#include <sys/types.h>
*--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 12:09:42.964567834 +1100
-+++ libx_c/gen/getpass.c 2017-01-20 12:09:42.972567617 +1100
+--- 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
@@ -20,7 +20,7 @@
FILE *fi;
static char pbuf[9];
if ((fi = fdopen(open("/dev/tty", 2), "r")) == NULL)
fi = stdin;
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp.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 12:09:42.964567834 +1100
-+++ libx_c/gen/getpwnamuid.c 2017-01-20 12:09:42.972567617 +1100
+--- 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
@@ -44,19 +44,37 @@
cp = key.dptr;
tp = line;
}
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.post/gen/Makefile libx_c/gen/Makefile
---- libx_c.post/gen/Makefile 2017-01-20 12:09:42.964567834 +1100
-+++ libx_c/gen/Makefile 2017-01-20 12:09:42.972567617 +1100
+--- 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
@@ -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
-# 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 12:09:42.964567834 +1100
-+++ libx_c/gen/malloc.c 2017-01-20 12:09:42.972567617 +1100
+--- 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
@@ -4,6 +4,12 @@
#include <sys/proc.h>
#include <sys/types.h>
/*
* 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 12:09:42.964567834 +1100
-+++ libx_c/gen/ndbm.c 2017-01-20 12:09:42.972567617 +1100
+--- 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
@@ -70,14 +70,14 @@
flags = (flags & ~03) | O_RDWR;
strcpy(db->dbm_pagbuf, file);
va_end(argp);
if (db->dbm_dirf < 0)
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp.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 12:09:42.964567834 +1100
-+++ libx_c/gen/qsort.c 2017-01-20 12:09:42.972567617 +1100
+--- 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
@@ -36,7 +36,7 @@
static void qst __P((char *base, char *max));
register char c, *i, *j, *lo, *hi;
char *min, *max;
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp.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 12:09:42.964567834 +1100
-+++ libx_c/gen/scandir.c 2017-01-20 12:09:42.972567617 +1100
+--- 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
@@ -24,7 +24,7 @@
/*#include <sys/stat.h>*/
/*#include <sys/dir.h>*/
return(nitems);
}
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp.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 12:09:42.964567834 +1100
-+++ libx_c/gen/signal.c 2017-01-20 12:09:42.972567617 +1100
+--- 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
@@ -15,12 +15,12 @@
*/
/*#include <signal.h>*/
+ return ((void (*) __P((int sig)))osv.sv_handler);
}
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp.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 12:09:42.964567834 +1100
-+++ libx_c/gen/sleep.c 2017-01-20 12:09:42.972567617 +1100
+--- 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
@@ -15,7 +15,7 @@
/*#include <signal.h>*/
static int ringring;
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp.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 12:09:42.964567834 +1100
-+++ libx_c/gen/system.c 2017-01-20 12:09:42.972567617 +1100
+--- 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
@@ -11,7 +11,7 @@
int system(s) char *s; {
if ((pid = vfork()) == 0) {
execl("/bin/sh", "sh", "-c", s, 0);
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp.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 12:09:42.964567834 +1100
-+++ libx_c/gen/usleep.c 2017-01-20 12:09:42.972567617 +1100
+--- 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
@@ -18,7 +18,7 @@
#define TICK 10000 /* system clock resolution in microseconds */
static int ringring;
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp.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 12:09:42.964567834 +1100
-+++ libx_c/gen/valloc.c 2017-01-20 12:09:42.972567617 +1100
+--- 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
@@ -1,6 +1,12 @@
#include <gen.h>
#include <sys.h>
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 12:09:42.940568485 +1100
-+++ libx_c/gen.h 2017-01-20 12:09:42.972567617 +1100
+--- 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
@@ -108,7 +108,7 @@
char *mktemp __P((char *as));
/* 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 12:09:42.940568485 +1100
-+++ libx_c/inet/Makefile 2017-01-20 12:09:42.972567617 +1100
+--- 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
@@ -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
-# 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
--- 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:09:42.972567617 +1100
-@@ -0,0 +1,17 @@
++++ libx_c/linux/csu/crt0.c 2017-01-20 12:19:51.000000000 +1100
+@@ -0,0 +1,19 @@
++#include <stdio.h>
++
+extern char **nox_environ;
+char **environ;
+
+
+nox_int nox_main(argc, argv) nox_int argc; char **argv; {
+ environ = nox_environ;
-+ return main(argc, argv);
++ 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
--- 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.976567508 +1100
++++ libx_c/linux/csu/Makefile 2017-01-20 12:09:42.000000000 +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
+
diff --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
--- 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.722624305 +1100
++++ libx_c/linux/gen/abort.c 2017-01-20 12:11:05.000000000 +1100
@@ -0,0 +1,7 @@
+#include <nox_stdlib.h>
+
+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
--- 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.722624305 +1100
++++ libx_c/linux/gen/Makefile 2017-01-20 12:11:05.000000000 +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
+
diff --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
--- 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.722624305 +1100
++++ libx_c/linux/gen/modf.c 2017-01-20 12:11:05.000000000 +1100
@@ -0,0 +1,7 @@
+#include <nox_math.h>
+
+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
--- libx_c.post/linux/Makefile 1970-01-01 10:00:00.000000000 +1000
-+++ libx_c/linux/Makefile 2017-01-20 12:09:42.976567508 +1100
++++ libx_c/linux/Makefile 2017-01-20 12:09:42.000000000 +1100
@@ -0,0 +1,43 @@
+#
+# Copyright (c) 1980 Regents of the University of California.
+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
+--- 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
+@@ -0,0 +1,13 @@
++#include <nox_unistd.h>
++
++#include <sys/errno.h>
++#include <sys/file.h>
++
++int close(f) int f; {
++ int res;
++
++ res = nox_close(f);
++ if (res == -1)
++ 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
+--- 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
+@@ -0,0 +1,7 @@
++#include <nox_unistd.h>
++
++#include <sys/proc.h>
++
++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
--- 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.722624305 +1100
++++ libx_c/linux/sys/fstat.c 2017-01-20 12:11:05.000000000 +1100
@@ -0,0 +1,17 @@
+#include <sys/nox_stat.h>
+#include <nox_unistd.h>
+}
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp.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.722624305 +1100
++++ libx_c/linux/sys/getpagesize.c 2017-01-20 12:11:05.000000000 +1100
@@ -0,0 +1,7 @@
+#include <nox_unistd.h>
+
+}
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp.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.722624305 +1100
++++ libx_c/linux/sys/isatty.c 2017-01-20 12:11:05.000000000 +1100
@@ -0,0 +1,13 @@
+#include <nox_unistd.h>
+
+ 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
+--- 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
+@@ -0,0 +1,15 @@
++#include <nox_unistd.h>
++#include <sys/nox_types.h>
++
++#include <sys/errno.h>
++#include <sys/file.h>
++#include <sys/types.h>
++
++off_t lseek(f, o, d) int f; off_t o; int d; {
++ off_t res;
++
++ res = (off_t)nox_lseek(f, (nox_off_t)o, d);
++ if (res == (off_t)-1)
++ 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
--- libx_c.post/linux/sys/Makefile 1970-01-01 10:00:00.000000000 +1000
-+++ libx_c/linux/sys/Makefile 2017-01-20 12:11:05.722624305 +1100
-@@ -0,0 +1,55 @@
++++ libx_c/linux/sys/Makefile 2017-01-20 14:15:29.885950308 +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
+#
+# @(#)Makefile 5.4 (Berkeley) 9/5/85
+#
+
-+SRCS= fstat.c getpagesize.c isatty.c sbrk.c write.c
-+OBJS= fstat.o getpagesize.o isatty.o sbrk.o write.o
++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
+TAGSFILE=tags
+
+.c.o:
+
+# 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
+--- 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
+@@ -0,0 +1,15 @@
++#include <nox_unistd.h>
++
++#include <sys/errno.h>
++#include <sys/file.h>
++
++int read(f, b, l) int f; void *b; int l; {
++ nox_size_t res;
++
++ res = nox_read(f, b, l);
++ if (res == (nox_size_t)-1) {
++ errno = EIO;
++ return -1;
++ }
++ 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
--- 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.866364022 +1100
++++ libx_c/linux/sys/sbrk.c 2017-01-20 12:11:18.000000000 +1100
@@ -0,0 +1,14 @@
+#include <nox_stdint.h>
+#include <nox_unistd.h>
+ 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
+--- 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 @@
++#include <nox_fcntl.h>
++
++#include <sys/errno.h>
++#include <sys/file.h>
++#ifdef __STDC__
++#include <stdarg.h>
++#define _va_start(argp, arg) va_start(argp, arg)
++#else
++#include <varargs.h>
++#define _va_start(argp, arg) va_start(argp)
++#endif
++
++int vopen(f, m, argp) char *f; va_list argp; {
++ int res;
++
++ res = nox_open(f, m, m & O_CREAT ? va_arg(argp, int) : 0);
++ 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
--- 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.722624305 +1100
++++ libx_c/linux/sys/write.c 2017-01-20 12:11:05.000000000 +1100
@@ -0,0 +1,15 @@
+#include <nox_unistd.h>
+
+ 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 12:09:42.940568485 +1100
-+++ libx_c/Makefile 2017-01-20 12:09:42.976567508 +1100
+--- libx_c.post/Makefile 2017-01-20 14:13:50.269402140 +1100
++++ libx_c/Makefile 2017-01-20 14:13:50.301402334 +1100
@@ -1,3 +1,5 @@
+ROOT=${shell pwd}/../..
+DESTDIR=${ROOT}/cross
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 12:09:42.936568593 +1100
-+++ libx_c/net/hosttable/Makefile 2017-01-20 12:09:42.976567508 +1100
+--- 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
@@ -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
-# 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 12:09:42.936568593 +1100
-+++ libx_c/net/Makefile 2017-01-20 12:09:42.976567508 +1100
+--- 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
@@ -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
-# 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 12:09:42.936568593 +1100
-+++ libx_c/net/named/gethostnamadr.c 2017-01-20 12:11:05.726624224 +1100
+--- 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
@@ -12,6 +12,12 @@
#include <sys/socket.h>
#include <sys/types.h>
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 12:09:42.936568593 +1100
-+++ libx_c/net/named/Makefile 2017-01-20 12:09:42.976567508 +1100
+--- 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
@@ -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
-# 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 12:09:42.932568701 +1100
-+++ libx_c/ns/Makefile 2017-01-20 12:09:42.976567508 +1100
+--- 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
@@ -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
-# 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 12:09:42.932568701 +1100
-+++ libx_c/stdio/doprnt.c 2017-01-20 12:09:42.976567508 +1100
+--- 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
@@ -13,6 +13,14 @@
#define _va_start(argp, arg) va_start(argp)
#endif
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 12:09:42.932568701 +1100
-+++ libx_c/stdio/findiop.c 2017-01-20 12:09:42.976567508 +1100
+--- 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
@@ -105,7 +105,7 @@
*iov = (FILE *)calloc(1, sizeof **iov);
}
register FILE *fp;
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.post/stdio/Makefile libx_c/stdio/Makefile
---- libx_c.post/stdio/Makefile 2017-01-20 12:09:42.932568701 +1100
-+++ libx_c/stdio/Makefile 2017-01-20 12:09:42.976567508 +1100
+--- 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
@@ -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
-# 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 12:09:42.944568376 +1100
-+++ libx_c/stdio.h 2017-01-20 12:09:42.976567508 +1100
+--- 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
@@ -109,7 +109,7 @@
FILE *_findiop __P((void));
int _f_morefiles __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 12:09:42.948568268 +1100
-+++ libx_c/sys/dir.h 2017-01-20 12:09:42.976567508 +1100
+--- 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
@@ -122,7 +122,7 @@
struct direct *readdir __P((register DIR *dirp));
/* gen/seekdir.c */
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp.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 12:09:42.976567508 +1100
++++ libx_c/sys/Makefile 2017-01-20 14:13:50.301402334 +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
+
+# 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
+@@ -17,7 +17,7 @@
+ va_list argp;
+ int res;
+
+- _va_start(argp, fmt);
++ _va_start(argp, m);
+ 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 12:09:42.948568268 +1100
-+++ libx_c/sys/signal.h 2017-01-20 12:09:42.976567508 +1100
+--- 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
@@ -9,7 +9,7 @@
* @(#)signal.h 7.1 (Berkeley) 6/4/86
*/
diff --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 12:04:56.149620637 +1100
-+++ libx_c/compat-4.1/ftime.c 2017-01-20 12:04:56.161620257 +1100
+--- 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
@@ -10,18 +10,20 @@
#include <sys/types.h>
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 12:04:56.149620637 +1100
-+++ libx_c/compat-4.1/gtty.c 2017-01-20 12:04:56.161620257 +1100
+--- 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
@@ -15,7 +15,7 @@
#include <sgtty.h>
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 12:04:56.149620637 +1100
-+++ libx_c/compat-4.1/stty.c 2017-01-20 12:04:56.161620257 +1100
+--- 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
@@ -15,7 +15,7 @@
#include <sgtty.h>
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 12:04:56.149620637 +1100
-+++ libx_c/compat-4.1/times.c 2017-01-20 12:04:56.161620257 +1100
+--- 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
@@ -10,16 +10,18 @@
#include <sys/time.h>
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 12:04:56.149620637 +1100
-+++ libx_c/compat-4.1/vtimes.c 2017-01-20 12:04:56.161620257 +1100
+--- 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
@@ -10,23 +10,25 @@
#include <sys/time.h>
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 12:04:56.157620384 +1100
-+++ libx_c/compat-sys5/memccpy.c 2017-01-20 12:04:56.161620257 +1100
+--- 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
@@ -13,11 +13,15 @@
#endif
+#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 12:04:56.157620384 +1100
-+++ libx_c/compat-sys5/memchr.c 2017-01-20 12:04:56.161620257 +1100
+--- 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
@@ -12,12 +12,14 @@
static char sccsid[] = "@(#)memchr.c 5.2 (Berkeley) 86/03/09";
#endif
+#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 12:04:56.157620384 +1100
-+++ libx_c/compat-sys5/memcmp.c 2017-01-20 12:04:56.161620257 +1100
+--- 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
@@ -12,11 +12,15 @@
static char sccsid[] = "@(#)memcmp.c 5.2 (Berkeley) 86/03/09";
#endif
+#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 12:04:56.157620384 +1100
-+++ libx_c/compat-sys5/memcpy.c 2017-01-20 12:04:56.161620257 +1100
+--- 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
@@ -12,14 +12,18 @@
static char sccsid[] = "@(#)memcpy.c 5.2 (Berkeley) 86/03/09";
#endif
+#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 12:04:56.157620384 +1100
-+++ libx_c/compat-sys5/memset.c 2017-01-20 12:04:56.161620257 +1100
+--- 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
@@ -12,14 +12,16 @@
static char sccsid[] = "@(#)memset.c 5.2 (Berkeley) 86/03/09";
#endif
+#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 12:04:56.153620511 +1100
+--- libx_c.pre/fcntl.h 2017-01-20 14:09:48.623935316 +1100
+++ libx_c/fcntl.h 1970-01-01 10:00:00.000000000 +1000
@@ -1,40 +0,0 @@
-/*
-#define FEXCL 04000 /* error if already created */
-#endif
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp.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 12:04:56.157620384 +1100
-+++ libx_c/gen/bcmp.c 2017-01-20 12:04:56.161620257 +1100
+--- 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
@@ -11,10 +11,11 @@
/*
* bcmp -- vax cmpc3 instruction
+#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 12:04:56.157620384 +1100
-+++ libx_c/gen/bcopy.c 2017-01-20 12:04:56.161620257 +1100
+--- 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
@@ -11,9 +11,11 @@
/*
* bcopy -- vax movc3 instruction
+#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 12:04:56.157620384 +1100
-+++ libx_c/gen/bzero.c 2017-01-20 12:04:56.161620257 +1100
+--- 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
@@ -11,13 +11,14 @@
/*
* bzero -- vax movc5 instruction
+#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 12:04:56.157620384 +1100
-+++ libx_c/gen/calloc.c 2017-01-20 12:04:56.161620257 +1100
+--- 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
@@ -5,11 +5,11 @@
/*
* Calloc - allocate and clear memory block
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 12:04:56.157620384 +1100
-+++ libx_c/gen/fakcu.c 2017-01-20 12:04:56.161620257 +1100
+--- 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
@@ -6,5 +6,6 @@
* Null cleanup routine to resolve reference in exit()
* if not using stdio.
_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 12:04:56.157620384 +1100
-+++ libx_c/gen/getpass.c 2017-01-20 12:04:56.161620257 +1100
+--- 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
@@ -15,8 +15,8 @@
register c;
FILE *fi;
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 12:04:56.157620384 +1100
-+++ libx_c/gen/getusershell.c 2017-01-20 12:04:56.161620257 +1100
+--- 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
@@ -62,7 +62,7 @@
register char **sp, *cp;
register FILE *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 12:04:56.157620384 +1100
-+++ libx_c/gen/insque.c 2017-01-20 12:04:56.161620257 +1100
+--- 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
@@ -8,16 +8,19 @@
static char sccsid[] = "@(#)insque.c 5.1 (Berkeley) 1/27/87";
#endif
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 12:04:56.157620384 +1100
+--- libx_c.pre/gen/isatty.c 2017-01-20 14:09:48.627935332 +1100
+++ libx_c/gen/isatty.c 1970-01-01 10:00:00.000000000 +1000
@@ -1,17 +0,0 @@
-#if defined(LIBC_SCCS) && !defined(lint)
- 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 12:04:56.157620384 +1100
-+++ libx_c/gen/malloc.c 2017-01-20 12:04:56.161620257 +1100
+--- 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
@@ -82,7 +82,7 @@
#if defined(DEBUG) || defined(RCHECK)
#define ASSERT(p) if (!(p)) botch("p")
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 12:04:56.157620384 +1100
-+++ libx_c/gen/ndbm.c 2017-01-20 12:04:56.161620257 +1100
+--- 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
@@ -14,6 +14,7 @@
#include <stdio.h>
#include <errno.h>
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 12:04:56.157620384 +1100
-+++ libx_c/gen/perror.c 2017-01-20 12:04:56.161620257 +1100
+--- 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
@@ -17,7 +17,7 @@
int errno;
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 12:04:56.157620384 +1100
+--- libx_c.pre/gen/popen.c 2017-01-20 14:09:48.631935348 +1100
+++ libx_c/gen/popen.c 1970-01-01 10:00:00.000000000 +1000
@@ -1,77 +0,0 @@
-/*
- 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 12:04:56.157620384 +1100
-+++ libx_c/gen/qsort.c 2017-01-20 12:04:56.161620257 +1100
+--- 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
@@ -32,11 +32,13 @@
* It's not...
*/
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 12:04:56.157620384 +1100
-+++ libx_c/gen/random.c 2017-01-20 12:04:56.161620257 +1100
+--- 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
@@ -222,7 +222,7 @@
if( n < BREAK_1 ) {
if( n < BREAK_0 ) {
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 12:04:56.157620384 +1100
-+++ libx_c/gen/regex.c 2017-01-20 12:04:56.161620257 +1100
+--- 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
@@ -8,8 +8,6 @@
static char sccsid[] = "@(#)regex.c 5.2 (Berkeley) 3/9/86";
#endif
* 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 12:04:56.157620384 +1100
-+++ libx_c/gen/remque.c 2017-01-20 12:04:56.161620257 +1100
+--- 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
@@ -8,16 +8,19 @@
static char sccsid[] = "@(#)remque.c 5.1 (Berkeley) 1/27/87";
#endif
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 12:04:56.157620384 +1100
-+++ libx_c/gen/signal.c 2017-01-20 12:04:56.161620257 +1100
+--- 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
@@ -13,9 +13,10 @@
*/
#include <signal.h>
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 12:04:56.157620384 +1100
-+++ libx_c/gen/sleep.c 2017-01-20 12:04:56.161620257 +1100
+--- 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
@@ -16,9 +16,11 @@
static int ringring;
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 12:04:56.157620384 +1100
-+++ libx_c/gen/syslog.c 2017-01-20 12:04:56.161620257 +1100
+--- 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
@@ -54,6 +54,7 @@
extern int errno, sys_nerr;
extern char *sys_errlist[];
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 12:04:56.157620384 +1100
-+++ libx_c/gen/system.c 2017-01-20 12:04:56.161620257 +1100
+--- 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
@@ -7,7 +7,7 @@
system(s)
char *s; {
if ((pid = vfork()) == 0) {
execl("/bin/sh", "sh", "-c", s, 0);
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp.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 12:04:56.157620384 +1100
-+++ libx_c/gen/usleep.c 2017-01-20 12:04:56.161620257 +1100
+--- 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
@@ -19,9 +19,11 @@
static int ringring;
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 12:04:56.157620384 +1100
-+++ libx_c/gen/valloc.c 2017-01-20 12:04:56.161620257 +1100
+--- 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
@@ -8,9 +8,9 @@
static char sccsid[] = "@(#)valloc.c 5.2 (Berkeley) 3/9/86";
#endif
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
--- libx_c.pre/gen.h 1970-01-01 10:00:00.000000000 +1000
-+++ libx_c/gen.h 2017-01-20 12:04:56.165620130 +1100
++++ libx_c/gen.h 2017-01-20 14:09:48.635935365 +1100
@@ -0,0 +1,5 @@
+/* formerly duplicated in gen/insque.c and gen/remque.c */
+struct vaxque { /* queue format expected by VAX queue instructions */
+ struct vaxque *vq_prev;
+};
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp.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 12:04:56.149620637 +1100
-+++ libx_c/net/rcmd.c 2017-01-20 12:04:56.165620130 +1100
+--- 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
@@ -58,7 +58,7 @@
sin.sin_family = hp->h_addrtype;
bcopy(hp->h_addr_list[0], (caddr_t)&sin.sin_addr, hp->h_length);
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 12:04:56.149620637 +1100
-+++ libx_c/net/res_debug.c 2017-01-20 12:04:56.165620130 +1100
+--- 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
@@ -324,7 +324,9 @@
}
}
}
diff --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 12:04:56.149620637 +1100
-+++ libx_c/net/res_mkquery.c 2017-01-20 12:04:56.165620130 +1100
+--- 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
@@ -14,7 +14,10 @@
#include <arpa/nameser.h>
#include <resolv.h>
/*
* 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 12:04:56.153620511 +1100
-+++ libx_c/net/res_send.c 2017-01-20 12:04:56.165620130 +1100
+--- 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
@@ -82,7 +82,7 @@
#endif
continue;
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 12:04:56.153620511 +1100
-+++ libx_c/net/rexec.c 2017-01-20 12:04:56.165620130 +1100
+--- 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
@@ -49,7 +49,7 @@
sin.sin_family = hp->h_addrtype;
sin.sin_port = rport;
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 12:04:56.149620637 +1100
-+++ libx_c/net/ruserpass.c 2017-01-20 12:04:56.165620130 +1100
+--- 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
@@ -19,6 +19,7 @@
struct utmp *getutmp();
static FILE *cfile;
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
--- libx_c.pre/net.h 1970-01-01 10:00:00.000000000 +1000
-+++ libx_c/net.h 2017-01-20 12:04:56.165620130 +1100
++++ libx_c/net.h 2017-01-20 14:09:48.635935365 +1100
@@ -0,0 +1,16 @@
+/* formerly duplicated in netinet/in.h and netns/ns.h */
+/* confuses cproto which thinks #define names are types or type modifiers */
+u_long ntohl(), htonl();
+/*#endif*/
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp.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 12:04:56.153620511 +1100
-+++ libx_c/netinet/in.h 2017-01-20 12:04:56.165620130 +1100
+--- 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
@@ -90,20 +90,21 @@
*/
#define IP_OPTIONS 1 /* set/get IP per-packet options */
#ifdef KERNEL
extern struct domain inetdomain;
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp.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 12:04:56.153620511 +1100
-+++ libx_c/netinet/ip.h 2017-01-20 12:04:56.165620130 +1100
+--- 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
@@ -81,7 +81,7 @@
struct in_addr ipt_addr;
n_long ipt_time;
/* flag bits for ipt_flg */
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp.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 12:04:56.153620511 +1100
-+++ libx_c/netinet/tcp.h 2017-01-20 12:04:56.165620130 +1100
+--- 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
@@ -44,7 +44,9 @@
#ifdef lint
#define TCP_MSS 536
/*
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp.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 12:04:56.153620511 +1100
-+++ libx_c/netns/ns.h 2017-01-20 12:04:56.165620130 +1100
+--- 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
@@ -103,20 +103,21 @@
#define ns_nullhost(x) (((x).x_host.s_host[0]==0) && \
((x).x_host.s_host[1]==0) && ((x).x_host.s_host[2]==0))
#ifdef KERNEL
extern struct domain nsdomain;
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.pre/nlist.h libx_c/nlist.h
---- libx_c.pre/nlist.h 2017-01-20 12:04:56.153620511 +1100
+--- libx_c.pre/nlist.h 2017-01-20 14:09:48.623935316 +1100
+++ libx_c/nlist.h 1970-01-01 10:00:00.000000000 +1000
@@ -1,46 +0,0 @@
-/*
- */
-#define N_FORMAT "%08x"
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp.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 12:04:56.149620637 +1100
-+++ libx_c/ns/ns_addr.c 2017-01-20 12:04:56.165620130 +1100
+--- 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
@@ -54,7 +54,7 @@
socketname = index(hostname, separator);
if (socketname) {
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 12:04:56.149620637 +1100
-+++ libx_c/stdio/doprnt.c 2017-01-20 12:04:56.165620130 +1100
+--- 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
@@ -271,9 +271,10 @@
* NUL in the first `prec' characters, and
* strlen() will go further.
if (size > prec)
size = prec;
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp.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 12:04:56.149620637 +1100
-+++ libx_c/stdio/doscan.c 2017-01-20 12:04:56.165620130 +1100
+--- 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
@@ -3,7 +3,8 @@
#endif
}
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 12:04:56.149620637 +1100
-+++ libx_c/stdio/findiop.c 2017-01-20 12:04:56.165620130 +1100
+--- 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
@@ -23,7 +23,7 @@
{ 0, NULL, NULL, 0, _IOWRT|_IONBF, 2 }, /* stderr */
};
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 12:04:56.149620637 +1100
-+++ libx_c/stdio/fprintf.c 2017-01-20 12:04:56.165620130 +1100
+--- 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
@@ -1,31 +1,48 @@
/*
* Copyright (c) 1980 Regents of the University of California.
+ 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 12:04:56.149620637 +1100
-+++ libx_c/stdio/fread.c 2017-01-20 12:04:56.165620130 +1100
+--- 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
@@ -10,10 +10,11 @@
#include <stdio.h>
+#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 12:04:56.149620637 +1100
-+++ libx_c/stdio/fwrite.c 2017-01-20 12:04:56.165620130 +1100
+--- 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
@@ -10,10 +10,11 @@
#include <stdio.h>
}
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp.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 12:04:56.165620130 +1100
++++ libx_c/stdio/popen.c 2017-01-20 14:09:48.639935381 +1100
@@ -0,0 +1,77 @@
+/*
+ * Copyright (c) 1980 Regents of the University of California.
+ return (pid == -1 ? -1 : status);
+}
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp.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 12:04:56.149620637 +1100
-+++ libx_c/stdio/printf.c 2017-01-20 12:04:56.165620130 +1100
+--- 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
@@ -1,11 +1,35 @@
+/*
+ * Copyright (c) 1987 Regents of the University of California.
+ 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 12:04:56.149620637 +1100
-+++ libx_c/stdio/scanf.c 2017-01-20 12:04:56.165620130 +1100
+--- 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
@@ -2,29 +2,50 @@
static char sccsid[] = "@(#)scanf.c 5.2 (Berkeley) 3/9/86";
#endif
+ 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 12:04:56.149620637 +1100
-+++ libx_c/stdio/setbuffer.c 2017-01-20 12:04:56.165620130 +1100
+--- 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
@@ -33,11 +33,11 @@
setlinebuf(iop)
register FILE *iop; {
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 12:04:56.149620637 +1100
-+++ libx_c/stdio/sprintf.c 2017-01-20 12:04:56.165620130 +1100
+--- 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
@@ -1,17 +1,40 @@
+/*
+ * Copyright (c) 1987 Regents of the University of California.
}
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp.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 12:04:56.165620130 +1100
++++ libx_c/stdio/vfprintf.c 2017-01-20 14:09:48.639935381 +1100
@@ -0,0 +1,46 @@
+/*
+ * Copyright (c) 1988 Regents of the University of California.
+}
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp.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 12:04:56.165620130 +1100
++++ libx_c/stdio/vprintf.c 2017-01-20 14:09:48.639935381 +1100
@@ -0,0 +1,33 @@
+/*
+ * Copyright (c) 1988 Regents of the University of California.
+}
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp.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 12:04:56.165620130 +1100
++++ libx_c/stdio/vsprintf.c 2017-01-20 14:09:48.639935381 +1100
@@ -0,0 +1,38 @@
+/*
+ * Copyright (c) 1988 Regents of the University of California.
+ return (len);
+}
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.pre/stdio.h libx_c/stdio.h
---- libx_c.pre/stdio.h 2017-01-20 12:04:56.153620511 +1100
-+++ libx_c/stdio.h 2017-01-20 12:04:56.165620130 +1100
+--- 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
@@ -59,7 +59,7 @@
long ftell();
char *fgets();
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/brk.c libx_c/sys/brk.c
---- libx_c.pre/sys/brk.c 2017-01-20 12:04:56.153620511 +1100
-+++ libx_c/sys/brk.c 2017-01-20 12:06:02.720360567 +1100
-@@ -1,3 +1,3 @@
--char *brk(a) char *a; {
-+void *brk(a) void *a; {
- 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/dir.h libx_c/sys/dir.h
---- libx_c.pre/sys/dir.h 2017-01-20 12:04:56.157620384 +1100
-+++ libx_c/sys/dir.h 2017-01-20 12:04:56.165620130 +1100
+--- 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
@@ -32,9 +32,9 @@
* dp->d_ino set to 0.
*/
#define MAXNAMLEN 255
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp.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 12:04:56.153620511 +1100
-+++ libx_c/sys/errno.h 2017-01-20 12:04:56.165620130 +1100
+--- 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
@@ -96,3 +96,7 @@
#define EPROCLIM 67 /* Too many processes */
#define EUSERS 68 /* Too many users */
+extern int errno;
+#endif
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp.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 12:04:56.157620384 +1100
-+++ libx_c/sys/execl.c 2017-01-20 12:04:56.165620130 +1100
-@@ -1,3 +1,4 @@
+--- 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
+@@ -1,4 +1,5 @@
-void execl(f, a) char *f, *a; {
+#include <varargs.h>
+void execl(f, va_alist) char *f; va_dcl {
- abort();
+ 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 12:04:56.153620511 +1100
-+++ libx_c/sys/execle.c 2017-01-20 12:04:56.165620130 +1100
-@@ -1,3 +1,4 @@
+--- 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
+@@ -1,4 +1,5 @@
-void execle(f, a) char *f, *a; {
+#include <varargs.h>
+void execle(f, va_alist) char *f; va_dcl {
- 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/ioctl.c libx_c/sys/ioctl.c
---- libx_c.pre/sys/ioctl.c 2017-01-20 12:04:56.153620511 +1100
-+++ libx_c/sys/ioctl.c 2017-01-20 12:04:56.165620130 +1100
-@@ -1,3 +1,3 @@
--int ioctl(d, r, p) u_long r; char *p; {
-+int ioctl(d, r, p) u_long r; void *p; {
- abort();
+ 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
--- libx_c.pre/sys/isatty.c 1970-01-01 10:00:00.000000000 +1000
-+++ libx_c/sys/isatty.c 2017-01-20 12:04:56.165620130 +1100
++++ libx_c/sys/isatty.c 2017-01-20 14:09:48.639935381 +1100
@@ -0,0 +1,17 @@
+#if defined(LIBC_SCCS) && !defined(lint)
+static char sccsid[] = "@(#)isatty.c 5.2 (Berkeley) 3/9/86";
+ return(1);
+}
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp.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 12:04:56.153620511 +1100
-+++ libx_c/sys/open.c 2017-01-20 12:04:56.165620130 +1100
-@@ -1,3 +1,4 @@
--int open(f, m, stuff) char *f; {
-+#include <varargs.h>
-+int open(f, m, va_alist) char *f; va_dcl {
- abort();
+--- 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
+@@ -1,4 +1,9 @@
+ int open(f, m, va_alist) char *f; va_dcl {
+- write(2, "open()\n", 7);
+- abort();
++ va_list argp;
++ int res;
++
++ va_start(argp);
++ 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.pre/sys/param.h libx_c/sys/param.h
---- libx_c.pre/sys/param.h 2017-01-20 12:04:56.153620511 +1100
-+++ libx_c/sys/param.h 2017-01-20 12:04:56.169620003 +1100
+--- 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
@@ -53,15 +53,16 @@
/*
* Signals
+/* moved this from sys/types.h */
+#define NBBY 8 /* number of bits in a byte */
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp.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 12:04:56.153620511 +1100
-+++ libx_c/sys/proc.h 2017-01-20 12:04:56.169620003 +1100
+--- 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
@@ -117,3 +117,8 @@
#define SSEL 0x0400000 /* selecting; wakeup/waiting danger */
#define SLOGIN 0x0800000 /* a login process (legit child of init) */
+#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/read.c libx_c/sys/read.c
---- libx_c.pre/sys/read.c 2017-01-20 12:04:56.153620511 +1100
-+++ libx_c/sys/read.c 2017-01-20 12:04:56.169620003 +1100
-@@ -1,3 +1,3 @@
--int read(f, b, l) char *b; {
-+int read(f, b, l) void *b; {
- 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/recv.c libx_c/sys/recv.c
---- libx_c.pre/sys/recv.c 2017-01-20 12:04:56.153620511 +1100
-+++ libx_c/sys/recv.c 2017-01-20 12:04:56.169620003 +1100
-@@ -1,3 +1,3 @@
--int recv(s, b, l, f) char *b; {
-+int recv(s, b, l, f) void *b; {
- 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/recvfrom.c libx_c/sys/recvfrom.c
---- libx_c.pre/sys/recvfrom.c 2017-01-20 12:04:56.153620511 +1100
-+++ libx_c/sys/recvfrom.c 2017-01-20 12:04:56.169620003 +1100
-@@ -1,3 +1,3 @@
--int recvfrom(s, b, l, f, fr, fl) char *b; struct sockaddr *fr; int *fl; {
-+int recvfrom(s, b, l, f, fr, fl) void *b; struct sockaddr *fr; int *fl; {
- 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/sbrk.c libx_c/sys/sbrk.c
---- libx_c.pre/sys/sbrk.c 2017-01-20 12:04:56.157620384 +1100
-+++ libx_c/sys/sbrk.c 2017-01-20 12:05:49.029437799 +1100
-@@ -1,3 +1,3 @@
--char *sbrk(i) {
-+void *sbrk(i) {
- 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/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 12:04:56.169620003 +1100
++++ libx_c/sys/select.h 2017-01-20 14:09:48.639935381 +1100
@@ -0,0 +1,28 @@
+#include <sys/param.h>
+
+#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/send.c libx_c/sys/send.c
---- libx_c.pre/sys/send.c 2017-01-20 12:04:56.153620511 +1100
-+++ libx_c/sys/send.c 2017-01-20 12:04:56.169620003 +1100
-@@ -1,3 +1,3 @@
--int send(s, m, l, f) char *m; {
-+int send(s, m, l, f) void *m; {
- 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/sendto.c libx_c/sys/sendto.c
---- libx_c.pre/sys/sendto.c 2017-01-20 12:04:56.153620511 +1100
-+++ libx_c/sys/sendto.c 2017-01-20 12:04:56.169620003 +1100
-@@ -1,3 +1,3 @@
--int sendto(s, m, l, f, t, tl) char *m; struct sockaddr *t; {
-+int sendto(s, m, l, f, t, tl) void *m; struct sockaddr *t; {
- 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/signal.h libx_c/sys/signal.h
---- libx_c.pre/sys/signal.h 2017-01-20 12:04:56.153620511 +1100
-+++ libx_c/sys/signal.h 2017-01-20 12:04:56.169620003 +1100
+--- 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
@@ -57,14 +57,14 @@
#define SIGUSR2 31 /* user defined signal 2 */
#endif
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp.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 12:04:56.153620511 +1100
-+++ libx_c/sys/tty.h 2017-01-20 12:04:56.169620003 +1100
+--- 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
@@ -70,20 +70,22 @@
struct ttychars t_chars; /* tty */
struct winsize t_winsize; /* window size */
#define TTIPRI 28
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp.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 12:04:56.153620511 +1100
-+++ libx_c/sys/types.h 2017-01-20 12:04:56.169620003 +1100
+--- 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
@@ -45,30 +45,32 @@
typedef u_short uid_t;
typedef u_short gid_t;
#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
--- libx_c.pre/sys/vfork.c 1970-01-01 10:00:00.000000000 +1000
-+++ libx_c/sys/vfork.c 2017-01-20 12:04:56.169620003 +1100
++++ libx_c/sys/vfork.c 2017-01-20 14:09:48.639935381 +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 12:04:56.153620511 +1100
-+++ libx_c/sys/vmmac.h 2017-01-20 12:04:56.169620003 +1100
+--- 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
@@ -157,3 +157,10 @@
} \
c->c_lock = 0; \
+ (*(int *)(pte) = (pfnum) | (prot), mtpr(TBIS, ptob(v)))
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp.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 12:04:56.169620003 +1100
++++ libx_c/sys/vopen.c 2017-01-20 14:10:41.576142959 +1100
@@ -0,0 +1,4 @@
-+#include <varargs.h>
+int vopen(f, m, argp) char *f; va_list argp; {
-+ abort();
++ 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/sys/wait.c libx_c/sys/wait.c
---- libx_c.pre/sys/wait.c 2017-01-20 12:04:56.153620511 +1100
-+++ libx_c/sys/wait.c 2017-01-20 12:04:56.169620003 +1100
-@@ -1,3 +1,3 @@
--int wait(s) union wait *s; {
-+int wait(s) int *s; {
- 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/write.c libx_c/sys/write.c
---- libx_c.pre/sys/write.c 2017-01-20 12:04:56.153620511 +1100
-+++ libx_c/sys/write.c 2017-01-20 12:04:56.169620003 +1100
-@@ -1,3 +1,3 @@
--int write(f, b, l) char *b; {
-+int write(f, b, l) void *b; {
- 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 12:04:56.153620511 +1100
-+++ libx_c/vax/vmparam.h 2017-01-20 12:04:56.169620003 +1100
+--- 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
@@ -156,5 +156,6 @@
/*
* BEWARE THIS DEFINITION WORKS ONLY WITH COUNT OF 1
../../xify/xify.sh <$i >../../cross/include/`dirname $i`/x_`basename $i`
done
-find . -name '*.h' -print |\
-sed -e 's:\./::' |\
-while read i
-do
- echo "i=$i"
- name=`echo $i |tr '.\-/' '___'`
- echo "name=$name"
- echo "#include <$i>" |../../xify/xify.sh >$name.temp.c
- echo "===$i===" >&2
- gcc -I../../cross/include -Dx_vax -Dx_NCMD=1 -Dx_NRSP=1 -c $name.temp.c
- rm $name.temp.c
-done
-
-find . -name '*.c' -print |\
-sed -e 's:\./::' |\
-while read i
-do
- echo "i=$i"
- name=`echo $i |tr '.\-/' '___'`
- echo "name=$name"
- ../../xify/xify.sh <$i >$name.temp.c
- echo "===$i===" >&2
- gcc -I../../cross/include -Dx_vax -c $name.temp.c
- rm $name.temp.c
-done
+#find . -name '*.h' -print |\
+#sed -e 's:\./::' |\
+#while read i
+#do
+# echo "i=$i"
+# name=`echo $i |tr '.\-/' '___'`
+# echo "name=$name"
+# echo "#include <$i>" |../../xify/xify.sh >$name.temp.c
+# echo "===$i===" >&2
+# gcc -I../../cross/include -Dx_vax -Dx_NCMD=1 -Dx_NRSP=1 -c $name.temp.c
+# rm $name.temp.c
+#done
+#
+#find . -name '*.c' -print |\
+#sed -e 's:\./::' |\
+#while read i
+#do
+# echo "i=$i"
+# name=`echo $i |tr '.\-/' '___'`
+# echo "name=$name"
+# ../../xify/xify.sh <$i >$name.temp.c
+# echo "===$i===" >&2
+# gcc -I../../cross/include -Dx_vax -c $name.temp.c
+# rm $name.temp.c
+#done
#include <gen.h>
+#include <sys/file.h>
#include <sys/proc.h>
void _exit(s) int s; {
- abort();
+ write(2, "_exit()\n", 8);
+ abort();
}
#include <gen.h>
+#include <sys/file.h>
#include <sys/socket.h>
/*#include <sys/socket.h>*/
int accept(s, a, l) int s; struct sockaddr *a; int *l; {
- abort();
+ write(2, "accept()\n", 9);
+ abort();
}
#include <sys/file.h>
int access(p, m) char *p; int m; {
- abort();
+ write(2, "access()\n", 9);
+ abort();
}
#include <gen.h>
#include <sys/acct.h>
+#include <sys/file.h>
int acct(f) char *f; {
- abort();
+ write(2, "acct()\n", 7);
+ abort();
}
#include <gen.h>
+#include <sys/file.h>
#include <sys/time.h>
/*#include <sys/time.h>*/
int adjtime(delta, odelta) struct timeval *delta; struct timeval *odelta; {
- abort();
+ write(2, "adjtime()\n", 10);
+ abort();
}
#include <gen.h>
+#include <sys/file.h>
#include <sys/socket.h>
/*#include <sys/socket.h>*/
int bind(s, n, l) int s; struct sockaddr *n; int l; {
- abort();
+ write(2, "bind()\n", 7);
+ abort();
}
#include <gen.h>
+#include <sys/file.h>
#include <sys/proc.h>
void *brk(a) void *a; {
- abort();
+ write(2, "brk()\n", 6);
+ abort();
}
#include <gen.h>
+#include <sys/file.h>
#include <sys/proc.h>
int chdir(s) char *s; {
- abort();
+ write(2, "chdir()\n", 8);
+ abort();
}
#include <sys/file.h>
int chmod(s, m) char *s; int m; {
- abort();
+ write(2, "chmod()\n", 8);
+ abort();
}
#include <sys/file.h>
int chown(s, u, g) char *s; int u; int g; {
- abort();
+ write(2, "chown()\n", 8);
+ abort();
}
#include <gen.h>
+#include <sys/file.h>
#include <sys/proc.h>
int chroot(d) char *d; {
- abort();
+ write(2, "chroot()\n", 9);
+ abort();
}
#include <sys/file.h>
int close(f) int f; {
- abort();
+ write(2, "close()\n", 8);
+ abort();
}
#include <gen.h>
+#include <sys/file.h>
#include <sys/socket.h>
/*#include <sys/socket.h>*/
int connect(s, n, l) int s; struct sockaddr *n; int l; {
- abort();
+ write(2, "connect()\n", 10);
+ abort();
}
#include <sys/file.h>
int creat(s, m) char *s; int m; {
- abort();
+ write(2, "creat()\n", 8);
+ abort();
}
#include <sys/file.h>
int dup(f) int f; {
- abort();
+ write(2, "dup()\n", 6);
+ abort();
}
#include <sys/file.h>
int dup2(o, n) int o; int n; {
- abort();
+ write(2, "dup2()\n", 7);
+ abort();
}
#include <gen.h>
#include <sys/exec.h>
+#include <sys/file.h>
#ifdef __STDC__
#include <stdarg.h>
#define _va_start(argp, arg) va_start(argp, arg)
void execl(f, va_alist) char *f; va_dcl
#endif
{
- abort();
+ write(2, "execl()\n", 8);
+ abort();
}
#include <gen.h>
#include <sys/exec.h>
+#include <sys/file.h>
#ifdef __STDC__
#include <stdarg.h>
#define _va_start(argp, arg) va_start(argp, arg)
void execle(f, va_alist) char *f; va_dcl
#endif
{
- abort();
+ write(2, "execle()\n", 9);
+ abort();
}
#include <gen.h>
#include <sys/exec.h>
+#include <sys/file.h>
void exect(s, v, e) char *s; char *v[]; char *e[]; {
- abort();
+ write(2, "exect()\n", 8);
+ abort();
}
#include <gen.h>
#include <sys/exec.h>
+#include <sys/file.h>
void execv(s, v) char *s; char *v[]; {
- abort();
+ write(2, "execv()\n", 8);
+ abort();
}
#include <gen.h>
#include <sys/exec.h>
+#include <sys/file.h>
void execve(s, v, e) char *s; char *v[]; char *e[]; {
- abort();
+ write(2, "execve()\n", 9);
+ abort();
}
#include <sys/file.h>
int fchmod(f, m) int f; int m; {
- abort();
+ write(2, "fchmod()\n", 9);
+ abort();
}
#include <sys/file.h>
int fchown(f, u, g) int f; int u; int g; {
- abort();
+ write(2, "fchown()\n", 9);
+ abort();
}
#include <sys/file.h>
int fcntl(f, c, a) int f; int c; int a; {
- abort();
+ write(2, "fcntl()\n", 8);
+ abort();
}
#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.
/* 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
#include <sys/file.h>
int flock(f, o) int f; int o; {
- abort();
+ write(2, "flock()\n", 8);
+ abort();
}
#include <gen.h>
+#include <sys/file.h>
#include <sys/proc.h>
int fork() {
- abort();
+ write(2, "fork()\n", 7);
+ abort();
}
#include <gen.h>
+#include <sys/file.h>
#include <sys/stat.h>
/*#include <sys/stat.h>*/
int fstat(f, b) int f; struct stat *b; {
- abort();
+ write(2, "fstat()\n", 8);
+ abort();
}
#include <sys/file.h>
int fsync(f) int f; {
- abort();
+ write(2, "fsync()\n", 8);
+ abort();
}
/*#include <sys/types.h>*/
int ftruncate(d, l) int d; off_t l; {
- abort();
+ write(2, "ftruncate()\n", 12);
+ abort();
}
#include <sys/file.h>
int getdtablesize() {
- abort();
+ write(2, "getdtablesize()\n", 16);
+ abort();
}
#include <gen.h>
+#include <sys/file.h>
#include <sys/proc.h>
#include <sys/types.h>
/*#include <sys/types.h>*/
gid_t getegid() {
- abort();
+ write(2, "getegid()\n", 10);
+ abort();
}
#include <gen.h>
+#include <sys/file.h>
#include <sys/proc.h>
#include <sys/types.h>
/*#include <sys/types.h>*/
uid_t geteuid() {
- abort();
+ write(2, "geteuid()\n", 10);
+ abort();
}
#include <gen.h>
+#include <sys/file.h>
#include <sys/proc.h>
#include <sys/types.h>
/*#include <sys/types.h>*/
gid_t getgid() {
- abort();
+ write(2, "getgid()\n", 9);
+ abort();
}
#include <gen.h>
+#include <sys/file.h>
#include <sys/proc.h>
int getgroups(n, g) int n; int *g; {
- abort();
+ write(2, "getgroups()\n", 12);
+ abort();
}
#include <gen.h>
#include <sys.h>
+#include <sys/file.h>
long gethostid() {
- abort();
+ write(2, "gethostid()\n", 12);
+ abort();
}
#include <gen.h>
#include <sys.h>
+#include <sys/file.h>
int gethostname(n, l) char *n; int l; {
- abort();
+ write(2, "gethostname()\n", 14);
+ abort();
}
#include <gen.h>
+#include <sys/file.h>
#include <sys/time.h>
/*#include <sys/time.h>*/
int getitimer(w, v) int w; struct itimerval *v; {
- abort();
+ write(2, "getitimer()\n", 12);
+ abort();
}
#include <gen.h>
#include <sys.h>
+#include <sys/file.h>
int getpagesize() {
- abort();
+ write(2, "getpagesize()\n", 14);
+ abort();
}
#include <gen.h>
+#include <sys/file.h>
#include <sys/socket.h>
/*#include <sys/socket.h>*/
int getpeername(s, n, l) int s; struct sockaddr *n; int *l; {
- abort();
+ write(2, "getpeername()\n", 14);
+ abort();
}
#include <gen.h>
+#include <sys/file.h>
#include <sys/proc.h>
int getpgrp(p) int p; {
- abort();
+ write(2, "getpgrp()\n", 10);
+ abort();
}
#include <gen.h>
+#include <sys/file.h>
#include <sys/proc.h>
int getpid() {
- abort();
+ write(2, "getpid()\n", 9);
+ abort();
}
#include <gen.h>
+#include <sys/file.h>
#include <sys/proc.h>
int getppid() {
- abort();
+ write(2, "getppid()\n", 10);
+ abort();
}
#include <gen.h>
+#include <sys/file.h>
#include <sys/resource.h>
int getpriority(w, who) int w; int who; {
- abort();
+ write(2, "getpriority()\n", 14);
+ abort();
}
#include <gen.h>
+#include <sys/file.h>
#include <sys/resource.h>
/*#include <sys/resource.h>*/
int getrlimit(res, rip) int res; struct rlimit *rip; {
- abort();
+ write(2, "getrlimit()\n", 12);
+ abort();
}
#include <gen.h>
+#include <sys/file.h>
#include <sys/resource.h>
/*#include <sys/resource.h>*/
int getrusage(res, rip) int res; struct rusage *rip; {
- abort();
+ write(2, "getrusage()\n", 12);
+ abort();
}
#include <gen.h>
+#include <sys/file.h>
#include <sys/socket.h>
-int getsockname(s, name, namelen) int s; char *name; int *namelen; {
- abort();
+/*#include <sys/socket.h>*/
+int getsockname(s, name, namelen) int s; struct sockaddr *name; int *namelen; {
+ write(2, "getsockname()\n", 14);
+ abort();
}
#include <gen.h>
+#include <sys/file.h>
#include <sys/socket.h>
-int getsockopt(s, level, opt, buf, len) int s; int level; int opt; char *buf; int *len; {
- abort();
+int getsockopt(s, level, opt, buf, len) int s; int level; int opt; void *buf; int *len; {
+ write(2, "getsockopt()\n", 13);
+ abort();
}
#include <gen.h>
+#include <sys/file.h>
#include <sys/time.h>
/*#include <sys/time.h>*/
int gettimeofday(t, z) struct timeval *t; struct timezone *z; {
- abort();
+ write(2, "gettimeofday()\n", 15);
+ abort();
}
#include <gen.h>
+#include <sys/file.h>
#include <sys/proc.h>
#include <sys/types.h>
/*#include <sys/types.h>*/
uid_t getuid() {
- abort();
+ write(2, "getuid()\n", 9);
+ abort();
}
#include <gen.h>
+#include <sys/file.h>
#include <sys/ioctl.h>
#include <sys/types.h>
/*#include <sys/types.h>*/
int ioctl(d, r, p) int d; u_long r; void *p; {
- abort();
+ write(2, "ioctl()\n", 8);
+ abort();
}
#include <gen.h>
+#include <sys/file.h>
#include <sys/signal.h>
int kill(p, s) int p; int s; {
- abort();
+ write(2, "kill()\n", 7);
+ abort();
}
#include <gen.h>
+#include <sys/file.h>
#include <sys/signal.h>
int killpg(pg, s) int pg; int s; {
- abort();
+ write(2, "killpg()\n", 9);
+ abort();
}
#include <sys/file.h>
int link(a, b) char *a; char *b; {
- abort();
+ write(2, "link()\n", 7);
+ abort();
}
#include <gen.h>
+#include <sys/file.h>
#include <sys/socket.h>
int listen(s, b) int s; int b; {
- abort();
+ write(2, "listen()\n", 9);
+ abort();
}
/*#include <sys/types.h>*/
off_t lseek(f, o, d) int f; off_t o; int d; {
- abort();
+ write(2, "lseek()\n", 8);
+ abort();
}
#include <gen.h>
+#include <sys/file.h>
#include <sys/stat.h>
/*#include <sys/stat.h>*/
int lstat(s, b) char *s; struct stat *b; {
- abort();
+ write(2, "lstat()\n", 8);
+ abort();
}
#include <gen.h>
#include <sys/dir.h>
+#include <sys/file.h>
int mkdir(p, m) char *p; int m; {
- abort();
+ write(2, "mkdir()\n", 8);
+ abort();
}
#include <sys/file.h>
int mknod(n, m, a) char *n; int m; int a; {
- abort();
+ write(2, "mknod()\n", 8);
+ abort();
}
#include <gen.h>
+#include <sys/file.h>
#include <sys/mount.h>
int mount(s, n, f) char *s; char *n; int f; {
- abort();
+ write(2, "mount()\n", 8);
+ abort();
}
-#include <gen.h>
#include <sys/file.h>
#ifdef __STDC__
#include <stdarg.h>
int open(f, m, va_alist) char *f; int m; va_dcl
#endif
{
- abort();
+ va_list argp;
+ int res;
+
+ _va_start(argp, m);
+ res = vopen(f, m, argp);
+ va_end(argp);
+ return res;
}
#include <sys/file.h>
int pipe(f) int f[2]; {
- abort();
+ write(2, "pipe()\n", 7);
+ abort();
}
#include <gen.h>
#include <sys.h>
+#include <sys/file.h>
void profil(b, s, o, i) char *b; int s; int o; int i; {
- abort();
+ write(2, "profil()\n", 9);
+ abort();
}
#include <gen.h>
+#include <sys/file.h>
#include <sys/ptrace.h>
int ptrace(r, p, a, d) int r; int p; int *a; int d; {
- abort();
+ write(2, "ptrace()\n", 9);
+ abort();
}
#include <gen.h>
+#include <sys/file.h>
#include <sys/quota.h>
-int quota(c, u, a, ad) int c; int u; int a; char *ad; {
- abort();
+int quota(c, u, a, ad) int c; int u; int a; void *ad; {
+ write(2, "quota()\n", 8);
+ abort();
}
#endif
/* sys/quota.c */
-int quota __P((int c, int u, int a, char *ad));
+int quota __P((int c, int u, int a, void *ad));
/* sys/setquota.c */
int setquota __P((char *s, char *f));
#include <sys/file.h>
int read(f, b, l) int f; void *b; int l; {
- abort();
+ write(2, "read()\n", 7);
+ abort();
}
#include <sys/file.h>
int readlink(p, b, s) char *p; char *b; int s; {
- abort();
+ write(2, "readlink()\n", 11);
+ abort();
}
#include <gen.h>
+#include <sys/file.h>
#include <sys/uio.h>
/*#include <sys/uio.h>*/
int readv(d, v, l) int d; struct iovec *v; int l; {
- abort();
+ write(2, "readv()\n", 8);
+ abort();
}
#include <gen.h>
#include <sys.h>
+#include <sys/file.h>
void reboot(h) int h; {
- abort();
+ write(2, "reboot()\n", 9);
+ abort();
}
#include <gen.h>
+#include <sys/file.h>
#include <sys/socket.h>
int recv(s, b, l, f) int s; void *b; int l; int f; {
- abort();
+ write(2, "recv()\n", 7);
+ abort();
}
#include <gen.h>
+#include <sys/file.h>
#include <sys/socket.h>
/*#include <sys/socket.h>*/
int recvfrom(s, b, l, f, fr, fl) int s; void *b; int l; int f; struct sockaddr *fr; int *fl; {
- abort();
+ write(2, "recvfrom()\n", 11);
+ abort();
}
#include <gen.h>
+#include <sys/file.h>
#include <sys/socket.h>
/*#include <sys/socket.h>*/
int recvmsg(s, m, f) int s; struct msghdr m[]; int f; {
- abort();
+ write(2, "recvmsg()\n", 10);
+ abort();
}
#include <sys/file.h>
int rename(f, t) char *f; char *t; {
- abort();
+ write(2, "rename()\n", 9);
+ abort();
}
#include <gen.h>
#include <sys/dir.h>
+#include <sys/file.h>
int rmdir(p) char *p; {
- abort();
+ write(2, "rmdir()\n", 8);
+ abort();
}
#include <gen.h>
+#include <sys/file.h>
#include <sys/proc.h>
void *sbrk(i) int i; {
- abort();
+ write(2, "sbrk()\n", 7);
+ abort();
}
#include <gen.h>
+#include <sys/file.h>
#include <sys/select.h>
#include <sys/time.h>
/*#include <sys/select.h>*/
/*#include <sys/time.h>*/
int select(n, r, w, e, t) int n; fd_set *r; fd_set *w; fd_set *e; struct timeval *t; {
- abort();
+ write(2, "select()\n", 9);
+ abort();
}
#include <gen.h>
+#include <sys/file.h>
#include <sys/socket.h>
int send(s, m, l, f) int s; void *m; int l; int f; {
- abort();
+ write(2, "send()\n", 7);
+ abort();
}
#include <gen.h>
+#include <sys/file.h>
#include <sys/socket.h>
/*#include <sys/socket.h>*/
int sendmsg(s, m, l) int s; struct msghdr m[]; int l; {
- abort();
+ write(2, "sendmsg()\n", 10);
+ abort();
}
#include <gen.h>
+#include <sys/file.h>
#include <sys/socket.h>
/*#include <sys/socket.h>*/
int sendto(s, m, l, f, t, tl) int s; void *m; int l; int f; struct sockaddr *t; int tl; {
- abort();
+ write(2, "sendto()\n", 9);
+ abort();
}
#include <gen.h>
+#include <sys/file.h>
#include <sys/proc.h>
int setgroups(n, g) int n; int *g; {
- abort();
+ write(2, "setgroups()\n", 12);
+ abort();
}
#include <gen.h>
#include <sys.h>
+#include <sys/file.h>
int sethostid(h) long h; {
- abort();
+ write(2, "sethostid()\n", 12);
+ abort();
}
#include <gen.h>
#include <sys.h>
+#include <sys/file.h>
int sethostname(n, l) char *n; int l; {
- abort();
+ write(2, "sethostname()\n", 14);
+ abort();
}
#include <gen.h>
+#include <sys/file.h>
#include <sys/time.h>
/*#include <sys/time.h>*/
int setitimer(w, v, ov) int w; struct itimerval *v; struct itimerval *ov; {
- abort();
+ write(2, "setitimer()\n", 12);
+ abort();
}
#include <gen.h>
+#include <sys/file.h>
#include <sys/proc.h>
int setpgrp(g, pg) int g; int pg; {
- abort();
+ write(2, "setpgrp()\n", 10);
+ abort();
}
#include <gen.h>
+#include <sys/file.h>
#include <sys/resource.h>
int setpriority(w, who, pri) int w; int who; int pri; {
- abort();
+ write(2, "setpriority()\n", 14);
+ abort();
}
#include <gen.h>
+#include <sys/file.h>
#include <sys/quota.h>
int setquota(s, f) char *s; char *f; {
- abort();
+ write(2, "setquota()\n", 11);
+ abort();
}
#include <gen.h>
+#include <sys/file.h>
#include <sys/proc.h>
int setregid(r, e) int r; int e; {
- abort();
+ write(2, "setregid()\n", 11);
+ abort();
}
#include <gen.h>
+#include <sys/file.h>
#include <sys/proc.h>
int setreuid(r, e) int r; int e; {
- abort();
+ write(2, "setreuid()\n", 11);
+ abort();
}
#include <gen.h>
+#include <sys/file.h>
#include <sys/resource.h>
/*#include <sys/resource.h>*/
int setrlimit(res, rip) int res; struct rlimit *rip; {
- abort();
+ write(2, "setrlimit()\n", 12);
+ abort();
}
#include <gen.h>
+#include <sys/file.h>
#include <sys/socket.h>
-int setsockopt(s, level, opt, buf, len) int s; int level; int opt; char *buf; int len; {
- abort();
+int setsockopt(s, level, opt, buf, len) int s; int level; int opt; void *buf; int len; {
+ write(2, "setsockopt()\n", 13);
+ abort();
}
#include <gen.h>
+#include <sys/file.h>
#include <sys/time.h>
/*#include <sys/time.h>*/
int settimeofday(t, z) struct timeval *t; struct timezone *z; {
- abort();
+ write(2, "settimeofday()\n", 15);
+ abort();
}
#include <gen.h>
#include <sys.h>
+#include <sys/file.h>
int shutdown(s, h) int s; int h; {
- abort();
+ write(2, "shutdown()\n", 11);
+ abort();
}
#include <gen.h>
+#include <sys/file.h>
#include <sys/signal.h>
int sigblock(m) int m; {
- abort();
+ write(2, "sigblock()\n", 11);
+ abort();
}
#include <gen.h>
+#include <sys/file.h>
#include <sys/signal.h>
void sigpause(m) int m; {
- abort();
+ write(2, "sigpause()\n", 11);
+ abort();
}
#include <gen.h>
+#include <sys/file.h>
#include <sys/signal.h>
/*#include <sys/signal.h>*/
int sigreturn(scp) struct sigcontext *scp; {
- abort();
+ write(2, "sigreturn()\n", 12);
+ abort();
}
#include <gen.h>
+#include <sys/file.h>
#include <sys/signal.h>
int sigsetmask(m) int m; {
- abort();
+ write(2, "sigsetmask()\n", 13);
+ abort();
}
#include <gen.h>
+#include <sys/file.h>
#include <sys/signal.h>
/*#include <sys/signal.h>*/
int sigstack(ss, oss) struct sigstack *ss; struct sigstack *oss; {
- abort();
+ write(2, "sigstack()\n", 11);
+ abort();
}
#include <gen.h>
+#include <sys/file.h>
#include <sys/signal.h>
/*#include <sys/signal.h>*/
int sigvec(c, f, m) int c; struct sigvec *f; struct sigvec *m; {
- abort();
+ write(2, "sigvec()\n", 9);
+ abort();
}
#include <gen.h>
+#include <sys/file.h>
#include <sys/socket.h>
int socket(a, t, p) int a; int t; int p; {
- abort();
+ write(2, "socket()\n", 9);
+ abort();
}
int getpeername __P((int s, struct sockaddr *n, int *l));
/* sys/getsockname.c */
-int getsockname __P((int s, char *name, int *namelen));
+int getsockname __P((int s, struct sockaddr *name, int *namelen));
/* sys/getsockopt.c */
-int getsockopt __P((int s, int level, int opt, char *buf, int *len));
+int getsockopt __P((int s, int level, int opt, void *buf, int *len));
/* sys/listen.c */
int listen __P((int s, int b));
int sendto __P((int s, void *m, int l, int f, struct sockaddr *t, int tl));
/* sys/setsockopt.c */
-int setsockopt __P((int s, int level, int opt, char *buf, int len));
+int setsockopt __P((int s, int level, int opt, void *buf, int len));
/* sys/socket.c */
int socket __P((int a, int t, int p));
#include <gen.h>
+#include <sys/file.h>
#include <sys/socket.h>
int socketpair(d, t, p, s) int d; int t; int p; int s[2]; {
- abort();
+ write(2, "socketpair()\n", 13);
+ abort();
}
#include <gen.h>
+#include <sys/file.h>
#include <sys/stat.h>
/*#include <sys/stat.h>*/
int stat(s, b) char *s; struct stat *b; {
- abort();
+ write(2, "stat()\n", 7);
+ abort();
}
#include <gen.h>
#include <sys.h>
+#include <sys/file.h>
int swapon(s) char *s; {
- abort();
+ write(2, "swapon()\n", 9);
+ abort();
}
#include <sys/file.h>
int symlink(t, f) char *t; char *f; {
- abort();
+ write(2, "symlink()\n", 10);
+ abort();
}
#include <sys/file.h>
void sync() {
- abort();
+ write(2, "sync()\n", 7);
+ abort();
}
/*#include <sys/types.h>*/
int truncate(p, l) char *p; off_t l; {
- abort();
+ write(2, "truncate()\n", 11);
+ abort();
}
#include <sys/file.h>
int umask(n) int n; {
- abort();
+ write(2, "umask()\n", 8);
+ abort();
}
#include <gen.h>
+#include <sys/file.h>
#include <sys/mount.h>
int umount(s) char *s; {
- abort();
+ write(2, "umount()\n", 9);
+ abort();
}
#include <sys/file.h>
int unlink(s) char *s; {
- abort();
+ write(2, "unlink()\n", 9);
+ abort();
}
#include <gen.h>
+#include <sys/file.h>
#include <sys/time.h>
/*#include <sys/time.h>*/
int utimes(f, t) char *f; struct timeval t[2]; {
- abort();
+ write(2, "utimes()\n", 9);
+ abort();
}
#include <gen.h>
#include <sys.h>
+#include <sys/file.h>
void vhangup() {
- abort();
+ write(2, "vhangup()\n", 10);
+ abort();
}
#define _va_start(argp, arg) va_start(argp)
#endif
-/*#include <varargs.h>*/
-int vopen(f, m, argp) char *f; int m; va_list argp; {
- abort();
+int vopen(f, m, argp) char *f; va_list argp; {
+ write(2, "vopen()\n", 8);
+ abort();
}
#include <gen.h>
+#include <sys/file.h>
#include <sys/wait.h>
int wait(s) int *s; {
- abort();
+ write(2, "wait()\n", 7);
+ abort();
}
#endif
/* sys/wait3.c */
-int wait3 __P((union wait *s, int o, struct rusage *r));
+int wait3 __P((int *s, int o, struct rusage *r));
/* sys/wait.c */
int wait __P((int *s));
#include <gen.h>
+#include <sys/file.h>
#include <sys/resource.h>
#include <sys/wait.h>
/*#include <sys/resource.h>*/
-/*#include <sys/wait.h>*/
-int wait3(s, o, r) union wait *s; int o; struct rusage *r; {
- abort();
+int wait3(s, o, r) int *s; int o; struct rusage *r; {
+ write(2, "wait3()\n", 8);
+ abort();
}
#include <sys/file.h>
int write(f, b, l) int f; void *b; int l; {
- abort();
+ write(2, "write()\n", 8);
+ abort();
}
#include <gen.h>
+#include <sys/file.h>
#include <sys/uio.h>
/*#include <sys/uio.h>*/
int writev(f, v, l) int f; struct iovec *v; int l; {
- abort();
+ write(2, "writev()\n", 9);
+ abort();
}