#define _ARPA_INET_H_
#include <netinet/in.h>
-#include <sys/types.h>
+/*#include <sys/types.h> netinet/in.h*/
/*
* Copyright (c) 1983 Regents of the University of California.
#define _ARPA_NAMESER_H_
#include <stdio.h>
-#include <sys/types.h>
+/*#include <sys/types.h> stdio.h*/
/*
* Copyright (c) 1983 Regents of the University of California.
#include <sys/ioctl.h>
#include <sys/resource.h>
-#include <sys/time.h>
+/*#include <sys/time.h> sys/resource.h*/
#include <sys/timeb.h>
#include <sys/times.h>
#include <sys/vlimit.h>
#include <sys/resource.h>
-#include <sys/time.h>
+/*#include <sys/time.h> sys/resource.h*/
#include <sys/times.h>
/*
#include <sys/resource.h>
-#include <sys/time.h>
+/*#include <sys/time.h> sys/resource.h*/
#include <sys/vtimes.h>
/*
#include <strings.h>
#include <sys/dir.h>
#include <sys/errno.h>
-#include <sys/exec.h>
+/*#include <sys/exec.h> nlist.h*/
#include <sys/proc.h>
#include <sys/signal.h>
#include <sys/syslog.h>
-#include <sys/time.h>
-#include <time.h>
+/*#include <sys/time.h> sys/proc.h*/
+/*#include <time.h> sys/proc.h*/
#include <ttyent.h>
#include <utmp.h>
#include <gen.h>
-#include <setjmp.h>
+/*#include <setjmp.h> gen.h*/
#include <sys/file.h>
/*#include <setjmp.h>*/
#include <gen.h>
-#include <sys/proc.h>
-#include <sys/signal.h>
+/*#include <sys/proc.h> gen.h*/
+/*#include <sys/signal.h> gen.h*/
/*
* Copyright (c) 1985 Regents of the University of California.
#include <gen.h>
-#include <math.h>
+/*#include <math.h> gen.h*/
#include <sys/file.h>
double atof(s) char *s; {
#include <gen.h>
-#include <strings.h>
+/*#include <strings.h> gen.h*/
#if defined(LIBC_SCCS) && !defined(lint)
static char sccsid[] = "@(#)calloc.c 5.2 (Berkeley) 3/9/86";
#include <gen.h>
-#include <sys/dir.h>
+/*#include <sys/dir.h> gen.h*/
#include <sys/file.h>
/*
#include <sys/time.h>
-#include <sys/types.h>
-#include <time.h>
+/*#include <sys/types.h> sys/time.h*/
+/*#include <time.h> sys/time.h*/
/*
* Copyright (c) 1980 Regents of the University of California.
#include <gen.h>
-#include <math.h>
+/*#include <math.h> gen.h*/
#if defined(LIBC_SCCS) && !defined(lint)
static char sccsid[] = "@(#)ecvt.c 5.1 (Berkeley) 3/15/86";
#include <gen.h>
-#include <strings.h>
-#include <sys/errno.h>
-#include <sys/exec.h>
-#include <sys/time.h>
+/*#include <strings.h> gen.h*/
+/*#include <sys/errno.h> gen.h*/
+/*#include <sys/exec.h> gen.h*/
+/*#include <sys/time.h> gen.h*/
#if defined(LIBC_SCCS) && !defined(lint)
static char sccsid[] = "@(#)execvp.c 5.2 (Berkeley) 3/9/86";
#include <gen.h>
-#include <grp.h>
+/*#include <grp.h> gen.h*/
#include <stdio.h>
#if defined(LIBC_SCCS) && !defined(lint)
#include <stdio.h>
#include <sys/file.h>
#include <sys/ioctl.h>
-#include <sys/signal.h>
+/*#include <sys/signal.h> gen.h*/
#if defined(LIBC_SCCS) && !defined(lint)
static char sccsid[] = "@(#)getpass.c 5.2 (Berkeley) 3/9/86";
#include <gen.h>
-#include <ndbm.h>
-#include <pwd.h>
+/*#include <ndbm.h> gen.h*/
+/*#include <pwd.h> gen.h*/
#include <stdio.h>
/*
-#include <ctype.h>
+/*#include <ctype.h> gen.h*/
#include <gen.h>
#include <stdio.h>
-#include <sys/param.h>
+/*#include <sys/param.h> gen.h*/
#include <sys/stat.h>
/*
#include <strings.h>
#include <sys/dir.h>
-#include <sys/param.h>
+/*#include <sys/param.h> sys/dir.h*/
#include <sys/stat.h>
-#include <sys/types.h>
+/*#include <sys/types.h> sys/param.h*/
/*
* Copyright (c) 1980 Regents of the University of California.
#include <gen.h>
-#include <math.h>
+/*#include <math.h> gen.h*/
#include <sys/file.h>
double ldexp(v, e) double v; int e; {
#include <gen.h>
#include <stdio.h>
-#include <strings.h>
+/*#include <strings.h> gen.h*/
#include <sys.h>
-#include <sys/proc.h>
-#include <sys/types.h>
+/*#include <sys/proc.h> gen.h*/
+/*#include <sys/types.h> gen.h*/
#ifdef __STDC__
#include <stdint.h>
#include <gen.h>
#include <sys/file.h>
-#include <sys/proc.h>
+/*#include <sys/proc.h> gen.h*/
/*
* Copyright (c) 1983 Regents of the University of California.
#include <gen.h>
#include <sys/file.h>
-#include <sys/proc.h>
+/*#include <sys/proc.h> gen.h*/
#if defined(LIBC_SCCS) && !defined(lint)
static char sccsid[] = "@(#)mktemp.c 5.2 (Berkeley) 3/9/86";
#include <gen.h>
-#include <math.h>
+/*#include <math.h> gen.h*/
#include <sys/file.h>
double modf(v, p) double v; double *p; {
#include <gen.h>
-#include <ndbm.h>
+/*#include <ndbm.h> gen.h*/
#include <stdio.h>
-#include <strings.h>
-#include <sys/errno.h>
+/*#include <strings.h> gen.h*/
+/*#include <sys/errno.h> gen.h*/
#include <sys/file.h>
-#include <sys/param.h>
+/*#include <sys/param.h> gen.h*/
#include <sys/stat.h>
#ifdef __STDC__
-#include <stdarg.h>
+/*#include <stdarg.h> stdio.h*/
#define _va_start(argp, arg) va_start(argp, arg)
#else
#include <varargs.h>
#include <a.out.h>
#include <stdio.h>
#include <strings.h>
-#include <sys/exec.h>
-#include <sys/types.h>
+/*#include <sys/exec.h> a.out.h*/
+/*#include <sys/types.h> stdio.h*/
/*
* Copyright (c) 1980 Regents of the University of California.
#include <gen.h>
-#include <sys/dir.h>
+/*#include <sys/dir.h> gen.h*/
#include <sys/file.h>
/*
#include <gen.h>
-#include <strings.h>
-#include <sys/dir.h>
+/*#include <strings.h> gen.h*/
+/*#include <sys/dir.h> gen.h*/
#include <sys/stat.h>
/*
#include <gen.h>
-#include <setjmp.h>
+/*#include <setjmp.h> gen.h*/
#include <sys/file.h>
/*#include <setjmp.h>*/
#include <sys/signal.h>
#include <sys/socket.h>
#include <sys/syslog.h>
-#include <sys/time.h>
+/*#include <sys/time.h> sys/proc.h*/
#include <sys/wait.h>
-#include <time.h>
+/*#include <time.h> sys/proc.h*/
/*
* Copyright (c) 1983 Regents of the University of California.
#include <sys/time.h>
-#include <sys/types.h>
+/*#include <sys/types.h> sys/time.h*/
/*
* Copyright (c) 1980 Regents of the University of California.
#include <gen.h>
#include <stdio.h>
-#include <strings.h>
+/*#include <strings.h> gen.h*/
/*
* Copyright (c) 1980 Regents of the University of California.
*/
#define NULL 0
-#include <sys/param.h>
+/*#include <sys/param.h> sys/ioctl.h*/
/*#include <sys/dir.h>*/
/*#include <sys/stat.h>*/
#include <arpa/inet.h>
#include <ctype.h>
#include <net.h>
-#include <sys/types.h>
+/*#include <sys/types.h> arpa/inet.h*/
/*
* Copyright (c) 1983 Regents of the University of California.
#include <arpa/inet.h>
#include <net.h>
-#include <netinet/in.h>
-#include <sys/types.h>
+/*#include <netinet/in.h> arpa/inet.h*/
+/*#include <sys/types.h> arpa/inet.h*/
/*
* Copyright (c) 1983 Regents of the University of California.
#include <arpa/inet.h>
#include <net.h>
-#include <netinet/in.h>
-#include <sys/types.h>
+/*#include <netinet/in.h> arpa/inet.h*/
+/*#include <sys/types.h> arpa/inet.h*/
/*
* Copyright (c) 1983 Regents of the University of California.
#include <arpa/inet.h>
#include <net.h>
-#include <netinet/in.h>
-#include <sys/types.h>
+/*#include <netinet/in.h> arpa/inet.h*/
+/*#include <sys/types.h> arpa/inet.h*/
/*
* Copyright (c) 1983 Regents of the University of California.
#include <arpa/inet.h>
#include <ctype.h>
-#include <sys/types.h>
+/*#include <sys/types.h> arpa/inet.h*/
/*
* Copyright (c) 1983 Regents of the University of California.
#include <arpa/inet.h>
-#include <netinet/in.h>
+/*#include <netinet/in.h> arpa/inet.h*/
#include <stdio.h>
/*
#include <arpa/nameser.h>
#include <netdb.h>
-#include <stdio.h>
-#include <sys/types.h>
+/*#include <stdio.h> arpa/nameser.h*/
+/*#include <sys/types.h> arpa/nameser.h*/
/* formerly duplicated in netinet/in.h and netns/ns.h */
/* confuses cproto which thinks #define names are types or type modifiers */
#include <gen.h>
#include <net.h>
-#include <netdb.h>
-#include <stdio.h>
-#include <sys/types.h>
+/*#include <netdb.h> net.h*/
+/*#include <stdio.h> net.h*/
+/*#include <sys/types.h> gen.h*/
/*
* Copyright (c) 1983 Regents of the University of California.
#include <netdb.h>
#include <stdio.h>
#include <sys/socket.h>
-#include <sys/types.h>
+/*#include <sys/types.h> arpa/inet.h*/
/*
* Copyright (c) 1983 Regents of the University of California.
#include <gen.h>
#include <net.h>
#include <sys/file.h>
-#include <sys/types.h>
+/*#include <sys/types.h> gen.h*/
/*#include <sys/types.h>*/
u_long htonl(hostlong) u_long hostlong; {
#include <gen.h>
#include <net.h>
#include <sys/file.h>
-#include <sys/types.h>
+/*#include <sys/types.h> gen.h*/
/*#include <sys/types.h>*/
u_short htons(hostshort) int hostshort; {
#ifndef _NET_IF_H_
#define _NET_IF_H_
+#include <net/if_arp.h>
#include <sys/mbuf.h>
-#include <sys/socket.h>
-#include <sys/types.h>
+/*#include <sys/socket.h> net/if_arp.h*/
+/*#include <sys/types.h> net/if_arp.h*/
/*
* Copyright (c) 1982, 1986 Regents of the University of California.
/*struct ifaddr *ifa_ifwithaddr(), *ifa_ifwithnet();*/
/*struct ifaddr *ifa_ifwithdstaddr();*/
#else
-#include <net/if_arp.h>
+/*#include <net/if_arp.h>*/
#endif
#endif
#define _NET_IF_ARP_H_
#include <sys/socket.h>
-#include <sys/types.h>
+/*#include <sys/types.h> sys/socket.h*/
/*
* Copyright (c) 1986 Regents of the University of California.
#include <arpa/inet.h>
-#include <arpa/nameser.h>
+/*#include <arpa/nameser.h> resolv.h*/
#include <ctype.h>
#include <net.h>
-#include <netdb.h>
-#include <netinet/in.h>
+/*#include <netdb.h> net.h*/
+/*#include <netinet/in.h> arpa/inet.h*/
#include <resolv.h>
-#include <stdio.h>
+/*#include <stdio.h> arpa/nameser.h*/
#include <strings.h>
#include <sys/errno.h>
#include <sys/socket.h>
-#include <sys/types.h>
+/*#include <sys/types.h> arpa/inet.h*/
#ifdef __STDC__
#include <stdint.h>
-#include <arpa/nameser.h>
+/*#include <arpa/nameser.h> resolv.h*/
#include <netdb.h>
#include <resolv.h>
#include <gen.h>
#include <net.h>
#include <sys/file.h>
-#include <sys/types.h>
+/*#include <sys/types.h> gen.h*/
/*#include <sys/types.h>*/
u_long ntohl(netlong) u_long netlong; {
#include <gen.h>
#include <net.h>
#include <sys/file.h>
-#include <sys/types.h>
+/*#include <sys/types.h> gen.h*/
/*#include <sys/types.h>*/
u_short ntohs(netshort) int netshort; {
#define _NET_RAW_CB_H_
#include <net/route.h>
-#include <sys/socket.h>
-#include <sys/types.h>
+/*#include <sys/socket.h> net/route.h*/
+/*#include <sys/types.h> net/route.h*/
/*
* Copyright (c) 1980, 1986 Regents of the University of California.
#include <arpa/inet.h>
#include <ctype.h>
#include <net.h>
-#include <netdb.h>
-#include <netinet/in.h>
+/*#include <netdb.h> net.h*/
+/*#include <netinet/in.h> arpa/inet.h*/
#include <pwd.h>
-#include <stdio.h>
-#include <strings.h>
+/*#include <stdio.h> net.h*/
+/*#include <strings.h> sys.h*/
#include <sys.h>
-#include <sys/errno.h>
-#include <sys/file.h>
-#include <sys/param.h>
-#include <sys/proc.h>
-#include <sys/signal.h>
-#include <sys/socket.h>
-#include <sys/stat.h>
-#include <sys/time.h>
-#include <sys/types.h>
+/*#include <sys/errno.h> sys.h*/
+/*#include <sys/file.h> sys.h*/
+/*#include <sys/param.h> sys.h*/
+/*#include <sys/proc.h> sys.h*/
+/*#include <sys/signal.h> sys.h*/
+/*#include <sys/socket.h> sys.h*/
+/*#include <sys/stat.h> sys.h*/
+/*#include <sys/time.h> sys.h*/
+/*#include <sys/types.h> arpa/inet.h*/
/*
* Copyright (c) 1983 Regents of the University of California.
#include <arpa/nameser.h>
-#include <sys/types.h>
+/*#include <sys/types.h> arpa/nameser.h*/
/*
* Copyright (c) 1985 Regents of the University of California.
#include <arpa/inet.h>
-#include <arpa/nameser.h>
+/*#include <arpa/nameser.h> net.h*/
#include <net.h>
-#include <netinet/in.h>
-#include <stdio.h>
+/*#include <netinet/in.h> arpa/inet.h*/
+/*#include <stdio.h> arpa/nameser.h*/
#include <strings.h>
-#include <sys/types.h>
+/*#include <sys/types.h> arpa/inet.h*/
/*
* Copyright (c) 1985 Regents of the University of California.
#include <arpa/inet.h>
-#include <arpa/nameser.h>
+/*#include <arpa/nameser.h> resolv.h*/
#include <gen.h>
#include <net.h>
-#include <netinet/in.h>
+/*#include <netinet/in.h> arpa/inet.h*/
#include <resolv.h>
-#include <stdio.h>
-#include <strings.h>
+/*#include <stdio.h> arpa/nameser.h*/
+/*#include <strings.h> gen.h*/
#include <sys.h>
-#include <sys/socket.h>
-#include <sys/types.h>
+/*#include <sys/socket.h> sys.h*/
+/*#include <sys/types.h> arpa/inet.h*/
/*
* Copyright (c) 1985 Regents of the University of California.
-#include <arpa/nameser.h>
+/*#include <arpa/nameser.h> resolv.h*/
#include <net.h>
#include <resolv.h>
-#include <stdio.h>
+/*#include <stdio.h> arpa/nameser.h*/
#include <strings.h>
-#include <sys/types.h>
+/*#include <sys/types.h> arpa/nameser.h*/
/*
* Copyright (c) 1985 Regents of the University of California.
#include <arpa/inet.h>
-#include <arpa/nameser.h>
+/*#include <arpa/nameser.h> resolv.h*/
#include <net.h>
#include <resolv.h>
-#include <stdio.h>
-#include <sys/errno.h>
+/*#include <stdio.h> arpa/nameser.h*/
+/*#include <sys/errno.h> sys/file.h*/
#include <sys/file.h>
-#include <sys/param.h>
+/*#include <sys/param.h> sys/select.h*/
#include <sys/select.h>
#include <sys/socket.h>
-#include <sys/time.h>
-#include <sys/types.h>
+/*#include <sys/time.h> sys/select.h*/
+/*#include <sys/types.h> arpa/inet.h*/
#include <sys/uio.h>
/*
#include <net.h>
-#include <netdb.h>
+/*#include <netdb.h> net.h*/
#include <netinet/in.h>
-#include <stdio.h>
+/*#include <stdio.h> net.h*/
#include <strings.h>
-#include <sys/errno.h>
+/*#include <sys/errno.h> sys/file.h*/
#include <sys/file.h>
#include <sys/socket.h>
#include <sys/time.h>
-#include <sys/types.h>
+/*#include <sys/types.h> stdio.h*/
/*
* Copyright (c) 1980 Regents of the University of California.
#define _NET_ROUTE_H_
#include <sys/socket.h>
-#include <sys/types.h>
+/*#include <sys/types.h> sys/socket.h*/
/*
* Copyright (c) 1980, 1986 Regents of the University of California.
-#include <ctype.h>
+/*#include <ctype.h> gen.h*/
#include <gen.h>
#include <net.h>
-#include <stdio.h>
-#include <strings.h>
-#include <sys/errno.h>
+/*#include <stdio.h> net.h*/
+/*#include <strings.h> gen.h*/
+/*#include <sys/errno.h> gen.h*/
#include <sys/file.h>
#include <sys/ioctl.h>
#include <sys/stat.h>
-#include <utmp.h>
+/*#include <utmp.h> gen.h*/
/*
* Copyright (c) 1983 Regents of the University of California.
#define _NETIMP_IF_IMP_H_
#include <sys/param.h>
-#include <sys/types.h>
+/*#include <sys/types.h> sys/param.h*/
/*
* Copyright (c) 1982, 1986 Regents of the University of California.
#include <netimp/if_imp.h>
#include <netinet/in.h>
#include <sys/mbuf.h>
-#include <sys/types.h>
+/*#include <sys/types.h> netimp/if_imp.h*/
/*
* Copyright (c) 1982, 1986 Regents of the University of California.
#define _NETINET_IF_ETHER_H_
#include <net/if.h>
-#include <net/if_arp.h>
+/*#include <net/if_arp.h> net/if.h*/
#include <netinet/in.h>
-#include <sys/types.h>
+/*#include <sys/types.h> net/if_arp.h*/
/*
* Copyright (c) 1982, 1986 Regents of the University of California.
#include <net/route.h>
#include <netinet/in.h>
-#include <sys/types.h>
+/*#include <sys/types.h> net/route.h*/
/*
* Copyright (c) 1982, 1986 Regents of the University of California.
#include <net/if.h>
#include <netinet/in.h>
-#include <sys/types.h>
+/*#include <sys/types.h> net/if.h*/
/*
* Copyright (c) 1985, 1986 Regents of the University of California.
#include <netinet/in.h>
#include <netinet/in_systm.h>
-#include <sys/types.h>
+/*#include <sys/types.h> netinet/in.h*/
/*
* Copyright (c) 1982, 1986 Regents of the University of California.
#ifndef _NETINET_IP_ICMP_H_
#define _NETINET_IP_ICMP_H_
-#include <netinet/in.h>
-#include <netinet/in_systm.h>
+/*#include <netinet/in.h> netinet/ip.h*/
+/*#include <netinet/in_systm.h> netinet/ip.h*/
#include <netinet/ip.h>
-#include <sys/types.h>
+/*#include <sys/types.h> netinet/in.h*/
/*
* Copyright (c) 1982, 1986 Regents of the University of California.
#include <netinet/in.h>
#include <sys/socket.h>
-#include <sys/types.h>
+/*#include <sys/types.h> netinet/in.h*/
/*
* Copyright (c) 1982, 1986 Regents of the University of California.
#include <netinet/ip.h>
#include <netinet/ip_var.h>
#include <sys/param.h>
-#include <sys/types.h>
+/*#include <sys/types.h> netinet/ip_var.h*/
/*
* Copyright (c) 1982, 1986 Regents of the University of California.
#ifndef _NETINET_TCP_DEBUG_H_
#define _NETINET_TCP_DEBUG_H_
-#include <netinet/in_systm.h>
+/*#include <netinet/in_systm.h> netinet/tcpip.h*/
#include <netinet/tcp_var.h>
#include <netinet/tcpip.h>
-#include <sys/types.h>
+/*#include <sys/types.h> netinet/tcpip.h*/
/*
* Copyright (c) 1982, 1986 Regents of the University of California.
#define _NETINET_TCP_FSM_H_
#include <netinet/tcp.h>
-#include <sys/protosw.h>
-#include <sys/types.h>
+/*#include <sys/protosw.h> netinet/tcp.h*/
+/*#include <sys/types.h> netinet/tcp.h*/
/*
* Copyright (c) 1982, 1986 Regents of the University of California.
#include <netinet/in_pcb.h>
#include <netinet/tcp.h>
#include <netinet/tcp_timer.h>
-#include <sys/types.h>
+/*#include <sys/types.h> netinet/in_pcb.h*/
/*
* Copyright (c) 1982, 1986 Regents of the University of California.
#ifndef _NETINET_TCPIP_H_
#define _NETINET_TCPIP_H_
-#include <netinet/ip_var.h>
+/*#include <netinet/ip_var.h> netinet/tcp.h*/
#include <netinet/tcp.h>
/*
#define _NETNS_IDP_H_
#include <netns/ns.h>
-#include <sys/types.h>
+/*#include <sys/types.h> netns/ns.h*/
/*
* Copyright (c) 1984, 1986 Regents of the University of California.
#include <sys/domain.h>
#include <sys/socket.h>
-#include <sys/types.h>
+/*#include <sys/types.h> sys/socket.h*/
/*
* Copyright (c) 1984, 1985, 1986 Regents of the University of California.
#define _NETNS_NS_ERROR_H_
#include <netns/idp.h>
-#include <sys/types.h>
+/*#include <sys/types.h> netns/idp.h*/
/*
* Copyright (c) 1984, 1985, 1986 Regents of the University of California.
#include <net/if.h>
#include <netns/ns.h>
-#include <sys/socket.h>
+/*#include <sys/socket.h> net/if.h*/
/*
* Copyright (c) 1985, 1986 Regents of the University of California.
#include <net/route.h>
#include <netns/ns.h>
-#include <sys/types.h>
+/*#include <sys/types.h> net/route.h*/
/*
* Copyright (c) 1984, 1985, 1986 Regents of the University of California.
#ifndef _NETNS_SPP_DEBUG_H_
#define _NETNS_SPP_DEBUG_H_
-#include <netns/spidp.h>
+/*#include <netns/spidp.h> netns/spp_var.h*/
#include <netns/spp_var.h>
-#include <sys/types.h>
+/*#include <sys/types.h> netns/spidp.h*/
/*
* Copyright (c) 1984, 1986 Regents of the University of California.
#include <netinet/tcp_timer.h>
#include <netns/ns_pcb.h>
-#include <netns/sp.h>
+/*#include <netns/sp.h> netns/spidp.h*/
#include <netns/spidp.h>
-#include <sys/types.h>
+/*#include <sys/types.h> netns/sp.h*/
/*
* Copyright (c) 1984, 1985, 1986 Regents of the University of California.
#include <net.h>
#include <netns/ns.h>
-#include <stdio.h>
+/*#include <stdio.h> net.h*/
#include <strings.h>
-#include <sys/types.h>
+/*#include <sys/types.h> stdio.h*/
/*
* Copyright (c) 1986 Regents of the University of California.
#include <net.h>
#include <netns/ns.h>
-#include <stdio.h>
-#include <sys/types.h>
+/*#include <stdio.h> net.h*/
+/*#include <sys/types.h> stdio.h*/
/*
* Copyright (c) 1986 Regents of the University of California.
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.post/compat-4.1/Makefile libx_c/compat-4.1/Makefile
---- libx_c.post/compat-4.1/Makefile 2017-01-22 12:38:06.433558187 +1100
-+++ libx_c/compat-4.1/Makefile 2017-01-22 12:38:06.465558365 +1100
+--- libx_c.post/compat-4.1/Makefile 2017-01-22 13:16:08.076534021 +1100
++++ libx_c/compat-4.1/Makefile 2017-01-22 13:16:08.112534200 +1100
@@ -1,3 +1,5 @@
+ROOT=../../..
+CC=FAKEROOT=${ROOT}/cross ${ROOT}/cross/bin/cc -Dvax
-
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.post/compat-sys5/Makefile libx_c/compat-sys5/Makefile
---- libx_c.post/compat-sys5/Makefile 2017-01-22 12:38:06.457558320 +1100
-+++ libx_c/compat-sys5/Makefile 2017-01-22 12:38:06.465558365 +1100
+--- libx_c.post/compat-sys5/Makefile 2017-01-22 13:16:08.104534161 +1100
++++ libx_c/compat-sys5/Makefile 2017-01-22 13:16:08.112534200 +1100
@@ -1,3 +1,5 @@
+ROOT=../../..
+CC=FAKEROOT=${ROOT}/cross ${ROOT}/cross/bin/cc -Dvax
-# IF YOU PUT STUFF HERE IT WILL GO AWAY
-# see make depend above
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.post/gen/bcopy.c libx_c/gen/bcopy.c
---- libx_c.post/gen/bcopy.c 2017-01-22 12:38:06.457558320 +1100
-+++ libx_c/gen/bcopy.c 2017-01-22 12:38:06.465558365 +1100
+--- libx_c.post/gen/bcopy.c 2017-01-22 13:16:08.104534161 +1100
++++ libx_c/gen/bcopy.c 2017-01-22 13:16:08.112534200 +1100
@@ -1,6 +1,12 @@
#include <strings.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' '--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-22 12:38:06.461558343 +1100
-+++ libx_c/gen/getpass.c 2017-01-22 12:38:06.465558365 +1100
+--- libx_c.post/gen/getpass.c 2017-01-22 13:16:08.104534161 +1100
++++ libx_c/gen/getpass.c 2017-01-22 13:16:08.112534200 +1100
@@ -20,7 +20,7 @@
FILE *fi;
static char pbuf[9];
if ((fi = fdopen(open("/dev/tty", 2), "r")) == NULL)
fi = stdin;
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.post/gen/getpwnamuid.c libx_c/gen/getpwnamuid.c
---- libx_c.post/gen/getpwnamuid.c 2017-01-22 12:38:06.457558320 +1100
-+++ libx_c/gen/getpwnamuid.c 2017-01-22 12:38:06.465558365 +1100
+--- libx_c.post/gen/getpwnamuid.c 2017-01-22 13:16:08.104534161 +1100
++++ libx_c/gen/getpwnamuid.c 2017-01-22 13:16:08.112534200 +1100
@@ -43,19 +43,37 @@
cp = key.dptr;
tp = line;
}
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.post/gen/Makefile libx_c/gen/Makefile
---- libx_c.post/gen/Makefile 2017-01-22 12:38:06.461558343 +1100
-+++ libx_c/gen/Makefile 2017-01-22 12:38:06.465558365 +1100
+--- libx_c.post/gen/Makefile 2017-01-22 13:16:08.104534161 +1100
++++ libx_c/gen/Makefile 2017-01-22 13:16:08.112534200 +1100
@@ -1,3 +1,5 @@
+ROOT=../../..
+CC=FAKEROOT=${ROOT}/cross ${ROOT}/cross/bin/cc -Dvax
-# IF YOU PUT STUFF HERE IT WILL GO AWAY
-# see make depend above
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.post/gen/malloc.c libx_c/gen/malloc.c
---- libx_c.post/gen/malloc.c 2017-01-22 12:38:06.461558343 +1100
-+++ libx_c/gen/malloc.c 2017-01-22 12:38:06.469558387 +1100
+--- libx_c.post/gen/malloc.c 2017-01-22 13:16:08.104534161 +1100
++++ libx_c/gen/malloc.c 2017-01-22 13:16:08.112534200 +1100
@@ -5,6 +5,12 @@
- #include <sys/proc.h>
- #include <sys/types.h>
+ /*#include <sys/proc.h> gen.h*/
+ /*#include <sys/types.h> gen.h*/
+#ifdef __STDC__
+#include <stdint.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' '--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-22 12:38:06.457558320 +1100
-+++ libx_c/gen/ndbm.c 2017-01-22 12:38:06.469558387 +1100
+--- libx_c.post/gen/ndbm.c 2017-01-22 13:16:08.104534161 +1100
++++ libx_c/gen/ndbm.c 2017-01-22 13:16:08.112534200 +1100
@@ -70,14 +70,14 @@
flags = (flags & ~03) | O_RDWR;
strcpy(db->dbm_pagbuf, file);
va_end(argp);
if (db->dbm_dirf < 0)
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.post/gen/qsort.c libx_c/gen/qsort.c
---- libx_c.post/gen/qsort.c 2017-01-22 12:38:06.461558343 +1100
-+++ libx_c/gen/qsort.c 2017-01-22 12:38:06.469558387 +1100
+--- libx_c.post/gen/qsort.c 2017-01-22 13:16:08.104534161 +1100
++++ libx_c/gen/qsort.c 2017-01-22 13:16:08.112534200 +1100
@@ -36,7 +36,7 @@
static void qst __P((char *base, char *max));
register char c, *i, *j, *lo, *hi;
char *min, *max;
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.post/gen/scandir.c libx_c/gen/scandir.c
---- libx_c.post/gen/scandir.c 2017-01-22 12:38:06.457558320 +1100
-+++ libx_c/gen/scandir.c 2017-01-22 12:38:06.469558387 +1100
+--- libx_c.post/gen/scandir.c 2017-01-22 13:16:08.104534161 +1100
++++ libx_c/gen/scandir.c 2017-01-22 13:16:08.112534200 +1100
@@ -24,7 +24,7 @@
/*#include <sys/stat.h>*/
/*#include <sys/dir.h>*/
return(nitems);
}
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.post/gen/signal.c libx_c/gen/signal.c
---- libx_c.post/gen/signal.c 2017-01-22 12:38:06.457558320 +1100
-+++ libx_c/gen/signal.c 2017-01-22 12:38:06.469558387 +1100
+--- libx_c.post/gen/signal.c 2017-01-22 13:16:08.104534161 +1100
++++ libx_c/gen/signal.c 2017-01-22 13:16:08.112534200 +1100
@@ -15,12 +15,12 @@
*/
/*#include <signal.h>*/
+ return ((void (*) __P((int sig)))osv.sv_handler);
}
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.post/gen/sleep.c libx_c/gen/sleep.c
---- libx_c.post/gen/sleep.c 2017-01-22 12:38:06.461558343 +1100
-+++ libx_c/gen/sleep.c 2017-01-22 12:38:06.469558387 +1100
+--- libx_c.post/gen/sleep.c 2017-01-22 13:16:08.104534161 +1100
++++ libx_c/gen/sleep.c 2017-01-22 13:16:08.112534200 +1100
@@ -15,7 +15,7 @@
/*#include <signal.h>*/
static int ringring;
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.post/gen/system.c libx_c/gen/system.c
---- libx_c.post/gen/system.c 2017-01-22 12:38:06.457558320 +1100
-+++ libx_c/gen/system.c 2017-01-22 12:38:06.469558387 +1100
+--- libx_c.post/gen/system.c 2017-01-22 13:16:08.104534161 +1100
++++ libx_c/gen/system.c 2017-01-22 13:16:08.116534221 +1100
@@ -11,7 +11,7 @@
int system(s) char *s; {
if ((pid = vfork()) == 0) {
execl("/bin/sh", "sh", "-c", s, 0);
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.post/gen/usleep.c libx_c/gen/usleep.c
---- libx_c.post/gen/usleep.c 2017-01-22 12:38:06.457558320 +1100
-+++ libx_c/gen/usleep.c 2017-01-22 12:38:06.469558387 +1100
+--- libx_c.post/gen/usleep.c 2017-01-22 13:16:08.104534161 +1100
++++ libx_c/gen/usleep.c 2017-01-22 13:16:08.116534221 +1100
@@ -18,7 +18,7 @@
#define TICK 10000 /* system clock resolution in microseconds */
static int ringring;
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.post/gen/valloc.c libx_c/gen/valloc.c
---- libx_c.post/gen/valloc.c 2017-01-22 12:38:06.457558320 +1100
-+++ libx_c/gen/valloc.c 2017-01-22 12:38:06.469558387 +1100
+--- libx_c.post/gen/valloc.c 2017-01-22 13:16:08.104534161 +1100
++++ libx_c/gen/valloc.c 2017-01-22 13:16:08.116534221 +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' '--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-22 12:38:06.437558209 +1100
-+++ libx_c/gen.h 2017-01-22 12:38:06.469558387 +1100
+--- libx_c.post/gen.h 2017-01-22 13:16:08.076534021 +1100
++++ libx_c/gen.h 2017-01-22 13:16:08.116534221 +1100
@@ -99,7 +99,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' '--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-22 12:38:06.437558209 +1100
-+++ libx_c/inet/Makefile 2017-01-22 12:38:06.469558387 +1100
+--- libx_c.post/inet/Makefile 2017-01-22 13:16:08.080534040 +1100
++++ libx_c/inet/Makefile 2017-01-22 13:16:08.116534221 +1100
@@ -1,3 +1,5 @@
+ROOT=../../..
+CC=FAKEROOT=${ROOT}/cross ${ROOT}/cross/bin/cc -Dvax
-# see make depend above
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.post/linux/csu/crt0.c libx_c/linux/csu/crt0.c
--- libx_c.post/linux/csu/crt0.c 1970-01-01 10:00:00.000000000 +1000
-+++ libx_c/linux/csu/crt0.c 2017-01-22 12:38:06.469558387 +1100
++++ libx_c/linux/csu/crt0.c 2017-01-22 13:16:08.116534221 +1100
@@ -0,0 +1,19 @@
+#include <stdio.h>
+
+}
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.post/linux/csu/Makefile libx_c/linux/csu/Makefile
--- libx_c.post/linux/csu/Makefile 1970-01-01 10:00:00.000000000 +1000
-+++ libx_c/linux/csu/Makefile 2017-01-22 12:38:06.469558387 +1100
++++ libx_c/linux/csu/Makefile 2017-01-22 13:16:08.116534221 +1100
@@ -0,0 +1,104 @@
+ROOT=../../../..
+CC=FAKEROOT=${ROOT}/cross ${ROOT}/cross/bin/cc -Dvax
+
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.post/linux/gen/abort.c libx_c/linux/gen/abort.c
--- libx_c.post/linux/gen/abort.c 1970-01-01 10:00:00.000000000 +1000
-+++ libx_c/linux/gen/abort.c 2017-01-22 12:38:06.469558387 +1100
++++ libx_c/linux/gen/abort.c 2017-01-22 13:16:08.116534221 +1100
@@ -0,0 +1,7 @@
+#include <nox_stdlib.h>
+
+}
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.post/linux/gen/Makefile libx_c/linux/gen/Makefile
--- libx_c.post/linux/gen/Makefile 1970-01-01 10:00:00.000000000 +1000
-+++ libx_c/linux/gen/Makefile 2017-01-22 12:38:06.469558387 +1100
++++ libx_c/linux/gen/Makefile 2017-01-22 13:16:08.116534221 +1100
@@ -0,0 +1,52 @@
+ROOT=../../../..
+CC=FAKEROOT=${ROOT}/cross ${ROOT}/cross/bin/cc -Dvax
+
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.post/linux/gen/modf.c libx_c/linux/gen/modf.c
--- libx_c.post/linux/gen/modf.c 1970-01-01 10:00:00.000000000 +1000
-+++ libx_c/linux/gen/modf.c 2017-01-22 12:38:06.469558387 +1100
++++ libx_c/linux/gen/modf.c 2017-01-22 13:16:08.116534221 +1100
@@ -0,0 +1,7 @@
+#include <nox_math.h>
+
+}
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.post/linux/Makefile libx_c/linux/Makefile
--- libx_c.post/linux/Makefile 1970-01-01 10:00:00.000000000 +1000
-+++ libx_c/linux/Makefile 2017-01-22 12:38:06.469558387 +1100
++++ libx_c/linux/Makefile 2017-01-22 13:16:08.116534221 +1100
@@ -0,0 +1,43 @@
+#
+# Copyright (c) 1980 Regents of the University of California.
+ (cd $$i; make ${MFLAGS} DEFS=${DEFS} depend); done
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.post/linux/sys/close.c libx_c/linux/sys/close.c
--- libx_c.post/linux/sys/close.c 1970-01-01 10:00:00.000000000 +1000
-+++ libx_c/linux/sys/close.c 2017-01-22 12:38:06.469558387 +1100
++++ libx_c/linux/sys/close.c 2017-01-22 13:16:08.116534221 +1100
@@ -0,0 +1,13 @@
+#include <nox_unistd.h>
+
+}
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.post/linux/sys/_exit.c libx_c/linux/sys/_exit.c
--- libx_c.post/linux/sys/_exit.c 1970-01-01 10:00:00.000000000 +1000
-+++ libx_c/linux/sys/_exit.c 2017-01-22 12:38:06.469558387 +1100
++++ libx_c/linux/sys/_exit.c 2017-01-22 13:16:08.116534221 +1100
@@ -0,0 +1,7 @@
+#include <nox_unistd.h>
+
+}
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.post/linux/sys/fstat.c libx_c/linux/sys/fstat.c
--- libx_c.post/linux/sys/fstat.c 1970-01-01 10:00:00.000000000 +1000
-+++ libx_c/linux/sys/fstat.c 2017-01-22 12:38:06.469558387 +1100
++++ libx_c/linux/sys/fstat.c 2017-01-22 13:16:08.116534221 +1100
@@ -0,0 +1,17 @@
+#include <sys/nox_stat.h>
+#include <nox_unistd.h>
+}
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.post/linux/sys/getpagesize.c libx_c/linux/sys/getpagesize.c
--- libx_c.post/linux/sys/getpagesize.c 1970-01-01 10:00:00.000000000 +1000
-+++ libx_c/linux/sys/getpagesize.c 2017-01-22 12:38:06.469558387 +1100
++++ libx_c/linux/sys/getpagesize.c 2017-01-22 13:16:08.116534221 +1100
@@ -0,0 +1,7 @@
+#include <nox_unistd.h>
+
+}
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.post/linux/sys/isatty.c libx_c/linux/sys/isatty.c
--- libx_c.post/linux/sys/isatty.c 1970-01-01 10:00:00.000000000 +1000
-+++ libx_c/linux/sys/isatty.c 2017-01-22 12:38:06.469558387 +1100
++++ libx_c/linux/sys/isatty.c 2017-01-22 13:16:08.116534221 +1100
@@ -0,0 +1,13 @@
+#include <nox_unistd.h>
+
+}
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.post/linux/sys/lseek.c libx_c/linux/sys/lseek.c
--- libx_c.post/linux/sys/lseek.c 1970-01-01 10:00:00.000000000 +1000
-+++ libx_c/linux/sys/lseek.c 2017-01-22 12:38:06.469558387 +1100
++++ libx_c/linux/sys/lseek.c 2017-01-22 13:16:08.116534221 +1100
@@ -0,0 +1,15 @@
+#include <nox_unistd.h>
+#include <sys/nox_types.h>
+}
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.post/linux/sys/Makefile libx_c/linux/sys/Makefile
--- libx_c.post/linux/sys/Makefile 1970-01-01 10:00:00.000000000 +1000
-+++ libx_c/linux/sys/Makefile 2017-01-22 12:38:06.469558387 +1100
++++ libx_c/linux/sys/Makefile 2017-01-22 13:16:08.116534221 +1100
@@ -0,0 +1,54 @@
+ROOT=../../../..
+CC=FAKEROOT=${ROOT}/cross ${ROOT}/cross/bin/cc -Dvax
+
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.post/linux/sys/read.c libx_c/linux/sys/read.c
--- libx_c.post/linux/sys/read.c 1970-01-01 10:00:00.000000000 +1000
-+++ libx_c/linux/sys/read.c 2017-01-22 12:38:06.469558387 +1100
++++ libx_c/linux/sys/read.c 2017-01-22 13:16:08.116534221 +1100
@@ -0,0 +1,15 @@
+#include <nox_unistd.h>
+
+}
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.post/linux/sys/readv.c libx_c/linux/sys/readv.c
--- libx_c.post/linux/sys/readv.c 1970-01-01 10:00:00.000000000 +1000
-+++ libx_c/linux/sys/readv.c 2017-01-22 12:38:06.469558387 +1100
++++ libx_c/linux/sys/readv.c 2017-01-22 13:16:08.116534221 +1100
@@ -0,0 +1,26 @@
+#include <nox_unistd.h>
+#include <sys/nox_uio.h>
+}
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.post/linux/sys/sbrk.c libx_c/linux/sys/sbrk.c
--- libx_c.post/linux/sys/sbrk.c 1970-01-01 10:00:00.000000000 +1000
-+++ libx_c/linux/sys/sbrk.c 2017-01-22 12:38:06.469558387 +1100
++++ libx_c/linux/sys/sbrk.c 2017-01-22 13:16:08.116534221 +1100
@@ -0,0 +1,14 @@
+#include <nox_stdint.h>
+#include <nox_unistd.h>
+}
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.post/linux/sys/vopen.c libx_c/linux/sys/vopen.c
--- libx_c.post/linux/sys/vopen.c 1970-01-01 10:00:00.000000000 +1000
-+++ libx_c/linux/sys/vopen.c 2017-01-22 12:38:06.469558387 +1100
++++ libx_c/linux/sys/vopen.c 2017-01-22 13:16:08.116534221 +1100
@@ -0,0 +1,49 @@
+#include <nox_fcntl.h>
+
+}
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.post/linux/sys/write.c libx_c/linux/sys/write.c
--- libx_c.post/linux/sys/write.c 1970-01-01 10:00:00.000000000 +1000
-+++ libx_c/linux/sys/write.c 2017-01-22 12:38:06.469558387 +1100
++++ libx_c/linux/sys/write.c 2017-01-22 13:16:08.116534221 +1100
@@ -0,0 +1,15 @@
+#include <nox_unistd.h>
+
+}
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.post/linux/sys/writev.c libx_c/linux/sys/writev.c
--- libx_c.post/linux/sys/writev.c 1970-01-01 10:00:00.000000000 +1000
-+++ libx_c/linux/sys/writev.c 2017-01-22 12:38:06.469558387 +1100
++++ libx_c/linux/sys/writev.c 2017-01-22 13:16:08.116534221 +1100
@@ -0,0 +1,26 @@
+#include <nox_unistd.h>
+#include <sys/nox_uio.h>
+ return res;
+}
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.post/Makefile libx_c/Makefile
---- libx_c.post/Makefile 2017-01-22 12:38:06.437558209 +1100
-+++ libx_c/Makefile 2017-01-22 12:38:06.469558387 +1100
+--- libx_c.post/Makefile 2017-01-22 13:16:08.084534061 +1100
++++ libx_c/Makefile 2017-01-22 13:16:08.116534221 +1100
@@ -1,3 +1,5 @@
+ROOT=${shell pwd}/../..
+DESTDIR=${ROOT}/cross
ranlib ${DESTDIR}/lib/libc.a
${INSTALL} libc_p.a ${DESTDIR}/usr/lib/libc_p.a
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.post/net/hosttable/Makefile libx_c/net/hosttable/Makefile
---- libx_c.post/net/hosttable/Makefile 2017-01-22 12:38:06.433558187 +1100
-+++ libx_c/net/hosttable/Makefile 2017-01-22 12:38:06.469558387 +1100
+--- libx_c.post/net/hosttable/Makefile 2017-01-22 13:16:08.080534040 +1100
++++ libx_c/net/hosttable/Makefile 2017-01-22 13:16:08.116534221 +1100
@@ -1,3 +1,5 @@
+ROOT=../../../..
+CC=FAKEROOT=${ROOT}/cross ${ROOT}/cross/bin/cc -Dvax
-# DEPENDENCIES MUST END AT END OF FILE
-# IF YOU PUT STUFF HERE IT WILL GO AWAY
-# see make depend above
+diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.post/net/if.h libx_c/net/if.h
+--- libx_c.post/net/if.h 2017-01-22 13:16:08.080534040 +1100
++++ libx_c/net/if.h 2017-01-22 13:24:46.640042883 +1100
+@@ -1,6 +1,7 @@
+ #ifndef _NET_IF_H_
+ #define _NET_IF_H_
+
++#include <net/if_arp.h>
+ #include <sys/mbuf.h>
+ /*#include <sys/socket.h> net/if_arp.h*/
+ /*#include <sys/types.h> net/if_arp.h*/
+@@ -217,7 +218,7 @@
+ /*struct ifaddr *ifa_ifwithaddr(), *ifa_ifwithnet();*/
+ /*struct ifaddr *ifa_ifwithdstaddr();*/
+ #else
+-#include <net/if_arp.h>
++/*#include <net/if_arp.h>*/
+ #endif
+
+ #endif
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.post/net/Makefile libx_c/net/Makefile
---- libx_c.post/net/Makefile 2017-01-22 12:38:06.433558187 +1100
-+++ libx_c/net/Makefile 2017-01-22 12:38:06.469558387 +1100
+--- libx_c.post/net/Makefile 2017-01-22 13:16:08.076534021 +1100
++++ libx_c/net/Makefile 2017-01-22 13:16:08.116534221 +1100
@@ -1,3 +1,5 @@
+ROOT=../../..
+CC=FAKEROOT=${ROOT}/cross ${ROOT}/cross/bin/cc -Dvax
-# IF YOU PUT STUFF HERE IT WILL GO AWAY
-# see make depend above
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.post/net/named/gethostnamadr.c libx_c/net/named/gethostnamadr.c
---- libx_c.post/net/named/gethostnamadr.c 2017-01-22 12:38:06.433558187 +1100
-+++ libx_c/net/named/gethostnamadr.c 2017-01-22 12:38:06.469558387 +1100
+--- libx_c.post/net/named/gethostnamadr.c 2017-01-22 13:16:08.080534040 +1100
++++ libx_c/net/named/gethostnamadr.c 2017-01-22 13:16:08.116534221 +1100
@@ -11,6 +11,12 @@
#include <sys/socket.h>
- #include <sys/types.h>
+ /*#include <sys/types.h> arpa/inet.h*/
+#ifdef __STDC__
+#include <stdint.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' '--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-22 12:38:06.433558187 +1100
-+++ libx_c/net/named/Makefile 2017-01-22 12:38:06.469558387 +1100
+--- libx_c.post/net/named/Makefile 2017-01-22 13:16:08.080534040 +1100
++++ libx_c/net/named/Makefile 2017-01-22 13:16:08.116534221 +1100
@@ -1,3 +1,5 @@
+ROOT=../../../..
+CC=FAKEROOT=${ROOT}/cross ${ROOT}/cross/bin/cc -Dvax
-# IF YOU PUT STUFF HERE IT WILL GO AWAY
-# see make depend above
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.post/ns/Makefile libx_c/ns/Makefile
---- libx_c.post/ns/Makefile 2017-01-22 12:38:06.429558165 +1100
-+++ libx_c/ns/Makefile 2017-01-22 12:38:06.469558387 +1100
+--- libx_c.post/ns/Makefile 2017-01-22 13:16:08.072534001 +1100
++++ libx_c/ns/Makefile 2017-01-22 13:16:08.116534221 +1100
@@ -1,3 +1,5 @@
+ROOT=../../..
+CC=FAKEROOT=${ROOT}/cross ${ROOT}/cross/bin/cc -Dvax
-# IF YOU PUT STUFF HERE IT WILL GO AWAY
-# see make depend above
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.post/stdio/doprnt.c libx_c/stdio/doprnt.c
---- libx_c.post/stdio/doprnt.c 2017-01-22 12:38:06.429558165 +1100
-+++ libx_c/stdio/doprnt.c 2017-01-22 12:38:06.473558409 +1100
+--- libx_c.post/stdio/doprnt.c 2017-01-22 13:16:08.076534021 +1100
++++ libx_c/stdio/doprnt.c 2017-01-22 13:16:08.116534221 +1100
@@ -12,6 +12,13 @@
#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' '--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-22 12:38:06.429558165 +1100
-+++ libx_c/stdio/findiop.c 2017-01-22 12:38:06.473558409 +1100
+--- libx_c.post/stdio/findiop.c 2017-01-22 13:16:08.076534021 +1100
++++ libx_c/stdio/findiop.c 2017-01-22 13:16:08.116534221 +1100
@@ -105,7 +105,7 @@
*iov = (FILE *)calloc(1, sizeof **iov);
}
register FILE *fp;
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.post/stdio/Makefile libx_c/stdio/Makefile
---- libx_c.post/stdio/Makefile 2017-01-22 12:38:06.429558165 +1100
-+++ libx_c/stdio/Makefile 2017-01-22 12:38:06.473558409 +1100
+--- libx_c.post/stdio/Makefile 2017-01-22 13:16:08.076534021 +1100
++++ libx_c/stdio/Makefile 2017-01-22 13:16:08.116534221 +1100
@@ -1,3 +1,5 @@
+ROOT=../../..
+CC=FAKEROOT=${ROOT}/cross ${ROOT}/cross/bin/cc -Dvax
-# IF YOU PUT STUFF HERE IT WILL GO AWAY
-# see make depend above
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.post/stdio.h libx_c/stdio.h
---- libx_c.post/stdio.h 2017-01-22 12:38:06.441558232 +1100
-+++ libx_c/stdio.h 2017-01-22 12:38:06.473558409 +1100
+--- libx_c.post/stdio.h 2017-01-22 13:16:08.088534081 +1100
++++ libx_c/stdio.h 2017-01-22 13:16:08.116534221 +1100
@@ -82,7 +82,7 @@
#endif
/* stdio/puts.c */
int puts __P((register char *s));
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.post/string.h libx_c/string.h
---- libx_c.post/string.h 2017-01-22 12:38:06.437558209 +1100
-+++ libx_c/string.h 2017-01-22 12:38:06.473558409 +1100
+--- libx_c.post/string.h 2017-01-22 13:16:08.084534061 +1100
++++ libx_c/string.h 2017-01-22 13:16:08.116534221 +1100
@@ -9,7 +9,8 @@
* @(#)string.h 5.1 (Berkeley) 85/08/05
*/
/*
* these next few are obsolete trash
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.post/sys/dir.h libx_c/sys/dir.h
---- libx_c.post/sys/dir.h 2017-01-22 12:38:06.445558254 +1100
-+++ libx_c/sys/dir.h 2017-01-22 12:38:06.473558409 +1100
+--- libx_c.post/sys/dir.h 2017-01-22 13:16:08.092534101 +1100
++++ libx_c/sys/dir.h 2017-01-22 13:16:08.116534221 +1100
@@ -122,7 +122,7 @@
struct direct *readdir __P((register DIR *dirp));
/* gen/seekdir.c */
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.post/sys/Makefile libx_c/sys/Makefile
--- libx_c.post/sys/Makefile 1970-01-01 10:00:00.000000000 +1000
-+++ libx_c/sys/Makefile 2017-01-22 12:38:06.473558409 +1100
++++ libx_c/sys/Makefile 2017-01-22 13:16:08.116534221 +1100
@@ -0,0 +1,90 @@
+ROOT=../../..
+CC=FAKEROOT=${ROOT}/cross ${ROOT}/cross/bin/cc -Dvax
+# DO NOT DELETE THIS LINE -- make depend uses it
+
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.post/sys/open.c libx_c/sys/open.c
---- libx_c.post/sys/open.c 2017-01-22 12:38:06.445558254 +1100
-+++ libx_c/sys/open.c 2017-01-22 12:38:06.473558409 +1100
+--- libx_c.post/sys/open.c 2017-01-22 13:16:08.092534101 +1100
++++ libx_c/sys/open.c 2017-01-22 13:16:08.116534221 +1100
@@ -17,7 +17,7 @@
va_list argp;
int res;
va_end(argp);
return res;
diff --unified --recursive --new-file '--exclude=[abcdefghijklmnopqrstuvwxyz]' '--exclude=*.sh' '--exclude=*.a' '--exclude=*.o' '--exclude=*.[ch].nocomm' '--exclude=*.[ch].protos' '--exclude=*.[ch].protos.nocomm' '--exclude=*.temp' '--exclude=*.temp.c' '--exclude=*.[ch].usedby' '--exclude=*.[ch].uses' libx_c.post/sys/signal.h libx_c/sys/signal.h
---- libx_c.post/sys/signal.h 2017-01-22 12:38:06.445558254 +1100
-+++ libx_c/sys/signal.h 2017-01-22 12:38:06.473558409 +1100
+--- libx_c.post/sys/signal.h 2017-01-22 13:16:08.088534081 +1100
++++ libx_c/sys/signal.h 2017-01-22 13:16:08.116534221 +1100
@@ -9,7 +9,7 @@
* @(#)signal.h 7.1 (Berkeley) 6/4/86
*/
#define _PROTOCOLS_DUMPRESTORE_H_
#include <sys/inode.h>
-#include <sys/types.h>
+/*#include <sys/types.h> sys/inode.h*/
/*
* Copyright (c) 1980 Regents of the University of California.
#define _PROTOCOLS_ROUTED_H_
#include <sys/socket.h>
-#include <sys/types.h>
+/*#include <sys/types.h> sys/socket.h*/
/*
* Copyright (c) 1983 Regents of the University of California.
#define _PROTOCOLS_TALKD_H_
#include <sys/socket.h>
-#include <sys/types.h>
+/*#include <sys/types.h> sys/socket.h*/
/*
* Copyright (c) 1983 Regents of the University of California.
#include <sys/param.h>
#include <sys/time.h>
-#include <sys/types.h>
+/*#include <sys/types.h> sys/param.h*/
/*
* Copyright (c) 1983 Regents of the University of California.
) |../../xify/newline >b
mv b $i
done
-
-rm -rf ../libx_c.post
-cp -r ../libx_c ../libx_c.post
-patch --strip 1 <post.patch
#include <arpa/nameser.h>
#include <netinet/in.h>
-#include <sys/types.h>
+/*#include <sys/types.h> arpa/nameser.h*/
/*
* Copyright (c) 1983 Regents of the University of California.
#!/bin/sh
-grep -H '^#include <[^>]*>' `find . -name '*.h' -print |sed -e 's:^\./::'` |\
-sed -e 's/^\(.*\):#include <\(.*\)>/\1 \2/' |\
+# checking header loops
+grep -H '^#include <[^>]*>' `find . -name '*.h' -print` |\
+sed -e 's/^\.\/\(.*\):#include <\(.*\)>/\1 \2/' |\
tsort >a
-rm -rf ../../cross/include
-mkdir ../../cross/include
-(
- cd ../../cross/include
- ln -s vax machine
- ln -s machine/x_frame.h x_frame.h
- ln -s sys/x_errno.h x_errno.h
- ln -s sys/x_file.h x_fcntl.h
- ln -s x_a.out.h x_nlist.h
- ln -s sys/x_signal.h x_signal.h
- ln -s sys/x_syslog.h x_syslog.h
-)
+# see make install-headers
+ln -s vax machine
+ln -s machine/frame.h frame.h
+ln -s sys/errno.h errno.h
+ln -s sys/file.h fcntl.h
+ln -s a.out.h nlist.h
+ln -s sys/signal.h signal.h
+#ln -s gen.h stdlib.h
+ln -s sys/syslog.h syslog.h
+#ln -s sys.h unistd.h
+cat <<EOF >stdarg.h
+#ifndef _STDARG_H_
+#define _STDARG_H_
+typedef char *va_list;
+
+#endif
+EOF
+
+# removing useless extra header inclusions that are pulled in anyway
+all=`find . -name '*.[ch]' -print`
+rm -f a
find . -name '*.h' -print |\
sed -e 's:\./::' |\
while read i
do
- mkdir -p ../../cross/include/`dirname $i`
- ../../xify/xify.sh <$i >../../cross/include/`dirname $i`/x_`basename $i`
+ echo "i=$i"
+ pattern=
+ prefix=
+ cp $i temp.c
+ for j in `cpp -nostdinc -I. -Dvax -DNCMD=1 -DNRSP=1 -M temp.c`
+ do
+ case $j in
+ *.h)
+ echo "$i $j" >>a
+ pattern="$pattern$prefix$j"
+ prefix='\|'
+ ;;
+ esac
+ done
+ echo "pattern=$pattern"
+ if test -n "$pattern"
+ then
+ sed -e "s:^#include <\\($pattern\\)>$:/\\*& $i\\*/:" -i `grep -H "^#include <$i>$" $all |sed -e 's/:.*//'`
+ fi
done
+rm -f temp.c
+tsort <a >b
+
+# see make install-headers
+rm machine
+rm frame.h
+rm errno.h
+rm fcntl.h
+rm nlist.h
+rm signal.h
+#rm stdlib.h
+rm syslog.h
+#rm unistd.h
+rm stdarg.h
-#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
+rm -rf ../libx_c.post
+cp -r ../libx_c ../libx_c.post
+patch --strip 1 <post.patch
#include <memory.h>
#include <stdio.h>
#include <strings.h>
-#include <sys/types.h>
+/*#include <sys/types.h> stdio.h*/
#ifdef __STDC__
-#include <stdarg.h>
+/*#include <stdarg.h> stdio.h*/
#define _va_start(argp, arg) va_start(argp, arg)
#else
#include <varargs.h>
#include <math.h>
#include <stdio.h>
#ifdef __STDC__
-#include <stdarg.h>
+/*#include <stdarg.h> stdio.h*/
#define _va_start(argp, arg) va_start(argp, arg)
#else
#include <varargs.h>
#include <gen.h>
#include <stdio.h>
-#include <sys/proc.h>
+/*#include <sys/proc.h> gen.h*/
#if defined(LIBC_SCCS) && !defined(lint)
static char sccsid[] = "@(#)exit.c 5.2 (Berkeley) 3/9/86";
#include <stdio.h>
#include <sys/file.h>
-#include <sys/types.h>
+/*#include <sys/types.h> stdio.h*/
/*
* Copyright (c) 1980 Regents of the University of California.
#include <gen.h>
#include <stdio.h>
-#include <sys/errno.h>
+/*#include <sys/errno.h> gen.h*/
#include <sys/file.h>
/*
#include <stdio.h>
#include <sys/file.h>
-#include <sys/types.h>
+/*#include <sys/types.h> stdio.h*/
/*
* Copyright (c) 1980 Regents of the University of California.
#include <stdio.h>
#ifdef __STDC__
-#include <stdarg.h>
+/*#include <stdarg.h> stdio.h*/
#define _va_start(argp, arg) va_start(argp, arg)
#else
#include <varargs.h>
#include <stdio.h>
#include <sys/file.h>
-#include <sys/types.h>
+/*#include <sys/types.h> stdio.h*/
/*
* Copyright (c) 1980 Regents of the University of California.
#include <gen.h>
#include <stdio.h>
-#include <sys/exec.h>
+/*#include <sys/exec.h> gen.h*/
#include <sys/file.h>
-#include <sys/proc.h>
-#include <sys/signal.h>
+/*#include <sys/proc.h> gen.h*/
+/*#include <sys/signal.h> gen.h*/
#include <sys/wait.h>
/*
#include <stdio.h>
#ifdef __STDC__
-#include <stdarg.h>
+/*#include <stdarg.h> stdio.h*/
#define _va_start(argp, arg) va_start(argp, arg)
#else
#include <varargs.h>
#include <stdio.h>
#ifdef __STDC__
-#include <stdarg.h>
+/*#include <stdarg.h> stdio.h*/
#define _va_start(argp, arg) va_start(argp, arg)
#else
#include <varargs.h>
#include <stdio.h>
#ifdef __STDC__
-#include <stdarg.h>
+/*#include <stdarg.h> stdio.h*/
#define _va_start(argp, arg) va_start(argp, arg)
#else
#include <varargs.h>
#include <stdio.h>
#ifdef __STDC__
-#include <stdarg.h>
+/*#include <stdarg.h> stdio.h*/
#define _va_start(argp, arg) va_start(argp, arg)
#else
#include <varargs.h>
#include <stdio.h>
#ifdef __STDC__
-#include <stdarg.h>
+/*#include <stdarg.h> stdio.h*/
#define _va_start(argp, arg) va_start(argp, arg)
#else
#include <varargs.h>
#include <stdio.h>
#ifdef __STDC__
-#include <stdarg.h>
+/*#include <stdarg.h> stdio.h*/
#define _va_start(argp, arg) va_start(argp, arg)
#else
#include <varargs.h>
#include <sys/proc.h>
#include <sys/ptrace.h>
#include <sys/quota.h>
-#include <sys/resource.h>
+/*#include <sys/resource.h> sys/wait.h*/
#include <sys/select.h>
#include <sys/signal.h>
-#include <sys/socket.h>
+/*#include <sys/socket.h> sys/ioctl.h*/
#include <sys/stat.h>
-#include <sys/time.h>
+/*#include <sys/time.h> sys/proc.h*/
#include <sys/uio.h>
#include <sys/wait.h>
#include <gen.h>
#include <sys/file.h>
-#include <sys/proc.h>
+/*#include <sys/proc.h> gen.h*/
void _exit(s) int s; {
write(2, "_exit()\n", 8);
#include <gen.h>
#include <sys/file.h>
-#include <sys/time.h>
+/*#include <sys/time.h> gen.h*/
/*#include <sys/time.h>*/
int adjtime(delta, odelta) struct timeval *delta; struct timeval *odelta; {
#define _SYS_BKMAC_H_
#include <sys/tty.h>
-#include <sys/types.h>
+/*#include <sys/types.h> sys/tty.h*/
/*
* Copyright (c) 1982, 1986 Regents of the University of California.
#include <gen.h>
#include <sys/file.h>
-#include <sys/proc.h>
+/*#include <sys/proc.h> gen.h*/
void *brk(a) void *a; {
write(2, "brk()\n", 6);
#define _SYS_BUF_H_
#include <sys/param.h>
-#include <sys/types.h>
+/*#include <sys/types.h> sys/param.h*/
/*
* Copyright (c) 1982, 1986 Regents of the University of California.
#include <gen.h>
#include <sys/file.h>
-#include <sys/proc.h>
+/*#include <sys/proc.h> gen.h*/
int chdir(s) char *s; {
write(2, "chdir()\n", 8);
#include <gen.h>
#include <sys/file.h>
-#include <sys/proc.h>
+/*#include <sys/proc.h> gen.h*/
int chroot(d) char *d; {
write(2, "chroot()\n", 9);
#define _SYS_DIR_H_
#include <sys/param.h>
-#include <sys/types.h>
+/*#include <sys/types.h> sys/param.h*/
/*
* Copyright (c) 1982, 1986 Regents of the University of California.
#include <gen.h>
-#include <sys/exec.h>
+/*#include <sys/exec.h> gen.h*/
#include <sys/file.h>
#ifdef __STDC__
-#include <stdarg.h>
+/*#include <stdarg.h> sys/file.h*/
#define _va_start(argp, arg) va_start(argp, arg)
#else
#include <varargs.h>
#include <gen.h>
-#include <sys/exec.h>
+/*#include <sys/exec.h> gen.h*/
#include <sys/file.h>
#ifdef __STDC__
-#include <stdarg.h>
+/*#include <stdarg.h> sys/file.h*/
#define _va_start(argp, arg) va_start(argp, arg)
#else
#include <varargs.h>
#include <gen.h>
-#include <sys/exec.h>
+/*#include <sys/exec.h> gen.h*/
#include <sys/file.h>
void exect(s, v, e) char *s; char *v[]; char *e[]; {
#include <gen.h>
-#include <sys/exec.h>
+/*#include <sys/exec.h> gen.h*/
#include <sys/file.h>
void execv(s, v) char *s; char *v[]; {
#include <gen.h>
-#include <sys/exec.h>
+/*#include <sys/exec.h> gen.h*/
#include <sys/file.h>
void execve(s, v, e) char *s; char *v[]; char *e[]; {
#include <sys/errno.h>
#include <sys/param.h>
-#include <sys/types.h>
+/*#include <sys/types.h> sys/param.h*/
#ifdef __STDC__
#include <stdarg.h>
#endif
#include <gen.h>
#include <sys/file.h>
-#include <sys/proc.h>
+/*#include <sys/proc.h> gen.h*/
int fork() {
write(2, "fork()\n", 7);
#define _SYS_FS_H_
#include <sys/inode.h>
-#include <sys/param.h>
-#include <sys/types.h>
+/*#include <sys/param.h> sys/inode.h*/
+/*#include <sys/types.h> sys/param.h*/
/*
* Copyright (c) 1982, 1986 Regents of the University of California.
#include <gen.h>
#include <sys/file.h>
-#include <sys/types.h>
+/*#include <sys/types.h> gen.h*/
/*#include <sys/types.h>*/
int ftruncate(d, l) int d; off_t l; {
#include <gen.h>
#include <sys/file.h>
-#include <sys/proc.h>
-#include <sys/types.h>
+/*#include <sys/proc.h> gen.h*/
+/*#include <sys/types.h> gen.h*/
/*#include <sys/types.h>*/
gid_t getegid() {
#include <gen.h>
#include <sys/file.h>
-#include <sys/proc.h>
-#include <sys/types.h>
+/*#include <sys/proc.h> gen.h*/
+/*#include <sys/types.h> gen.h*/
/*#include <sys/types.h>*/
uid_t geteuid() {
#include <gen.h>
#include <sys/file.h>
-#include <sys/proc.h>
-#include <sys/types.h>
+/*#include <sys/proc.h> gen.h*/
+/*#include <sys/types.h> gen.h*/
/*#include <sys/types.h>*/
gid_t getgid() {
#include <gen.h>
#include <sys/file.h>
-#include <sys/proc.h>
+/*#include <sys/proc.h> gen.h*/
int getgroups(n, g) int n; int *g; {
write(2, "getgroups()\n", 12);
#include <gen.h>
#include <sys.h>
-#include <sys/file.h>
+/*#include <sys/file.h> sys.h*/
long gethostid() {
write(2, "gethostid()\n", 12);
#include <gen.h>
#include <sys.h>
-#include <sys/file.h>
+/*#include <sys/file.h> sys.h*/
int gethostname(n, l) char *n; int l; {
write(2, "gethostname()\n", 14);
#include <gen.h>
#include <sys/file.h>
-#include <sys/time.h>
+/*#include <sys/time.h> gen.h*/
/*#include <sys/time.h>*/
int getitimer(w, v) int w; struct itimerval *v; {
#include <gen.h>
#include <sys.h>
-#include <sys/file.h>
+/*#include <sys/file.h> sys.h*/
int getpagesize() {
write(2, "getpagesize()\n", 14);
#include <gen.h>
#include <sys/file.h>
-#include <sys/proc.h>
+/*#include <sys/proc.h> gen.h*/
int getpgrp(p) int p; {
write(2, "getpgrp()\n", 10);
#include <gen.h>
#include <sys/file.h>
-#include <sys/proc.h>
+/*#include <sys/proc.h> gen.h*/
int getpid() {
write(2, "getpid()\n", 9);
#include <gen.h>
#include <sys/file.h>
-#include <sys/proc.h>
+/*#include <sys/proc.h> gen.h*/
int getppid() {
write(2, "getppid()\n", 10);
#include <gen.h>
#include <sys/file.h>
-#include <sys/time.h>
+/*#include <sys/time.h> gen.h*/
/*#include <sys/time.h>*/
int gettimeofday(t, z) struct timeval *t; struct timezone *z; {
#include <gen.h>
#include <sys/file.h>
-#include <sys/proc.h>
-#include <sys/types.h>
+/*#include <sys/proc.h> gen.h*/
+/*#include <sys/types.h> gen.h*/
/*#include <sys/types.h>*/
uid_t getuid() {
#include <sys/param.h>
#include <sys/time.h>
-#include <sys/types.h>
+/*#include <sys/types.h> sys/param.h*/
/*
* Copyright (c) 1982, 1986 Regents of the University of California.
#include <gen.h>
#include <sys/file.h>
#include <sys/ioctl.h>
-#include <sys/types.h>
+/*#include <sys/types.h> gen.h*/
/*#include <sys/types.h>*/
int ioctl(d, r, p) int d; u_long r; void *p; {
#define _SYS_IOCTL_H_
#include <net/if.h>
-#include <net/if_arp.h>
+/*#include <net/if_arp.h> net/if.h*/
#include <net/route.h>
-#include <sys/types.h>
+/*#include <sys/types.h> net/if_arp.h*/
/*
* Copyright (c) 1982, 1986 Regents of the University of California.
#include <sys/param.h>
#include <sys/time.h>
-#include <sys/types.h>
+/*#include <sys/types.h> sys/param.h*/
/*
* Copyright (c) 1982, 1986 Regents of the University of California.
#include <gen.h>
#include <sys/file.h>
-#include <sys/signal.h>
+/*#include <sys/signal.h> gen.h*/
int kill(p, s) int p; int s; {
write(2, "kill()\n", 7);
#include <gen.h>
#include <sys/file.h>
-#include <sys/signal.h>
+/*#include <sys/signal.h> gen.h*/
int killpg(pg, s) int pg; int s; {
write(2, "killpg()\n", 9);
#include <gen.h>
#include <sys/file.h>
-#include <sys/types.h>
+/*#include <sys/types.h> gen.h*/
/*#include <sys/types.h>*/
off_t lseek(f, o, d) int f; off_t o; int d; {
#define _SYS_MBUF_H_
#include <sys/param.h>
-#include <sys/types.h>
-#include <vax/pte.h>
+/*#include <sys/types.h> sys/param.h*/
+/*#include <vax/pte.h> sys/param.h*/
/*
* Copyright (c) 1982, 1986 Regents of the University of California.
#define _SYS_MOUNT_H_
#include <sys/param.h>
-#include <sys/types.h>
+/*#include <sys/types.h> sys/param.h*/
/*
* Copyright (c) 1982, 1986 Regents of the University of California.
#define _SYS_MTIO_H_
#include <sys/ioctl.h>
-#include <sys/types.h>
+/*#include <sys/types.h> sys/ioctl.h*/
/*
* Copyright (c) 1982, 1986 Regents of the University of California.
#define _SYS_NAMEI_H_
#include <sys/dir.h>
-#include <sys/types.h>
+/*#include <sys/types.h> sys/uio.h*/
#include <sys/uio.h>
/*
#include <sys/file.h>
#ifdef __STDC__
-#include <stdarg.h>
+/*#include <stdarg.h> sys/file.h*/
#define _va_start(argp, arg) va_start(argp, arg)
#else
#include <varargs.h>
#define _SYS_PROC_H_
#include <sys/time.h>
-#include <sys/types.h>
+/*#include <sys/types.h> sys/time.h*/
/*
* Copyright (c) 1982, 1986 Regents of the University of California.
#include <gen.h>
#include <sys.h>
-#include <sys/file.h>
+/*#include <sys/file.h> sys.h*/
void profil(b, s, o, i) char *b; int s; int o; int i; {
write(2, "profil()\n", 9);
#define _SYS_QUOTA_H_
#include <sys/param.h>
-#include <sys/types.h>
+/*#include <sys/types.h> sys/param.h*/
/*
* Copyright (c) 1982, 1986 Regents of the University of California.
#include <gen.h>
#include <sys.h>
-#include <sys/file.h>
+/*#include <sys/file.h> sys.h*/
void reboot(h) int h; {
write(2, "reboot()\n", 9);
#include <gen.h>
-#include <sys/dir.h>
+/*#include <sys/dir.h> gen.h*/
#include <sys/file.h>
int rmdir(p) char *p; {
#include <gen.h>
#include <sys/file.h>
-#include <sys/proc.h>
+/*#include <sys/proc.h> gen.h*/
void *sbrk(i) int i; {
write(2, "sbrk()\n", 7);
#include <gen.h>
#include <sys/file.h>
#include <sys/select.h>
-#include <sys/time.h>
+/*#include <sys/time.h> gen.h*/
/*#include <sys/select.h>*/
/*#include <sys/time.h>*/
#include <gen.h>
#include <sys/file.h>
-#include <sys/proc.h>
+/*#include <sys/proc.h> gen.h*/
int setgroups(n, g) int n; int *g; {
write(2, "setgroups()\n", 12);
#include <gen.h>
#include <sys.h>
-#include <sys/file.h>
+/*#include <sys/file.h> sys.h*/
int sethostid(h) long h; {
write(2, "sethostid()\n", 12);
#include <gen.h>
#include <sys.h>
-#include <sys/file.h>
+/*#include <sys/file.h> sys.h*/
int sethostname(n, l) char *n; int l; {
write(2, "sethostname()\n", 14);
#include <gen.h>
#include <sys/file.h>
-#include <sys/time.h>
+/*#include <sys/time.h> gen.h*/
/*#include <sys/time.h>*/
int setitimer(w, v, ov) int w; struct itimerval *v; struct itimerval *ov; {
#include <gen.h>
#include <sys/file.h>
-#include <sys/proc.h>
+/*#include <sys/proc.h> gen.h*/
int setpgrp(g, pg) int g; int pg; {
write(2, "setpgrp()\n", 10);
#include <gen.h>
#include <sys/file.h>
-#include <sys/proc.h>
+/*#include <sys/proc.h> gen.h*/
int setregid(r, e) int r; int e; {
write(2, "setregid()\n", 11);
#include <gen.h>
#include <sys/file.h>
-#include <sys/proc.h>
+/*#include <sys/proc.h> gen.h*/
int setreuid(r, e) int r; int e; {
write(2, "setreuid()\n", 11);
#include <gen.h>
#include <sys/file.h>
-#include <sys/time.h>
+/*#include <sys/time.h> gen.h*/
/*#include <sys/time.h>*/
int settimeofday(t, z) struct timeval *t; struct timezone *z; {
#include <gen.h>
#include <sys.h>
-#include <sys/file.h>
+/*#include <sys/file.h> sys.h*/
int shutdown(s, h) int s; int h; {
write(2, "shutdown()\n", 11);
#include <gen.h>
#include <sys/file.h>
-#include <sys/signal.h>
+/*#include <sys/signal.h> gen.h*/
int sigblock(m) int m; {
write(2, "sigblock()\n", 11);
#include <gen.h>
#include <sys/file.h>
-#include <sys/signal.h>
+/*#include <sys/signal.h> gen.h*/
void sigpause(m) int m; {
write(2, "sigpause()\n", 11);
#include <gen.h>
#include <sys/file.h>
-#include <sys/signal.h>
+/*#include <sys/signal.h> gen.h*/
/*#include <sys/signal.h>*/
int sigreturn(scp) struct sigcontext *scp; {
#include <gen.h>
#include <sys/file.h>
-#include <sys/signal.h>
+/*#include <sys/signal.h> gen.h*/
int sigsetmask(m) int m; {
write(2, "sigsetmask()\n", 13);
#include <gen.h>
#include <sys/file.h>
-#include <sys/signal.h>
+/*#include <sys/signal.h> gen.h*/
/*#include <sys/signal.h>*/
int sigstack(ss, oss) struct sigstack *ss; struct sigstack *oss; {
#include <gen.h>
#include <sys/file.h>
-#include <sys/signal.h>
+/*#include <sys/signal.h> gen.h*/
/*#include <sys/signal.h>*/
int sigvec(c, f, m) int c; struct sigvec *f; struct sigvec *m; {
#define _SYS_SOCKETVAR_H_
#include <sys/mbuf.h>
-#include <sys/param.h>
+/*#include <sys/param.h> sys/mbuf.h*/
#include <sys/protosw.h>
#include <sys/time.h>
-#include <sys/types.h>
+/*#include <sys/types.h> sys/param.h*/
/*
* Copyright (c) 1982, 1986 Regents of the University of California.
#include <gen.h>
#include <sys.h>
-#include <sys/file.h>
+/*#include <sys/file.h> sys.h*/
int swapon(s) char *s; {
write(2, "swapon()\n", 9);
#ifndef _SYS_TIME_H_
#define _SYS_TIME_H_
-#include <sys/types.h>
+/*#include <sys/types.h> time.h*/
/*
* Copyright (c) 1982, 1986 Regents of the University of California.
#include <gen.h>
#include <sys/file.h>
-#include <sys/types.h>
+/*#include <sys/types.h> gen.h*/
/*#include <sys/types.h>*/
int truncate(p, l) char *p; off_t l; {
#define _SYS_TTY_H_
#include <sys/ioctl.h>
-#include <sys/ttychars.h>
-#include <sys/types.h>
+/*#include <sys/ttychars.h> sys/ioctl.h*/
+/*#include <sys/types.h> sys/ioctl.h*/
/*
* Copyright (c) 1982, 1986 Regents of the University of California.
#include "ttydev.h"
#else
/*#include <sys/ttychars.h>*/
-#include <sys/ttydev.h>
+/*#include <sys/ttydev.h> sys/ioctl.h*/
#endif
/*
#include <sys/dmap.h>
#include <sys/namei.h>
-#include <sys/param.h>
+/*#include <sys/param.h> sys/namei.h*/
#include <sys/resource.h>
#include <sys/signal.h>
-#include <sys/time.h>
-#include <sys/types.h>
+/*#include <sys/time.h> sys/resource.h*/
+/*#include <sys/types.h> sys/param.h*/
#include <vax/pcb.h>
/*
#include <gen.h>
#include <sys/file.h>
-#include <sys/time.h>
+/*#include <sys/time.h> gen.h*/
/*#include <sys/time.h>*/
int utimes(f, t) char *f; struct timeval t[2]; {
#include <gen.h>
-#include <sys/proc.h>
+/*#include <sys/proc.h> gen.h*/
int vfork() {
abort();
#include <gen.h>
#include <sys.h>
-#include <sys/file.h>
+/*#include <sys/file.h> sys.h*/
void vhangup() {
write(2, "vhangup()\n", 10);
#ifndef _SYS_VMMAC_H_
#define _SYS_VMMAC_H_
-#include <sys/param.h>
+/*#include <sys/param.h> vax/vmparam.h*/
#include <sys/time.h>
-#include <sys/types.h>
-#include <vax/machparam.h>
-#include <vax/mtpr.h>
+/*#include <sys/types.h> vax/vmparam.h*/
+/*#include <vax/machparam.h> vax/vmparam.h*/
+/*#include <vax/mtpr.h> vax/pcb.h*/
#include <vax/pcb.h>
-#include <vax/pte.h>
+/*#include <vax/pte.h> vax/vmparam.h*/
#include <vax/vmparam.h>
/*
#include <gen.h>
#include <sys/file.h>
#ifdef __STDC__
-#include <stdarg.h>
+/*#include <stdarg.h> sys/file.h*/
#define _va_start(argp, arg) va_start(argp, arg)
#else
#include <varargs.h>
#define _SYS_VSIO_H_
#include <sys/ioctl.h>
-#include <sys/types.h>
+/*#include <sys/types.h> sys/ioctl.h*/
/* @(#)vsio.h 7.1 (MIT) 6/4/86 */
/****************************************************************************
#include <gen.h>
#include <sys/file.h>
-#include <sys/resource.h>
+/*#include <sys/resource.h> sys/wait.h*/
#include <sys/wait.h>
/*#include <sys/resource.h>*/
#!/bin/sh
-# this step is not essential
-# it makes various checks
-# it then finally removes useless includes and sorts/prettifies includes
-
# checking header loops
grep -H '^#include <[^>]*>' `find . -name '*.h' -print` |\
sed -e 's/^\.\/\(.*\):#include <\(.*\)>/\1 \2/' |\
tsort >a
-# checking headers compile
-cat <<EOF >stdarg.h
-#ifndef _STDARG_H_
-#define _STDARG_H_
-
-typedef __builtin_va_list va_list;
-#define va_start(v, l) __builtin_va_start(v, l)
-#define va_end(v) __builtin_va_end(v)
-#define va_arg(v, l) __builtin_va_arg(v, l)
+# see make install-headers
+ln -s vax machine
+ln -s machine/frame.h frame.h
+ln -s sys/errno.h errno.h
+ln -s sys/file.h fcntl.h
+ln -s a.out.h nlist.h
+ln -s sys/signal.h signal.h
+#ln -s gen.h stdlib.h
+ln -s sys/syslog.h syslog.h
+#ln -s sys.h unistd.h
+#cat <<EOF >stdarg.h
+##ifndef _STDARG_H_
+##define _STDARG_H_
+#
+#typedef char *va_list;
+#
+##endif
+#EOF
-#endif
-EOF
+# checking headers compile
find . -name '*.h' -print |\
sed -e 's:\./::' |\
+grep -v '\.xify' |\
while read i
do
echo "i=$i"
echo "#include \"$i\"" >temp.c
echo "===$i===" >&2
- gcc -nostdinc -I. -Dvax -DNCMD=1 -DNRSP=1 -c temp.c
-done
-rm -f stdarg.h temp.c
-
-# removing useless extra header inclusions that are pulled in anyway
-rm -f a
-find . -name '*.h' -print |\
-sed -e 's:\./::' |\
-while read i
-do
- echo "i=$i"
- pattern=
- prefix=
- cp $i temp.c
- for j in `cpp -nostdinc -I. -Dvax -DNCMD=1 -DNRSP=1 -M temp.c`
- do
- case $j in
- *.h)
- echo "$i $j" >>a
- pattern="$pattern$prefix$j"
- prefix='\|'
- ;;
- esac
- done
- echo "pattern=$pattern"
- if test -n "$pattern"
- then
- grep -H "^#include <$i>$" `find . -name '*.[ch]' -print` >b
- if test -s b
- then
- for j in `sed -e 's/:.*//' b`
- do
- echo "j=$j"
- grep -v "^#include <\\($pattern\\)>$" $j >c
- mv c $j
- done
- fi
- fi
+ FAKEROOT=../../cross ../../cross/bin/cc -I. -Dvax -DNCMD=1 -DNRSP=1 -c temp.c
done
rm -f temp.c
-tsort <a >b
-## sorting/prettifying (won't work at the moment because of stdarg.h/varargs.h)
-#find . -name '*.[ch]' -print |\
-#sed -e 's:\./::' |\
-#while read i
-#do
-# echo "i=$i"
-# rm -f xx*
-# csplit -q $i '/^#include <.*>$/' '/^$/'
-# for j in xx*
-# do
-# :
-# done
-# if test -f xx01
-# then
-# LC_ALL=C sort <xx01 >a
-# mv a xx01
-# cat xx* >$i
-# fi
-# ../../xify/newline <$i >a
-# mv a $i
-#done
+# see make install-headers
+rm machine
+rm frame.h
+rm errno.h
+rm fcntl.h
+rm nlist.h
+rm signal.h
+#rm stdlib.h
+rm syslog.h
+#rm unistd.h
+#rm stdarg.h
rm -rf compat-sys5/.xify
rm -rf sys/.xify
rm -rf gen/.xify
+mkdir -p compat-4.1/profiled
+mkdir -p compat-sys5/profiled
+mkdir -p gen/profiled
+mkdir -p inet/profiled
+mkdir -p linux/gen/profiled
+mkdir -p linux/profiled
+mkdir -p linux/sys/profiled
+mkdir -p net/hosttable/profiled
+mkdir -p net/named/profiled
+mkdir -p net/profiled
+mkdir -p ns/profiled
+mkdir -p stdio/profiled
+mkdir -p sys/profiled
#define _VAX_RSP_H_
#include <stdio.h>
-#include <sys/types.h>
+/*#include <sys/types.h> stdio.h*/
/*
* Copyright (c) 1982, 1986 Regents of the University of California.
#define _VAX_VMPARAM_H_
#include <sys/param.h>
-#include <vax/machparam.h>
+/*#include <vax/machparam.h> sys/param.h*/
/*
* Copyright (c) 1982, 1986 Regents of the University of California.
#define _VAXIF_IF_DEREG_H_
#include <netinet/if_ether.h>
-#include <sys/types.h>
+/*#include <sys/types.h> netinet/if_ether.h*/
/*
* Copyright (c) 1982, 1986 Regents of the University of California.
#ifndef _VAXIF_IF_HY_H_
#define _VAXIF_IF_HY_H_
-#include <net/if.h>
+/*#include <net/if.h> sys/ioctl.h*/
#include <sys/ioctl.h>
-#include <sys/types.h>
+/*#include <sys/types.h> net/if.h*/
/*
* Copyright (c) 1982, 1986 Regents of the University of California.
#define _VAXUBA_IKREG_H_
#include <sys/ioctl.h>
-#include <sys/types.h>
+/*#include <sys/types.h> sys/ioctl.h*/
/*
* Copyright (c) 1982, 1986 Regents of the University of California.
#define _VAXUBA_NPREG_H_
#include <sys/buf.h>
-#include <sys/types.h>
+/*#include <sys/types.h> sys/buf.h*/
/*
* Copyright (c) 1986 MICOM-Interlan, Inc., Boxborough Mass
#ifndef _VAXUBA_UBAREG_H_
#define _VAXUBA_UBAREG_H_
-#include <sys/types.h>
+/*#include <sys/types.h> vax/cpu.h*/
#include <vax/cpu.h>
#include <vax/machparam.h>
#include <vax/pte.h>
#define _VAXUBA_UBAVAR_H_
#include <sys/buf.h>
-#include <sys/types.h>
-#include <vax/machparam.h>
-#include <vax/pte.h>
+/*#include <sys/types.h> sys/buf.h*/
+/*#include <vax/machparam.h> sys/buf.h*/
+/*#include <vax/pte.h> sys/buf.h*/
/*
* Copyright (c) 1982, 1986 Regents of the University of California.
#define _VAXUBA_UTREG_H_
#include <sys/buf.h>
-#include <sys/types.h>
+/*#include <sys/types.h> sys/buf.h*/
/*
* Copyright (c) 1982, 1986 Regents of the University of California.
#define _VAXUBA_VPREG_H_
#include <sys/param.h>
-#include <sys/types.h>
+/*#include <sys/types.h> sys/param.h*/
/*
* Copyright (c) 1982, 1986 Regents of the University of California.
}
}
}
- error("not found: %s\n", in_name);
- return 1;
+ /* If we do not find a dependency, we just silently don't xify it, */
+ /* then gcc will complain that it cannot find the xified dependency. */
+ /* This is because the dependency might be #if'd out and not needed. */
+ /*error("not found: %s\n", in_name);*/
+ /*return 1;*/
+ return 0;
found:
for (k = 0; k < in_queue_tail; ++k)