From 7a380f48ec41f3f0e5a0a95ef5f932c7c4a491a9 Mon Sep 17 00:00:00 2001 From: Nick Downing Date: Tue, 17 Jan 2017 22:08:21 +1100 Subject: [PATCH] Change things around so that the p.sh script (add #include to *.[ch] to satisfy macro/typedef/struct/union dependencies) can be reused after adding prototypes --- lib/libstdc/ar.h | 1 + lib/libstdc/arpa/ftp.h | 1 + lib/libstdc/arpa/inet.h | 1 + lib/libstdc/arpa/telnet.h | 1 + lib/libstdc/arpa/tftp.h | 1 + lib/libstdc/assert.h | 1 + lib/libstdc/compat-4.1.h | 2 - lib/libstdc/compat-4.1/pause.c | 1 + lib/libstdc/compat-4.1/tell.c | 1 + lib/libstdc/compat-sys5.h | 2 - lib/libstdc/compat-sys5/getopt.c | 1 + lib/libstdc/compat-sys5/strtok.c | 1 + lib/libstdc/compat-sys5/tmpnam.c | 2 + lib/libstdc/conflicts.txt | 1 + lib/libstdc/csu.h | 3 +- lib/libstdc/csu/crt0.c | 3 + lib/libstdc/csu/gmon.c | 4 + lib/libstdc/csu/mon.c | 3 + lib/libstdc/ctype.h | 1 + lib/libstdc/disktab.h | 3 +- lib/libstdc/fstab.h | 3 +- lib/libstdc/gen.h | 3 +- lib/libstdc/gen/_setjmp.c | 1 + lib/libstdc/gen/abort.c | 1 + lib/libstdc/gen/closedir.c | 2 + lib/libstdc/gen/disktab.c | 2 + lib/libstdc/gen/execvp.c | 3 + lib/libstdc/gen/fakcu.c | 1 + lib/libstdc/gen/fstab.c | 1 + lib/libstdc/gen/getgrent.c | 1 + lib/libstdc/gen/getgrnam.c | 1 + lib/libstdc/gen/getlogin.c | 1 + lib/libstdc/gen/getpass.c | 1 + lib/libstdc/gen/getpwent.c | 1 + lib/libstdc/gen/getpwnamuid.c | 2 + lib/libstdc/gen/getttyent.c | 1 + lib/libstdc/gen/getttynam.c | 1 + lib/libstdc/gen/getwd.c | 1 + lib/libstdc/gen/initgroups.c | 3 + lib/libstdc/gen/malloc.c | 2 + lib/libstdc/gen/mkstemp.c | 1 + lib/libstdc/gen/mktemp.c | 2 + lib/libstdc/gen/ndbm.c | 2 + lib/libstdc/gen/nlist.c | 1 + lib/libstdc/gen/opendir.c | 2 + lib/libstdc/gen/perror.c | 1 + lib/libstdc/gen/popen.c | 4 + lib/libstdc/gen/psignal.c | 2 + lib/libstdc/gen/readdir.c | 1 + lib/libstdc/gen/scandir.c | 2 + lib/libstdc/gen/seekdir.c | 1 + lib/libstdc/gen/setjmp.c | 1 + lib/libstdc/gen/setjmperr.c | 1 + lib/libstdc/gen/syslog.c | 6 ++ lib/libstdc/gen/system.c | 2 + lib/libstdc/gen/telldir.c | 1 + lib/libstdc/gen/timezone.c | 2 + lib/libstdc/gen/ttyname.c | 2 + lib/libstdc/gen/ttyslot.c | 1 + lib/libstdc/gen/valloc.c | 1 + lib/libstdc/groups.txt | 2 +- lib/libstdc/grp.h | 3 +- lib/libstdc/inet/inet_addr.c | 1 + lib/libstdc/inet/inet_lnaof.c | 1 + lib/libstdc/inet/inet_makeaddr.c | 1 + lib/libstdc/inet/inet_netof.c | 1 + lib/libstdc/inet/inet_ntoa.c | 1 + lib/libstdc/math.h | 1 + lib/libstdc/memory.h | 3 +- lib/libstdc/mtab.h | 1 + lib/libstdc/n.sh | 14 ++++ lib/libstdc/ndbm.h | 3 +- lib/libstdc/net.h | 2 - lib/libstdc/net/getnetbyname.c | 1 + lib/libstdc/net/getnetent.c | 1 + lib/libstdc/net/getprotoent.c | 1 + lib/libstdc/net/getprotoname.c | 1 + lib/libstdc/net/getservbyname.c | 1 + lib/libstdc/net/getservbyport.c | 1 + lib/libstdc/net/getservent.c | 2 + lib/libstdc/net/hosttable/gethostent.c | 1 + lib/libstdc/net/hosttable/gethostnamadr.c | 2 + lib/libstdc/net/htonl.c | 1 + lib/libstdc/net/htons.c | 1 + lib/libstdc/net/named/gethostnamadr.c | 4 + lib/libstdc/net/ntohl.c | 1 + lib/libstdc/net/ntohs.c | 1 + lib/libstdc/net/rcmd.c | 6 ++ lib/libstdc/net/res_debug.c | 2 + lib/libstdc/net/res_init.c | 5 ++ lib/libstdc/net/res_mkquery.c | 4 + lib/libstdc/net/res_send.c | 5 ++ lib/libstdc/net/rexec.c | 4 + lib/libstdc/net/ruserpass.c | 5 ++ lib/libstdc/netdb.h | 3 +- lib/libstdc/netinet/if_ether.h | 1 + lib/libstdc/netinet/in.h | 3 +- lib/libstdc/netns/idp_var.h | 1 + lib/libstdc/netns/ns.h | 4 +- lib/libstdc/netns/ns_pcb.h | 1 + lib/libstdc/nlist.h | 3 +- lib/libstdc/ns/ns_addr.c | 3 + lib/libstdc/ns/ns_ntoa.c | 2 + lib/libstdc/o.sh | 41 ++++++++++ lib/libstdc/p.sh | 71 +++++------------ lib/libstdc/pcc.h | 4 + lib/libstdc/protocols/rwhod.h | 1 + lib/libstdc/pwd.h | 3 +- lib/libstdc/r.sh | 27 ++++++- lib/libstdc/resolv.h | 5 +- lib/libstdc/s.sh | 59 ++++++++++++++ lib/libstdc/setjmp.h | 3 +- lib/libstdc/sgtty.h | 1 + lib/libstdc/stab.h | 1 + lib/libstdc/stdio.h | 10 ++- lib/libstdc/stdio/doprnt.c | 3 + lib/libstdc/stdio/doscan.c | 1 + lib/libstdc/stdio/exit.c | 3 + lib/libstdc/stdio/filbuf.c | 2 + lib/libstdc/stdio/findiop.c | 2 + lib/libstdc/stdio/flsbuf.c | 3 + lib/libstdc/stdio/fread.c | 1 + lib/libstdc/stdio/fseek.c | 1 + lib/libstdc/stdio/ftell.c | 1 + lib/libstdc/stdio/fwrite.c | 1 + lib/libstdc/stdio/rew.c | 1 + lib/libstdc/stdio/setbuf.c | 1 + lib/libstdc/stdio/setbuffer.c | 1 + lib/libstdc/string.h | 3 +- lib/libstdc/strings.h | 3 +- lib/libstdc/struct.h | 1 + lib/libstdc/sys.h | 2 - lib/libstdc/sys/_exit.c | 1 + lib/libstdc/sys/accept.c | 1 + lib/libstdc/sys/access.c | 1 + lib/libstdc/sys/acct.c | 1 + lib/libstdc/sys/adjtime.c | 1 + lib/libstdc/sys/bind.c | 1 + lib/libstdc/sys/brk.c | 1 + lib/libstdc/sys/chdir.c | 1 + lib/libstdc/sys/chmod.c | 1 + lib/libstdc/sys/chown.c | 1 + lib/libstdc/sys/chroot.c | 1 + lib/libstdc/sys/close.c | 1 + lib/libstdc/sys/connect.c | 1 + lib/libstdc/sys/creat.c | 1 + lib/libstdc/sys/dk.h | 1 + lib/libstdc/sys/domain.h | 1 + lib/libstdc/sys/dup.c | 1 + lib/libstdc/sys/dup2.c | 1 + lib/libstdc/sys/errno.h | 1 + lib/libstdc/sys/exec.h | 5 +- lib/libstdc/sys/execl.c | 1 + lib/libstdc/sys/execle.c | 1 + lib/libstdc/sys/exect.c | 1 + lib/libstdc/sys/execv.c | 1 + lib/libstdc/sys/execve.c | 1 + lib/libstdc/sys/fchmod.c | 1 + lib/libstdc/sys/fchown.c | 1 + lib/libstdc/sys/fcntl.c | 1 + lib/libstdc/sys/flock.c | 1 + lib/libstdc/sys/fork.c | 1 + lib/libstdc/sys/fstat.c | 1 + lib/libstdc/sys/fsync.c | 1 + lib/libstdc/sys/ftruncate.c | 1 + lib/libstdc/sys/getdtablesize.c | 1 + lib/libstdc/sys/getegid.c | 1 + lib/libstdc/sys/geteuid.c | 1 + lib/libstdc/sys/getgid.c | 1 + lib/libstdc/sys/getgroups.c | 1 + lib/libstdc/sys/gethostid.c | 1 + lib/libstdc/sys/gethostname.c | 1 + lib/libstdc/sys/getitimer.c | 1 + lib/libstdc/sys/getpagesize.c | 1 + lib/libstdc/sys/getpeername.c | 1 + lib/libstdc/sys/getpgrp.c | 1 + lib/libstdc/sys/getpid.c | 1 + lib/libstdc/sys/getppid.c | 1 + lib/libstdc/sys/getpriority.c | 1 + lib/libstdc/sys/getrlimit.c | 1 + lib/libstdc/sys/getrusage.c | 1 + lib/libstdc/sys/getsockname.c | 1 + lib/libstdc/sys/getsockopt.c | 1 + lib/libstdc/sys/gettimeofday.c | 1 + lib/libstdc/sys/getuid.c | 1 + lib/libstdc/sys/gprof.h | 1 + lib/libstdc/sys/inode.h | 1 + lib/libstdc/sys/ioctl.c | 1 + lib/libstdc/sys/kill.c | 1 + lib/libstdc/sys/killpg.c | 1 + lib/libstdc/sys/link.c | 1 + lib/libstdc/sys/listen.c | 1 + lib/libstdc/sys/lseek.c | 1 + lib/libstdc/sys/lstat.c | 1 + lib/libstdc/sys/map.h | 1 + lib/libstdc/sys/mkdir.c | 1 + lib/libstdc/sys/mknod.c | 1 + lib/libstdc/sys/mman.h | 1 + lib/libstdc/sys/mount.c | 1 + lib/libstdc/sys/msgbuf.h | 1 + lib/libstdc/sys/open.c | 1 + lib/libstdc/sys/pipe.c | 1 + lib/libstdc/sys/profil.c | 1 + lib/libstdc/sys/protosw.h | 1 + lib/libstdc/sys/ptrace.c | 1 + lib/libstdc/sys/ptrace.h | 1 + lib/libstdc/sys/quota.c | 1 + lib/libstdc/sys/read.c | 1 + lib/libstdc/sys/readlink.c | 1 + lib/libstdc/sys/readv.c | 1 + lib/libstdc/sys/reboot.c | 1 + lib/libstdc/sys/reboot.h | 1 + lib/libstdc/sys/recv.c | 1 + lib/libstdc/sys/recvfrom.c | 1 + lib/libstdc/sys/recvmsg.c | 1 + lib/libstdc/sys/rename.c | 1 + lib/libstdc/sys/rmdir.c | 1 + lib/libstdc/sys/sbrk.c | 1 + lib/libstdc/sys/select.c | 1 + lib/libstdc/sys/select.h | 1 + lib/libstdc/sys/send.c | 1 + lib/libstdc/sys/sendmsg.c | 1 + lib/libstdc/sys/sendto.c | 1 + lib/libstdc/sys/setgroups.c | 1 + lib/libstdc/sys/sethostid.c | 1 + lib/libstdc/sys/sethostname.c | 1 + lib/libstdc/sys/setitimer.c | 1 + lib/libstdc/sys/setpgrp.c | 1 + lib/libstdc/sys/setpriority.c | 1 + lib/libstdc/sys/setquota.c | 1 + lib/libstdc/sys/setregid.c | 1 + lib/libstdc/sys/setreuid.c | 1 + lib/libstdc/sys/setrlimit.c | 1 + lib/libstdc/sys/setsockopt.c | 1 + lib/libstdc/sys/settimeofday.c | 1 + lib/libstdc/sys/shutdown.c | 1 + lib/libstdc/sys/sigblock.c | 1 + lib/libstdc/sys/signal.h | 1 + lib/libstdc/sys/sigpause.c | 1 + lib/libstdc/sys/sigreturn.c | 1 + lib/libstdc/sys/sigsetmask.c | 1 + lib/libstdc/sys/sigstack.c | 1 + lib/libstdc/sys/sigvec.c | 1 + lib/libstdc/sys/socket.c | 1 + lib/libstdc/sys/socketpair.c | 1 + lib/libstdc/sys/socketvar.h | 2 + lib/libstdc/sys/stat.c | 1 + lib/libstdc/sys/swapon.c | 1 + lib/libstdc/sys/symlink.c | 1 + lib/libstdc/sys/sync.c | 1 + lib/libstdc/sys/syslog.h | 1 + lib/libstdc/sys/systm.h | 1 + lib/libstdc/sys/time.h | 1 + lib/libstdc/sys/trace.h | 1 + lib/libstdc/sys/truncate.c | 1 + lib/libstdc/sys/ttychars.h | 1 + lib/libstdc/sys/ttydev.h | 1 + lib/libstdc/sys/types.h | 2 + lib/libstdc/sys/umask.c | 1 + lib/libstdc/sys/umount.c | 1 + lib/libstdc/sys/un.h | 1 + lib/libstdc/sys/unlink.c | 1 + lib/libstdc/sys/utimes.c | 1 + lib/libstdc/sys/vadvise.h | 1 + lib/libstdc/sys/vhangup.c | 1 + lib/libstdc/sys/vlimit.h | 1 + lib/libstdc/sys/vm.h | 1 + lib/libstdc/sys/vmmac.h | 1 + lib/libstdc/sys/vmmeter.h | 1 + lib/libstdc/sys/vmparam.h | 1 + lib/libstdc/sys/vmsystm.h | 1 + lib/libstdc/sys/vsio.h | 1 + lib/libstdc/sys/vtimes.h | 1 + lib/libstdc/sys/wait.c | 1 + lib/libstdc/sys/wait.h | 2 + lib/libstdc/sys/wait3.c | 1 + lib/libstdc/sys/write.c | 1 + lib/libstdc/sys/writev.c | 1 + lib/libstdc/syscall.h | 1 + lib/libstdc/sysexits.h | 1 + lib/libstdc/t.sh | 93 +++++++++++++++++++++++ lib/libstdc/time.h | 3 +- lib/libstdc/ttyent.h | 3 +- lib/libstdc/u.sh | 10 +++ lib/libstdc/utmp.h | 3 +- lib/libstdc/varargs.h | 1 + lib/libstdc/vax/cons.h | 1 + lib/libstdc/vax/crl.h | 2 + lib/libstdc/vax/flp.h | 1 + lib/libstdc/vax/inline/inline.h | 1 + lib/libstdc/vax/mscp.h | 8 ++ lib/libstdc/vax/mtpr.h | 1 + lib/libstdc/vax/psl.h | 1 + lib/libstdc/vax/pte.h | 1 + lib/libstdc/vax/reg.h | 1 + lib/libstdc/vax/rpb.h | 1 + lib/libstdc/vax/rsp.h | 2 + lib/libstdc/vax/scb.h | 1 + lib/libstdc/vax/tmscp.h | 1 + lib/libstdc/vax/trap.h | 1 + lib/libstdc/vaxif/if_cssreg.h | 1 + lib/libstdc/vaxif/if_ddnreg.h | 2 + lib/libstdc/vaxif/if_ddnvar.h | 4 + lib/libstdc/vaxif/if_dmc.h | 1 + lib/libstdc/vaxif/if_ecreg.h | 1 + lib/libstdc/vaxif/if_enreg.h | 1 + lib/libstdc/vaxif/if_exreg.h | 2 + lib/libstdc/vaxif/if_hdhreg.h | 1 + lib/libstdc/vaxif/if_hy.h | 3 + lib/libstdc/vaxif/if_hyreg.h | 1 + lib/libstdc/vaxif/if_ilreg.h | 1 + lib/libstdc/vaxmba/hpreg.h | 1 + lib/libstdc/vaxmba/htreg.h | 1 + lib/libstdc/vaxmba/mtreg.h | 1 + lib/libstdc/vaxuba/dhureg.h | 1 + lib/libstdc/vaxuba/dmreg.h | 1 + lib/libstdc/vaxuba/dmzreg.h | 1 + lib/libstdc/vaxuba/dzreg.h | 1 + lib/libstdc/vaxuba/idcreg.h | 1 + lib/libstdc/vaxuba/npreg.h | 3 + lib/libstdc/vaxuba/pdma.h | 1 + lib/libstdc/vaxuba/psreg.h | 1 + lib/libstdc/vaxuba/tmscpreg.h | 1 + lib/libstdc/vaxuba/tsreg.h | 2 + lib/libstdc/vaxuba/ubareg.h | 3 + lib/libstdc/vaxuba/udareg.h | 2 + lib/libstdc/vaxuba/uureg.h | 3 + lib/libstdc/vaxuba/vsreg.h | 1 + lib/libstdc/vfont.h | 1 + 329 files changed, 689 insertions(+), 109 deletions(-) create mode 100755 lib/libstdc/s.sh create mode 100755 lib/libstdc/t.sh create mode 100644 lib/libstdc/u.sh diff --git a/lib/libstdc/ar.h b/lib/libstdc/ar.h index 19fa478..64dc4b0 100644 --- a/lib/libstdc/ar.h +++ b/lib/libstdc/ar.h @@ -1,6 +1,7 @@ #ifndef _AR_H_ #define _AR_H_ + /* * Copyright (c) 1980 Regents of the University of California. * All rights reserved. The Berkeley software License Agreement diff --git a/lib/libstdc/arpa/ftp.h b/lib/libstdc/arpa/ftp.h index 852fcf9..bf070fc 100644 --- a/lib/libstdc/arpa/ftp.h +++ b/lib/libstdc/arpa/ftp.h @@ -1,6 +1,7 @@ #ifndef _ARPA_FTP_H_ #define _ARPA_FTP_H_ + /* * Copyright (c) 1983 Regents of the University of California. * All rights reserved. The Berkeley software License Agreement diff --git a/lib/libstdc/arpa/inet.h b/lib/libstdc/arpa/inet.h index 44bed1b..0e3e7a8 100644 --- a/lib/libstdc/arpa/inet.h +++ b/lib/libstdc/arpa/inet.h @@ -1,6 +1,7 @@ #ifndef _ARPA_INET_H_ #define _ARPA_INET_H_ + /* * Copyright (c) 1983 Regents of the University of California. * All rights reserved. The Berkeley software License Agreement diff --git a/lib/libstdc/arpa/telnet.h b/lib/libstdc/arpa/telnet.h index 01b7a0c..b0240af 100644 --- a/lib/libstdc/arpa/telnet.h +++ b/lib/libstdc/arpa/telnet.h @@ -1,6 +1,7 @@ #ifndef _ARPA_TELNET_H_ #define _ARPA_TELNET_H_ + /* * Copyright (c) 1983 Regents of the University of California. * All rights reserved. The Berkeley software License Agreement diff --git a/lib/libstdc/arpa/tftp.h b/lib/libstdc/arpa/tftp.h index 6fed9fc..f75941b 100644 --- a/lib/libstdc/arpa/tftp.h +++ b/lib/libstdc/arpa/tftp.h @@ -1,6 +1,7 @@ #ifndef _ARPA_TFTP_H_ #define _ARPA_TFTP_H_ + /* * Copyright (c) 1983 Regents of the University of California. * All rights reserved. The Berkeley software License Agreement diff --git a/lib/libstdc/assert.h b/lib/libstdc/assert.h index 89072b1..35a6e88 100644 --- a/lib/libstdc/assert.h +++ b/lib/libstdc/assert.h @@ -1,6 +1,7 @@ #ifndef _ASSERT_H_ #define _ASSERT_H_ +#include #include /* assert.h 4.2 85/01/21 */ diff --git a/lib/libstdc/compat-4.1.h b/lib/libstdc/compat-4.1.h index e719a4e..cec222f 100644 --- a/lib/libstdc/compat-4.1.h +++ b/lib/libstdc/compat-4.1.h @@ -17,7 +17,6 @@ #endif #endif -#ifndef KERNEL /* compat-4.1/getpw.c */ int getpw __P((int uid, char buf[])); @@ -30,6 +29,5 @@ int rand __P((void)); /* compat-4.1/tell.c */ long tell __P((int f)); -#endif #endif diff --git a/lib/libstdc/compat-4.1/pause.c b/lib/libstdc/compat-4.1/pause.c index 5d27a6b..80a6428 100644 --- a/lib/libstdc/compat-4.1/pause.c +++ b/lib/libstdc/compat-4.1/pause.c @@ -1,3 +1,4 @@ +#include #include /* diff --git a/lib/libstdc/compat-4.1/tell.c b/lib/libstdc/compat-4.1/tell.c index 1d4ad55..67d866c 100644 --- a/lib/libstdc/compat-4.1/tell.c +++ b/lib/libstdc/compat-4.1/tell.c @@ -1,3 +1,4 @@ +#include #include /* diff --git a/lib/libstdc/compat-sys5.h b/lib/libstdc/compat-sys5.h index fee9b08..b93b09b 100644 --- a/lib/libstdc/compat-sys5.h +++ b/lib/libstdc/compat-sys5.h @@ -12,12 +12,10 @@ #endif #endif -#ifndef KERNEL /* compat-sys5/getopt.c */ int getopt __P((int nargc, char **nargv, char *ostr)); /* compat-sys5/tmpnam.c */ char *tmpnam __P((char *s)); -#endif #endif diff --git a/lib/libstdc/compat-sys5/getopt.c b/lib/libstdc/compat-sys5/getopt.c index 6523e4b..13f9512 100644 --- a/lib/libstdc/compat-sys5/getopt.c +++ b/lib/libstdc/compat-sys5/getopt.c @@ -1,3 +1,4 @@ +#include #include #include diff --git a/lib/libstdc/compat-sys5/strtok.c b/lib/libstdc/compat-sys5/strtok.c index ab3f5f5..a4f8a77 100644 --- a/lib/libstdc/compat-sys5/strtok.c +++ b/lib/libstdc/compat-sys5/strtok.c @@ -1,3 +1,4 @@ +#include #include /* diff --git a/lib/libstdc/compat-sys5/tmpnam.c b/lib/libstdc/compat-sys5/tmpnam.c index a6f088a..c276c79 100644 --- a/lib/libstdc/compat-sys5/tmpnam.c +++ b/lib/libstdc/compat-sys5/tmpnam.c @@ -1,3 +1,5 @@ +#include +#include #include /* diff --git a/lib/libstdc/conflicts.txt b/lib/libstdc/conflicts.txt index 338431f..d3e6bba 100644 --- a/lib/libstdc/conflicts.txt +++ b/lib/libstdc/conflicts.txt @@ -1,5 +1,6 @@ arpa/ftp.h arpa/tftp.h arpa/telnet.h gen/crypt.c net/ruserpass.c +compat-4.1.h compat-sys5/getopt.c csu/gmon.c csu/mon.c sys/gprof.h ctype.h vaxuba/vsreg.h gen/insque.c gen/remque.c sys/systm.h diff --git a/lib/libstdc/csu.h b/lib/libstdc/csu.h index ca78fb1..fd35a4b 100644 --- a/lib/libstdc/csu.h +++ b/lib/libstdc/csu.h @@ -1,6 +1,7 @@ #ifndef _CSU_H_ #define _CSU_H_ + #ifndef __P #ifdef __STDC__ #define __P(args) args @@ -9,7 +10,6 @@ #endif #endif -#ifndef KERNEL /* csu/crt0.c */ int start __P((void)); int exit __P((register int code)); @@ -27,6 +27,5 @@ int monstartup __P((char *lowpc, char *highpc)); int mcount __P((void)); int monitor __P((char *lowpc, char *highpc, char *buf, int bufsiz, int cntsiz)); int moncontrol __P((int mode)); -#endif #endif diff --git a/lib/libstdc/csu/crt0.c b/lib/libstdc/csu/crt0.c index 3037f2d..3de54d2 100644 --- a/lib/libstdc/csu/crt0.c +++ b/lib/libstdc/csu/crt0.c @@ -1,3 +1,6 @@ +#include +#include +#include #include /* diff --git a/lib/libstdc/csu/gmon.c b/lib/libstdc/csu/gmon.c index f250fb8..9c0a657 100644 --- a/lib/libstdc/csu/gmon.c +++ b/lib/libstdc/csu/gmon.c @@ -1,3 +1,7 @@ +#include +#include +#include +#include #include #include diff --git a/lib/libstdc/csu/mon.c b/lib/libstdc/csu/mon.c index 2fa5031..07b6405 100644 --- a/lib/libstdc/csu/mon.c +++ b/lib/libstdc/csu/mon.c @@ -1,3 +1,6 @@ +#include +#include +#include #include /* diff --git a/lib/libstdc/ctype.h b/lib/libstdc/ctype.h index 1142fde..fc64a35 100644 --- a/lib/libstdc/ctype.h +++ b/lib/libstdc/ctype.h @@ -1,6 +1,7 @@ #ifndef _CTYPE_H_ #define _CTYPE_H_ + /* ctype.h 4.2 85/09/04 */ #define _U 01 diff --git a/lib/libstdc/disktab.h b/lib/libstdc/disktab.h index df098e1..1b08928 100644 --- a/lib/libstdc/disktab.h +++ b/lib/libstdc/disktab.h @@ -1,6 +1,7 @@ #ifndef _DISKTAB_H_ #define _DISKTAB_H_ + /* * Copyright (c) 1983 Regents of the University of California. * All rights reserved. The Berkeley software License Agreement @@ -41,9 +42,7 @@ struct disktab { #endif #endif -#ifndef KERNEL /* gen/disktab.c */ struct disktab *getdiskbyname __P((char *name)); -#endif #endif diff --git a/lib/libstdc/fstab.h b/lib/libstdc/fstab.h index a41558a..2dc656e 100644 --- a/lib/libstdc/fstab.h +++ b/lib/libstdc/fstab.h @@ -1,6 +1,7 @@ #ifndef _FSTAB_H_ #define _FSTAB_H_ + /* * Copyright (c) 1980 Regents of the University of California. * All rights reserved. The Berkeley software License Agreement @@ -52,7 +53,6 @@ struct fstab{ #endif #endif -#ifndef KERNEL /* gen/fstab.c */ int setfsent __P((void)); int endfsent __P((void)); @@ -60,6 +60,5 @@ struct fstab *getfsent __P((void)); struct fstab *getfsspec __P((char *name)); struct fstab *getfsfile __P((char *name)); struct fstab *getfstype __P((char *type)); -#endif #endif diff --git a/lib/libstdc/gen.h b/lib/libstdc/gen.h index 602e2d1..71d1740 100644 --- a/lib/libstdc/gen.h +++ b/lib/libstdc/gen.h @@ -5,6 +5,7 @@ #include #include #include +#include #include #include #include @@ -30,7 +31,6 @@ #endif #endif -#ifndef KERNEL /* gen/abort.c */ int abort __P((void)); @@ -139,6 +139,5 @@ char *timezone __P((int zone, int dst)); /* gen/valloc.c */ char *valloc __P((int i)); -#endif #endif diff --git a/lib/libstdc/gen/_setjmp.c b/lib/libstdc/gen/_setjmp.c index a69cf5e..05935e4 100644 --- a/lib/libstdc/gen/_setjmp.c +++ b/lib/libstdc/gen/_setjmp.c @@ -1,3 +1,4 @@ +#include #include int _setjmp(e) jmp_buf e; { diff --git a/lib/libstdc/gen/abort.c b/lib/libstdc/gen/abort.c index c7db74a..c3f8fd0 100644 --- a/lib/libstdc/gen/abort.c +++ b/lib/libstdc/gen/abort.c @@ -1,3 +1,4 @@ +#include #include #include diff --git a/lib/libstdc/gen/closedir.c b/lib/libstdc/gen/closedir.c index 94f1ce0..a6766a0 100644 --- a/lib/libstdc/gen/closedir.c +++ b/lib/libstdc/gen/closedir.c @@ -1,3 +1,5 @@ +#include +#include #include /* diff --git a/lib/libstdc/gen/disktab.c b/lib/libstdc/gen/disktab.c index 581cfa5..93916c5 100644 --- a/lib/libstdc/gen/disktab.c +++ b/lib/libstdc/gen/disktab.c @@ -1,3 +1,5 @@ +#include +#include #include #include #include diff --git a/lib/libstdc/gen/execvp.c b/lib/libstdc/gen/execvp.c index a17911d..6505267 100644 --- a/lib/libstdc/gen/execvp.c +++ b/lib/libstdc/gen/execvp.c @@ -1,3 +1,6 @@ +#include +#include +#include #include #include diff --git a/lib/libstdc/gen/fakcu.c b/lib/libstdc/gen/fakcu.c index b322af6..88012ba 100644 --- a/lib/libstdc/gen/fakcu.c +++ b/lib/libstdc/gen/fakcu.c @@ -1,3 +1,4 @@ +#include #include #if defined(LIBC_SCCS) && !defined(lint) diff --git a/lib/libstdc/gen/fstab.c b/lib/libstdc/gen/fstab.c index 89dc4df..c590602 100644 --- a/lib/libstdc/gen/fstab.c +++ b/lib/libstdc/gen/fstab.c @@ -1,3 +1,4 @@ +#include #include #include #include diff --git a/lib/libstdc/gen/getgrent.c b/lib/libstdc/gen/getgrent.c index ab961da..626cf63 100644 --- a/lib/libstdc/gen/getgrent.c +++ b/lib/libstdc/gen/getgrent.c @@ -1,3 +1,4 @@ +#include #include #include diff --git a/lib/libstdc/gen/getgrnam.c b/lib/libstdc/gen/getgrnam.c index f929d15..b1cc220 100644 --- a/lib/libstdc/gen/getgrnam.c +++ b/lib/libstdc/gen/getgrnam.c @@ -1,3 +1,4 @@ +#include #include #if defined(LIBC_SCCS) && !defined(lint) diff --git a/lib/libstdc/gen/getlogin.c b/lib/libstdc/gen/getlogin.c index 0e1b2f4..2cc87f3 100644 --- a/lib/libstdc/gen/getlogin.c +++ b/lib/libstdc/gen/getlogin.c @@ -1,3 +1,4 @@ +#include #include #if defined(LIBC_SCCS) && !defined(lint) diff --git a/lib/libstdc/gen/getpass.c b/lib/libstdc/gen/getpass.c index 04cc8c9..f096bf0 100644 --- a/lib/libstdc/gen/getpass.c +++ b/lib/libstdc/gen/getpass.c @@ -1,3 +1,4 @@ +#include #include #include #include diff --git a/lib/libstdc/gen/getpwent.c b/lib/libstdc/gen/getpwent.c index 7c33740..d20a474 100644 --- a/lib/libstdc/gen/getpwent.c +++ b/lib/libstdc/gen/getpwent.c @@ -1,3 +1,4 @@ +#include #include #include #include diff --git a/lib/libstdc/gen/getpwnamuid.c b/lib/libstdc/gen/getpwnamuid.c index 3818d8c..733cff6 100644 --- a/lib/libstdc/gen/getpwnamuid.c +++ b/lib/libstdc/gen/getpwnamuid.c @@ -1,3 +1,5 @@ +#include +#include #include #include #include diff --git a/lib/libstdc/gen/getttyent.c b/lib/libstdc/gen/getttyent.c index 3622350..14ca5df 100644 --- a/lib/libstdc/gen/getttyent.c +++ b/lib/libstdc/gen/getttyent.c @@ -1,3 +1,4 @@ +#include #include #include diff --git a/lib/libstdc/gen/getttynam.c b/lib/libstdc/gen/getttynam.c index b1d9b56..2e499d0 100644 --- a/lib/libstdc/gen/getttynam.c +++ b/lib/libstdc/gen/getttynam.c @@ -1,3 +1,4 @@ +#include #include /* diff --git a/lib/libstdc/gen/getwd.c b/lib/libstdc/gen/getwd.c index ab11b6c..3f9ec6a 100644 --- a/lib/libstdc/gen/getwd.c +++ b/lib/libstdc/gen/getwd.c @@ -1,3 +1,4 @@ +#include #include #include diff --git a/lib/libstdc/gen/initgroups.c b/lib/libstdc/gen/initgroups.c index 9587f12..d1214e4 100644 --- a/lib/libstdc/gen/initgroups.c +++ b/lib/libstdc/gen/initgroups.c @@ -1,3 +1,6 @@ +#include +#include +#include #include #include #include diff --git a/lib/libstdc/gen/malloc.c b/lib/libstdc/gen/malloc.c index ca32a47..87ca723 100644 --- a/lib/libstdc/gen/malloc.c +++ b/lib/libstdc/gen/malloc.c @@ -1,3 +1,5 @@ +#include +#include #include #include #include diff --git a/lib/libstdc/gen/mkstemp.c b/lib/libstdc/gen/mkstemp.c index 44c81df..e7dc816 100644 --- a/lib/libstdc/gen/mkstemp.c +++ b/lib/libstdc/gen/mkstemp.c @@ -1,3 +1,4 @@ +#include #include #include diff --git a/lib/libstdc/gen/mktemp.c b/lib/libstdc/gen/mktemp.c index 9bfa224..7be3cbd 100644 --- a/lib/libstdc/gen/mktemp.c +++ b/lib/libstdc/gen/mktemp.c @@ -1,3 +1,5 @@ +#include +#include #include #if defined(LIBC_SCCS) && !defined(lint) diff --git a/lib/libstdc/gen/ndbm.c b/lib/libstdc/gen/ndbm.c index a6ae69d..32f25e7 100644 --- a/lib/libstdc/gen/ndbm.c +++ b/lib/libstdc/gen/ndbm.c @@ -1,3 +1,5 @@ +#include +#include #include #include #include diff --git a/lib/libstdc/gen/nlist.c b/lib/libstdc/gen/nlist.c index a54781d..1930a14 100644 --- a/lib/libstdc/gen/nlist.c +++ b/lib/libstdc/gen/nlist.c @@ -1,3 +1,4 @@ +#include #include #include #include diff --git a/lib/libstdc/gen/opendir.c b/lib/libstdc/gen/opendir.c index d2d550f..382b5a8 100644 --- a/lib/libstdc/gen/opendir.c +++ b/lib/libstdc/gen/opendir.c @@ -1,3 +1,5 @@ +#include +#include #include /* diff --git a/lib/libstdc/gen/perror.c b/lib/libstdc/gen/perror.c index e3928e6..7a2d1d4 100644 --- a/lib/libstdc/gen/perror.c +++ b/lib/libstdc/gen/perror.c @@ -1,3 +1,4 @@ +#include #include #include diff --git a/lib/libstdc/gen/popen.c b/lib/libstdc/gen/popen.c index d007ef6..b2e9399 100644 --- a/lib/libstdc/gen/popen.c +++ b/lib/libstdc/gen/popen.c @@ -1,4 +1,8 @@ +#include #include +#include +#include +#include #include #include diff --git a/lib/libstdc/gen/psignal.c b/lib/libstdc/gen/psignal.c index e0d3a7d..8d8573a 100644 --- a/lib/libstdc/gen/psignal.c +++ b/lib/libstdc/gen/psignal.c @@ -1,3 +1,5 @@ +#include +#include #include /* diff --git a/lib/libstdc/gen/readdir.c b/lib/libstdc/gen/readdir.c index 160165c..7646d8f 100644 --- a/lib/libstdc/gen/readdir.c +++ b/lib/libstdc/gen/readdir.c @@ -1,3 +1,4 @@ +#include #include /* diff --git a/lib/libstdc/gen/scandir.c b/lib/libstdc/gen/scandir.c index d5b46fe..32087b0 100644 --- a/lib/libstdc/gen/scandir.c +++ b/lib/libstdc/gen/scandir.c @@ -1,3 +1,5 @@ +#include +#include #include #include diff --git a/lib/libstdc/gen/seekdir.c b/lib/libstdc/gen/seekdir.c index ce81543..834d244 100644 --- a/lib/libstdc/gen/seekdir.c +++ b/lib/libstdc/gen/seekdir.c @@ -1,3 +1,4 @@ +#include #include /* diff --git a/lib/libstdc/gen/setjmp.c b/lib/libstdc/gen/setjmp.c index f1e0411..dc75c5d 100644 --- a/lib/libstdc/gen/setjmp.c +++ b/lib/libstdc/gen/setjmp.c @@ -1,3 +1,4 @@ +#include #include int setjmp(e) jmp_buf e; { diff --git a/lib/libstdc/gen/setjmperr.c b/lib/libstdc/gen/setjmperr.c index c7a3664..78fc95f 100644 --- a/lib/libstdc/gen/setjmperr.c +++ b/lib/libstdc/gen/setjmperr.c @@ -1,3 +1,4 @@ +#include #include /* diff --git a/lib/libstdc/gen/syslog.c b/lib/libstdc/gen/syslog.c index fde0a81..d84afa8 100644 --- a/lib/libstdc/gen/syslog.c +++ b/lib/libstdc/gen/syslog.c @@ -1,3 +1,9 @@ +#include +#include +#include +#include +#include +#include #include #include #include diff --git a/lib/libstdc/gen/system.c b/lib/libstdc/gen/system.c index ec766dd..9785bd6 100644 --- a/lib/libstdc/gen/system.c +++ b/lib/libstdc/gen/system.c @@ -1,3 +1,5 @@ +#include +#include #include #include diff --git a/lib/libstdc/gen/telldir.c b/lib/libstdc/gen/telldir.c index 7294573..3ccd91c 100644 --- a/lib/libstdc/gen/telldir.c +++ b/lib/libstdc/gen/telldir.c @@ -1,3 +1,4 @@ +#include #include /* diff --git a/lib/libstdc/gen/timezone.c b/lib/libstdc/gen/timezone.c index 8f522c3..55ab489 100644 --- a/lib/libstdc/gen/timezone.c +++ b/lib/libstdc/gen/timezone.c @@ -1,3 +1,5 @@ +#include +#include #include /* diff --git a/lib/libstdc/gen/ttyname.c b/lib/libstdc/gen/ttyname.c index 43d1c46..2ede046 100644 --- a/lib/libstdc/gen/ttyname.c +++ b/lib/libstdc/gen/ttyname.c @@ -1,3 +1,5 @@ +#include +#include #include #include #include diff --git a/lib/libstdc/gen/ttyslot.c b/lib/libstdc/gen/ttyslot.c index 66625d1..7e75cab 100644 --- a/lib/libstdc/gen/ttyslot.c +++ b/lib/libstdc/gen/ttyslot.c @@ -1,3 +1,4 @@ +#include #include #include diff --git a/lib/libstdc/gen/valloc.c b/lib/libstdc/gen/valloc.c index b356247..5b066cd 100644 --- a/lib/libstdc/gen/valloc.c +++ b/lib/libstdc/gen/valloc.c @@ -1,3 +1,4 @@ +#include #include /* diff --git a/lib/libstdc/groups.txt b/lib/libstdc/groups.txt index a89b0d4..2a484ba 100644 --- a/lib/libstdc/groups.txt +++ b/lib/libstdc/groups.txt @@ -77,7 +77,7 @@ gen/ndbm.c ndbm.h gen/nlist.c nlist.h gen/opendir.c sys/dir.h gen/perror.c sys/errno.h -gen/popen.c sys/exec.h +gen/popen.c stdio.h gen/psignal.c sys/signal.h gen/qsort.c gen/random.c diff --git a/lib/libstdc/grp.h b/lib/libstdc/grp.h index ef14e36..25094e3 100644 --- a/lib/libstdc/grp.h +++ b/lib/libstdc/grp.h @@ -1,6 +1,7 @@ #ifndef _GRP_H_ #define _GRP_H_ + /* grp.h 4.1 83/05/03 */ struct group { /* see getgrent(3) */ @@ -20,7 +21,6 @@ struct group { /* see getgrent(3) */ #endif #endif -#ifndef KERNEL /* gen/getgrent.c */ int setgrent __P((void)); int endgrent __P((void)); @@ -34,6 +34,5 @@ struct group *getgrnam __P((register char *name)); /* gen/initgroups.c */ int initgroups __P((char *uname, int agroup)); -#endif #endif diff --git a/lib/libstdc/inet/inet_addr.c b/lib/libstdc/inet/inet_addr.c index 06b3cc4..9c26492 100644 --- a/lib/libstdc/inet/inet_addr.c +++ b/lib/libstdc/inet/inet_addr.c @@ -1,3 +1,4 @@ +#include #include #include #include diff --git a/lib/libstdc/inet/inet_lnaof.c b/lib/libstdc/inet/inet_lnaof.c index 99b662f..0acef72 100644 --- a/lib/libstdc/inet/inet_lnaof.c +++ b/lib/libstdc/inet/inet_lnaof.c @@ -1,3 +1,4 @@ +#include #include /* diff --git a/lib/libstdc/inet/inet_makeaddr.c b/lib/libstdc/inet/inet_makeaddr.c index aac630f..b57f1c0 100644 --- a/lib/libstdc/inet/inet_makeaddr.c +++ b/lib/libstdc/inet/inet_makeaddr.c @@ -1,3 +1,4 @@ +#include #include /* diff --git a/lib/libstdc/inet/inet_netof.c b/lib/libstdc/inet/inet_netof.c index f8bd6df..95da4e9 100644 --- a/lib/libstdc/inet/inet_netof.c +++ b/lib/libstdc/inet/inet_netof.c @@ -1,3 +1,4 @@ +#include #include /* diff --git a/lib/libstdc/inet/inet_ntoa.c b/lib/libstdc/inet/inet_ntoa.c index 034efba..f0c6b43 100644 --- a/lib/libstdc/inet/inet_ntoa.c +++ b/lib/libstdc/inet/inet_ntoa.c @@ -1,3 +1,4 @@ +#include #include /* diff --git a/lib/libstdc/math.h b/lib/libstdc/math.h index ce9fe6b..1f9c864 100644 --- a/lib/libstdc/math.h +++ b/lib/libstdc/math.h @@ -1,6 +1,7 @@ #ifndef _MATH_H_ #define _MATH_H_ + /* math.h 4.6 9/11/85 */ /*extern double asinh(), acosh(), atanh();*/ diff --git a/lib/libstdc/memory.h b/lib/libstdc/memory.h index 746d2fd..8f7e7a7 100644 --- a/lib/libstdc/memory.h +++ b/lib/libstdc/memory.h @@ -1,6 +1,7 @@ #ifndef _MEMORY_H_ #define _MEMORY_H_ + /* * Copyright (c) 1985 Regents of the University of California. * All rights reserved. The Berkeley software License Agreement @@ -27,7 +28,6 @@ #endif #endif -#ifndef KERNEL /* compat-sys5/memccpy.c */ char *memccpy __P((register char *t, register char *f, register c, register n)); @@ -42,6 +42,5 @@ char *memcpy __P((register char *t, register char *f, register n)); /* compat-sys5/memset.c */ char *memset __P((register char *s, register c, register n)); -#endif #endif diff --git a/lib/libstdc/mtab.h b/lib/libstdc/mtab.h index 18179d7..7025ffa 100644 --- a/lib/libstdc/mtab.h +++ b/lib/libstdc/mtab.h @@ -1,6 +1,7 @@ #ifndef _MTAB_H_ #define _MTAB_H_ + /* * Copyright (c) 1980 Regents of the University of California. * All rights reserved. The Berkeley software License Agreement diff --git a/lib/libstdc/n.sh b/lib/libstdc/n.sh index ab20e7f..ff6be43 100755 --- a/lib/libstdc/n.sh +++ b/lib/libstdc/n.sh @@ -59,3 +59,17 @@ do fi done rm -rf vax + +find . -name '*.c' -print |\ +sed -e 's:^\./::' |\ +while read i +do + #sed -e '1i' -i $i + echo "i=$i" + ( + echo + cat $i + ) >a + mv a $i +done +done diff --git a/lib/libstdc/ndbm.h b/lib/libstdc/ndbm.h index 121532a..ae1dd7a 100644 --- a/lib/libstdc/ndbm.h +++ b/lib/libstdc/ndbm.h @@ -1,6 +1,7 @@ #ifndef _NDBM_H_ #define _NDBM_H_ + /* * Copyright (c) 1983 Regents of the University of California. * All rights reserved. The Berkeley software License Agreement @@ -72,7 +73,6 @@ typedef struct { #endif #endif -#ifndef KERNEL /* gen/ndbm.c */ DBM *dbm_open __P((char *file, int flags, int mode)); void dbm_close __P((DBM *db)); @@ -82,6 +82,5 @@ int dbm_delete __P((register DBM *db, datum key)); int dbm_store __P((register DBM *db, datum key, datum dat, int replace)); datum dbm_firstkey __P((DBM *db)); datum dbm_nextkey __P((register DBM *db)); -#endif #endif diff --git a/lib/libstdc/net.h b/lib/libstdc/net.h index 6dd4e68..e3a719c 100644 --- a/lib/libstdc/net.h +++ b/lib/libstdc/net.h @@ -12,7 +12,6 @@ #endif #endif -#ifndef KERNEL /* net/htonl.c */ u_long htonl __P((u_long hostlong)); @@ -39,6 +38,5 @@ int rexec __P((char **ahost, int rport, char *name, char *pass, char *cmd, int * int ruserpass __P((char *host, char **aname, char **apass)); int mkpwunclear __P((char *spasswd, int mch, char *sencpasswd)); int mkpwclear __P((char *sencpasswd, int mch, char *spasswd)); -#endif #endif diff --git a/lib/libstdc/net/getnetbyname.c b/lib/libstdc/net/getnetbyname.c index ebdde55..a2a48dd 100644 --- a/lib/libstdc/net/getnetbyname.c +++ b/lib/libstdc/net/getnetbyname.c @@ -1,3 +1,4 @@ +#include #include /* diff --git a/lib/libstdc/net/getnetent.c b/lib/libstdc/net/getnetent.c index 0908822..092cf65 100644 --- a/lib/libstdc/net/getnetent.c +++ b/lib/libstdc/net/getnetent.c @@ -1,3 +1,4 @@ +#include #include #include #include diff --git a/lib/libstdc/net/getprotoent.c b/lib/libstdc/net/getprotoent.c index 9bbff8b..4ec4e7a 100644 --- a/lib/libstdc/net/getprotoent.c +++ b/lib/libstdc/net/getprotoent.c @@ -1,3 +1,4 @@ +#include #include #include diff --git a/lib/libstdc/net/getprotoname.c b/lib/libstdc/net/getprotoname.c index 40d80e1..b0ea83f 100644 --- a/lib/libstdc/net/getprotoname.c +++ b/lib/libstdc/net/getprotoname.c @@ -1,3 +1,4 @@ +#include #include /* diff --git a/lib/libstdc/net/getservbyname.c b/lib/libstdc/net/getservbyname.c index 37b88a4..4209683 100644 --- a/lib/libstdc/net/getservbyname.c +++ b/lib/libstdc/net/getservbyname.c @@ -1,3 +1,4 @@ +#include #include /* diff --git a/lib/libstdc/net/getservbyport.c b/lib/libstdc/net/getservbyport.c index 5cf0af6..9c5e4ed 100644 --- a/lib/libstdc/net/getservbyport.c +++ b/lib/libstdc/net/getservbyport.c @@ -1,3 +1,4 @@ +#include #include /* diff --git a/lib/libstdc/net/getservent.c b/lib/libstdc/net/getservent.c index d777008..8bc3121 100644 --- a/lib/libstdc/net/getservent.c +++ b/lib/libstdc/net/getservent.c @@ -1,3 +1,5 @@ +#include +#include #include #include #include diff --git a/lib/libstdc/net/hosttable/gethostent.c b/lib/libstdc/net/hosttable/gethostent.c index e999013..4158bf6 100644 --- a/lib/libstdc/net/hosttable/gethostent.c +++ b/lib/libstdc/net/hosttable/gethostent.c @@ -1,3 +1,4 @@ +#include #include #include #include diff --git a/lib/libstdc/net/hosttable/gethostnamadr.c b/lib/libstdc/net/hosttable/gethostnamadr.c index f1deedc..ac71172 100644 --- a/lib/libstdc/net/hosttable/gethostnamadr.c +++ b/lib/libstdc/net/hosttable/gethostnamadr.c @@ -1,3 +1,5 @@ +#include +#include #include #include #include diff --git a/lib/libstdc/net/htonl.c b/lib/libstdc/net/htonl.c index 49c8c12..f9c56cd 100644 --- a/lib/libstdc/net/htonl.c +++ b/lib/libstdc/net/htonl.c @@ -1,3 +1,4 @@ +#include #include #include diff --git a/lib/libstdc/net/htons.c b/lib/libstdc/net/htons.c index 41940a0..723d5b3 100644 --- a/lib/libstdc/net/htons.c +++ b/lib/libstdc/net/htons.c @@ -1,3 +1,4 @@ +#include #include #include diff --git a/lib/libstdc/net/named/gethostnamadr.c b/lib/libstdc/net/named/gethostnamadr.c index 1ae03e9..1298d4e 100644 --- a/lib/libstdc/net/named/gethostnamadr.c +++ b/lib/libstdc/net/named/gethostnamadr.c @@ -1,3 +1,7 @@ +#include +#include +#include +#include #include #include #include diff --git a/lib/libstdc/net/ntohl.c b/lib/libstdc/net/ntohl.c index fc9b7a6..e37c058 100644 --- a/lib/libstdc/net/ntohl.c +++ b/lib/libstdc/net/ntohl.c @@ -1,3 +1,4 @@ +#include #include #include diff --git a/lib/libstdc/net/ntohs.c b/lib/libstdc/net/ntohs.c index ce17175..7c4f76f 100644 --- a/lib/libstdc/net/ntohs.c +++ b/lib/libstdc/net/ntohs.c @@ -1,3 +1,4 @@ +#include #include #include diff --git a/lib/libstdc/net/rcmd.c b/lib/libstdc/net/rcmd.c index b8fa1f6..98c4c69 100644 --- a/lib/libstdc/net/rcmd.c +++ b/lib/libstdc/net/rcmd.c @@ -1,3 +1,9 @@ +#include +#include +#include +#include +#include +#include #include #include #include diff --git a/lib/libstdc/net/res_debug.c b/lib/libstdc/net/res_debug.c index 823cee2..785ad37 100644 --- a/lib/libstdc/net/res_debug.c +++ b/lib/libstdc/net/res_debug.c @@ -1,3 +1,5 @@ +#include +#include #include #include #include diff --git a/lib/libstdc/net/res_init.c b/lib/libstdc/net/res_init.c index be9ecc2..ee80af9 100644 --- a/lib/libstdc/net/res_init.c +++ b/lib/libstdc/net/res_init.c @@ -1,3 +1,8 @@ +#include +#include +#include +#include +#include #include #include #include diff --git a/lib/libstdc/net/res_mkquery.c b/lib/libstdc/net/res_mkquery.c index 7f38d55..75ad49d 100644 --- a/lib/libstdc/net/res_mkquery.c +++ b/lib/libstdc/net/res_mkquery.c @@ -1,3 +1,7 @@ +#include +#include +#include +#include #include /* diff --git a/lib/libstdc/net/res_send.c b/lib/libstdc/net/res_send.c index c4e9d8c..0c59f45 100644 --- a/lib/libstdc/net/res_send.c +++ b/lib/libstdc/net/res_send.c @@ -1,3 +1,8 @@ +#include +#include +#include +#include +#include #include #include #include diff --git a/lib/libstdc/net/rexec.c b/lib/libstdc/net/rexec.c index f2060f1..cf4e823 100644 --- a/lib/libstdc/net/rexec.c +++ b/lib/libstdc/net/rexec.c @@ -1,3 +1,7 @@ +#include +#include +#include +#include #include #include #include diff --git a/lib/libstdc/net/ruserpass.c b/lib/libstdc/net/ruserpass.c index 2a92d94..2235f16 100644 --- a/lib/libstdc/net/ruserpass.c +++ b/lib/libstdc/net/ruserpass.c @@ -1,3 +1,8 @@ +#include +#include +#include +#include +#include #include #include #include diff --git a/lib/libstdc/netdb.h b/lib/libstdc/netdb.h index c9dfeea..fb1ffbd 100644 --- a/lib/libstdc/netdb.h +++ b/lib/libstdc/netdb.h @@ -1,6 +1,7 @@ #ifndef _NETDB_H_ #define _NETDB_H_ + /* * Copyright (c) 1980 Regents of the University of California. * All rights reserved. The Berkeley software License Agreement @@ -73,7 +74,6 @@ extern int h_errno; #endif #endif -#ifndef KERNEL /* net/getnetbyaddr.c */ struct netent *getnetbyaddr __P((register int net, register int type)); @@ -130,6 +130,5 @@ struct hostent *_gethtbyaddr __P((char *addr, int len, int type)); int sethostent __P((int stayopen)); int endhostent __P((void)); int sethostfile __P((char *name)); -#endif #endif diff --git a/lib/libstdc/netinet/if_ether.h b/lib/libstdc/netinet/if_ether.h index 5fc4275..d7325f3 100644 --- a/lib/libstdc/netinet/if_ether.h +++ b/lib/libstdc/netinet/if_ether.h @@ -57,6 +57,7 @@ struct ether_arp { #define arp_pln ea_hdr.ar_pln #define arp_op ea_hdr.ar_op + /* * Structure shared between the ethernet driver modules and * the address resolution code. For example, each ec_softc or il_softc diff --git a/lib/libstdc/netinet/in.h b/lib/libstdc/netinet/in.h index d5e52b8..f1eb1ce 100644 --- a/lib/libstdc/netinet/in.h +++ b/lib/libstdc/netinet/in.h @@ -33,6 +33,7 @@ #define IPPROTO_RAW 255 /* raw IP packet */ #define IPPROTO_MAX 256 + /* * Ports < IPPORT_RESERVED are reserved for * privileged processes (e.g. root). @@ -128,7 +129,6 @@ extern struct protosw inetsw[]; #endif #endif -#ifndef KERNEL /* inet/inet_addr.c */ u_long inet_addr __P((register char *cp)); @@ -146,6 +146,5 @@ u_long inet_network __P((register char *cp)); /* inet/inet_ntoa.c */ char *inet_ntoa __P((struct in_addr in)); -#endif #endif diff --git a/lib/libstdc/netns/idp_var.h b/lib/libstdc/netns/idp_var.h index 8171a15..97d3cac 100644 --- a/lib/libstdc/netns/idp_var.h +++ b/lib/libstdc/netns/idp_var.h @@ -1,6 +1,7 @@ #ifndef _NETNS_IDP_VAR_H_ #define _NETNS_IDP_VAR_H_ + /* * Copyright (c) 1984, 1986 Regents of the University of California. * All rights reserved. The Berkeley software License Agreement diff --git a/lib/libstdc/netns/ns.h b/lib/libstdc/netns/ns.h index 8e8f949..975aff6 100644 --- a/lib/libstdc/netns/ns.h +++ b/lib/libstdc/netns/ns.h @@ -28,6 +28,7 @@ #define NSPROTO_RAW 255 /* Placemarker*/ #define NSPROTO_MAX 256 /* Placemarker*/ + /* * Port/Socket numbers: network standard functions */ @@ -60,6 +61,7 @@ #define SO_ALL_PACKETS 7 #define SO_MTU 8 + /* * NS addressing */ @@ -142,12 +144,10 @@ union ns_net ns_broadnet; #endif #endif -#ifndef KERNEL /* ns/ns_addr.c */ struct ns_addr ns_addr __P((char *name)); /* ns/ns_ntoa.c */ char *ns_ntoa __P((struct ns_addr addr)); -#endif #endif diff --git a/lib/libstdc/netns/ns_pcb.h b/lib/libstdc/netns/ns_pcb.h index 0d8f522..ea5322a 100644 --- a/lib/libstdc/netns/ns_pcb.h +++ b/lib/libstdc/netns/ns_pcb.h @@ -52,6 +52,7 @@ struct nspcb { #define NSSNDQ 2048 #define NSRCVQ 2048 + #ifdef KERNEL struct nspcb nspcb; /* head of list */ /*struct nspcb *ns_pcblookup();*/ diff --git a/lib/libstdc/nlist.h b/lib/libstdc/nlist.h index 0312d27..3f073bf 100644 --- a/lib/libstdc/nlist.h +++ b/lib/libstdc/nlist.h @@ -1,6 +1,7 @@ #ifndef _NLIST_H_ #define _NLIST_H_ + /* * Copyright (c) 1980 Regents of the University of California. * All rights reserved. The Berkeley software License Agreement @@ -56,9 +57,7 @@ struct nlist { #endif #endif -#ifndef KERNEL /* gen/nlist.c */ int nlist __P((char *name, struct nlist *list)); -#endif #endif diff --git a/lib/libstdc/ns/ns_addr.c b/lib/libstdc/ns/ns_addr.c index 7e5ae16..ebc5b1d 100644 --- a/lib/libstdc/ns/ns_addr.c +++ b/lib/libstdc/ns/ns_addr.c @@ -1,3 +1,6 @@ +#include +#include +#include #include /* diff --git a/lib/libstdc/ns/ns_ntoa.c b/lib/libstdc/ns/ns_ntoa.c index 4bacf2d..aff810f 100644 --- a/lib/libstdc/ns/ns_ntoa.c +++ b/lib/libstdc/ns/ns_ntoa.c @@ -1,3 +1,5 @@ +#include +#include #include /* diff --git a/lib/libstdc/o.sh b/lib/libstdc/o.sh index 90b8cb0..3cf0cb7 100755 --- a/lib/libstdc/o.sh +++ b/lib/libstdc/o.sh @@ -82,4 +82,45 @@ do mv a $i.protos sed -e 's/^[A-Za-z_][0-9A-Za-z_]*[^0-9A-Za-z_][^;]*[A-Za-z_][0-9A-Za-z_]*[ ]*([ ]*)[ ]*\(,[^;]*\)\?;/\/\*&\*\//' -i $i fi + + rm -f xx* + csplit -b '%05d' -q $i '/^[ ]*{[ ]*$/' '{*}' + for j in xx* + do + : + done + for k in xx* + do + if test $k != xx00000 + then + sed -ne '2,$p' -i $k + fi + if test $k != $j + then + sed -e '$s/$/ {/' -i $k + fi + done + cat xx* >$i +done + +find . -name '*.h' -print |\ +sed -e 's:^\./::' |\ +while read i +do + name=_`echo $i |tr '.\-/abcdefghijklmnopqrstuvwxyz' '___ABCDEFGHIJKLMNOPQRSTUVWXYZ'`_ + echo "i=$i name=$name" + ( + cat <a + mv a $i done diff --git a/lib/libstdc/p.sh b/lib/libstdc/p.sh index aa334ff..0794663 100755 --- a/lib/libstdc/p.sh +++ b/lib/libstdc/p.sh @@ -6,27 +6,6 @@ find . -name '*.[ch]' -print |\ sed -e 's:\./::' |\ while read i do - rm -f xx* - csplit -b '%05d' -q $i '/^[ ]*{[ ]*$/' '{*}' - for j in xx* - do - : - done - for k in xx* - do - if test $k != xx00000 - then - sed -ne '2,$p' -i $k - fi - if test $k != $j - then - sed -e '$s/$/ {/' -i $k - fi - done - ( - echo - cat xx* - ) >$i ../../xify/nocomment <$i |../../xify/nostring >$i.nocomm done @@ -71,6 +50,20 @@ do if test -n "$pattern" then + grep -H "^\\(.*[^0-9A-Za-z_]\\)\\?\\($pattern\\)\\([^0-9A-Za-z_].*\\)\\?$" `find . -name '*.c.nocomm' -print` |sed -e 's:^\./::' |grep -v "^$i\.nocomm:" >a + if test -s a + then + cat a >>$i.usedby + for j in `sed -e 's/\.nocomm:.*//' \$" $j + then + sed -e "1i#include <$i>" -i $j + fi + done + fi + pattern0= prefix0= @@ -114,46 +107,18 @@ do echo "pattern0=$pattern0" - ( - grep -H "^\\(.*[^0-9A-Za-z_]\\)\\?\\($pattern\\)\\([^0-9A-Za-z_].*\\)\\?$" `find . -name '*.c.nocomm' -print` - grep -H "^\\($pattern0\\)$" `find . -name '*.h.nocomm' -print` - ) |sed -e 's:^\./::' |grep -v "^$i\.nocomm:" >a + grep -H "^\\($pattern0\\)$" `find . -name '*.h.nocomm' -print` |sed -e 's:^\./::' |grep -v "^$i\.nocomm:" >a if test -s a then - mv a $i.usedby - for j in `sed -e 's/\.nocomm:.*//' <$i.usedby |sort |uniq` + cat a >>$i.usedby + for j in `sed -e 's/\.nocomm:.*//' \$" $j then - ( - echo "#include <$i>" - cat $j - ) >a - mv a $j + sed -e "4i#include <$i>" -i $j fi done fi fi done - -find . -name '*.h' -print |\ -sed -e 's:^\./::' |\ -while read i -do - name=_`echo $i |tr '.\-/abcdefghijklmnopqrstuvwxyz' '___ABCDEFGHIJKLMNOPQRSTUVWXYZ'`_ - echo "i=$i name=$name" - ( - cat <a - mv a $i -done diff --git a/lib/libstdc/pcc.h b/lib/libstdc/pcc.h index 904ef39..9a273b5 100644 --- a/lib/libstdc/pcc.h +++ b/lib/libstdc/pcc.h @@ -1,6 +1,8 @@ #ifndef _PCC_H_ #define _PCC_H_ +#include + /* * Copyright (c) 1983 Regents of the University of California. * All rights reserved. The Berkeley software License Agreement @@ -184,6 +186,7 @@ # endif + /* * Types, as encoded in intermediate file cookies. */ @@ -213,6 +216,7 @@ # define PCCTM_BASETYPE 017 # define PCCTM_TYPESHIFT 2 + /* * Useful macros. 'PCCOM' macros apply to ops. */ diff --git a/lib/libstdc/protocols/rwhod.h b/lib/libstdc/protocols/rwhod.h index 0bc2dc8..1fa9f7c 100644 --- a/lib/libstdc/protocols/rwhod.h +++ b/lib/libstdc/protocols/rwhod.h @@ -1,6 +1,7 @@ #ifndef _PROTOCOLS_RWHOD_H_ #define _PROTOCOLS_RWHOD_H_ + /* * Copyright (c) 1983 Regents of the University of California. * All rights reserved. The Berkeley software License Agreement diff --git a/lib/libstdc/pwd.h b/lib/libstdc/pwd.h index 9ed2cf1..5e7dfe8 100644 --- a/lib/libstdc/pwd.h +++ b/lib/libstdc/pwd.h @@ -1,6 +1,7 @@ #ifndef _PWD_H_ #define _PWD_H_ + /* pwd.h 4.1 83/05/03 */ struct passwd { /* see getpwent(3) */ @@ -25,7 +26,6 @@ struct passwd { /* see getpwent(3) */ #endif #endif -#ifndef KERNEL /* gen/getpwent.c */ int setpwent __P((void)); int endpwent __P((void)); @@ -35,6 +35,5 @@ int setpwfile __P((char *file)); /* gen/getpwnamuid.c */ struct passwd *getpwnam __P((char *nam)); struct passwd *getpwuid __P((int uid)); -#endif #endif diff --git a/lib/libstdc/r.sh b/lib/libstdc/r.sh index 700c98c..93a07be 100755 --- a/lib/libstdc/r.sh +++ b/lib/libstdc/r.sh @@ -63,7 +63,7 @@ EOF pattern="`sed -ne 's/\\*/\\\\*/g;1s/ __P((.*/(/p' a`" echo "pattern=$pattern" rm -f xx* - csplit $i "/^$pattern/" + csplit -q $i "/^$pattern/" for j in xx* do : @@ -85,7 +85,19 @@ sed -e 's:^\./\(.*\)\.append$:\1:' |\ while read i do echo "i=$i" - sed -e '2i#ifndef KERNEL' -e '$a#endif' -i $i.append + + if test "`dirname $i`" = sys + then + sed -e '2i#ifndef KERNEL' -e '$a#endif' -i $i.append + fi + + if grep -q '[ (]va_list ap[,)]' $i.append && ! grep -q '^#include $' $i + then + sed -e '4i#ifdef __STDC__\ +#include \ +#endif' -i $i + fi + rm -f xx* csplit -b '%05d' -q $i '/^#/' '{*}' for j in xx* @@ -110,6 +122,15 @@ EOF #endif EOF ) >$j - cat xx* |../../xify/newline >$i + cat xx* >$i fi done + +#find . -name '*.[ch]' -print |\ +#sed -e 's:^\./::' |\ +#while read i +#do +# echo "i=$i" +# ../../xify/newline <$i >a +# mv a $i +#done diff --git a/lib/libstdc/resolv.h b/lib/libstdc/resolv.h index a8f111b..9c36771 100644 --- a/lib/libstdc/resolv.h +++ b/lib/libstdc/resolv.h @@ -4,6 +4,7 @@ #include #include + /* * Copyright (c) 1983 Regents of the University of California. * All rights reserved. The Berkeley software License Agreement @@ -16,8 +17,10 @@ * Global defines and variables for resolver stub. */ + #define MAXNS 3 /* max # name servers we'll track */ + struct state { int retrans; /* retransmition time interval */ int retry; /* number of times to retransmit */ @@ -53,7 +56,6 @@ extern struct state _res; #endif #endif -#ifndef KERNEL /* net/res_comp.c */ int dn_expand __P((char *msg, char *eomorig, char *comp_dn, char *exp_dn, int length)); int dn_comp __P((char *exp_dn, char *comp_dn, int length, char **dnptrs, char **lastdnptr)); @@ -81,6 +83,5 @@ int res_mkquery __P((int op, char *dname, int class, int type, char *data, int d /* net/res_send.c */ int res_send __P((char *buf, int buflen, char *answer, int anslen)); int _res_close __P((void)); -#endif #endif diff --git a/lib/libstdc/s.sh b/lib/libstdc/s.sh new file mode 100755 index 0000000..ad56ece --- /dev/null +++ b/lib/libstdc/s.sh @@ -0,0 +1,59 @@ +#!/bin/sh + +sed -e 's/^/:/;s/ /::/g;s/$/:/' conflicts.temp + +find . -name '*.[ch]' -print |\ +sed -e 's:\./::' |\ +while read i +do + ../../xify/nocomment <$i |../../xify/nostring >$i.nocomm +done + +find . -name '*.h' -print |\ +sed -e 's:^\./::' |\ +LC_ALL=C sort -r |\ +while read i +do + echo "i=$i" + protos="`sed -ne 's/^.*[^0-9A-Za-z_]\([A-Za-z_][0-9A-Za-z_]*\) __P((.*));$/\1/p' $i`" + echo "protos=$protos" + + pattern= + prefix= + for j in $protos + do + pattern="$pattern$prefix$j" + prefix='\|' + done + + if test -n "$pattern" + then + grep -H "^\\(.*[^0-9A-Za-z_]\\)\\?\\($pattern\\)[ ]*(" `find . -name '*.c.nocomm' -print` |sed -e 's:^\./::' |grep -v "^$i\.nocomm:" >a + if test -s a + then + cat a >>$i.usedby + for j in `sed -e 's/\.nocomm:.*//' \$" $j + then + sed -e "1i#include <$i>" -i $j + fi + done + fi + + grep -H "^\\(.*[^0-9A-Za-z_]\\)\\?\\($pattern\\)[ ]*(" `find . -name '*.h.nocomm' -print` |sed -e 's:^\./::' |grep -v "^$i\.nocomm:" >a + if test -s a + then + cat a >>$i.usedby + for j in `sed -e 's/\.nocomm:.*//' \$" $j + then + sed -e "4i#include <$i>" -i $j + fi + done + fi + fi +done diff --git a/lib/libstdc/setjmp.h b/lib/libstdc/setjmp.h index bcd0dad..ded8ac2 100644 --- a/lib/libstdc/setjmp.h +++ b/lib/libstdc/setjmp.h @@ -1,6 +1,7 @@ #ifndef _SETJMP_H_ #define _SETJMP_H_ + /* setjmp.h 4.1 83/05/03 */ typedef int jmp_buf[10]; @@ -13,7 +14,6 @@ typedef int jmp_buf[10]; #endif #endif -#ifndef KERNEL /* gen/_setjmp.c */ int _setjmp __P((jmp_buf e)); void _longjmp __P((jmp_buf e, int v)); @@ -24,6 +24,5 @@ void longjmp __P((jmp_buf e, int v)); /* gen/setjmperr.c */ int longjmperror __P((void)); -#endif #endif diff --git a/lib/libstdc/sgtty.h b/lib/libstdc/sgtty.h index ad61f67..b0afdfe 100644 --- a/lib/libstdc/sgtty.h +++ b/lib/libstdc/sgtty.h @@ -1,6 +1,7 @@ #ifndef _SGTTY_H_ #define _SGTTY_H_ + /* sgtty.h 4.2 85/01/03 */ /*#ifndef _IOCTL_*/ diff --git a/lib/libstdc/stab.h b/lib/libstdc/stab.h index 8eeac29..5e42b75 100644 --- a/lib/libstdc/stab.h +++ b/lib/libstdc/stab.h @@ -1,6 +1,7 @@ #ifndef _STAB_H_ #define _STAB_H_ + /* * Copyright (c) 1980 Regents of the University of California. * All rights reserved. The Berkeley software License Agreement diff --git a/lib/libstdc/stdio.h b/lib/libstdc/stdio.h index 1086a3b..2129806 100644 --- a/lib/libstdc/stdio.h +++ b/lib/libstdc/stdio.h @@ -1,6 +1,10 @@ #ifndef _STDIO_H_ #define _STDIO_H_ +#ifdef __STDC__ +#include +#endif + /* * Copyright (c) 1980 Regents of the University of California. * All rights reserved. The Berkeley software License Agreement @@ -75,7 +79,10 @@ extern struct _iobuf { #endif #endif -#ifndef KERNEL +/* gen/popen.c */ +FILE *popen __P((char *cmd, char *mode)); +int pclose __P((FILE *ptr)); + /* stdio/clrerr.c */ int clearerr __P((register FILE *iop)); @@ -192,6 +199,5 @@ int vprintf __P((char *fmt, va_list ap)); /* stdio/vsprintf.c */ int vsprintf __P((char *str, char *fmt, va_list ap)); -#endif #endif diff --git a/lib/libstdc/stdio/doprnt.c b/lib/libstdc/stdio/doprnt.c index ddd0227..fb89447 100644 --- a/lib/libstdc/stdio/doprnt.c +++ b/lib/libstdc/stdio/doprnt.c @@ -1,3 +1,6 @@ +#include +#include +#include #include #include #include diff --git a/lib/libstdc/stdio/doscan.c b/lib/libstdc/stdio/doscan.c index a2a444e..c033ad0 100644 --- a/lib/libstdc/stdio/doscan.c +++ b/lib/libstdc/stdio/doscan.c @@ -1,3 +1,4 @@ +#include #include #include #ifdef __STDC__ diff --git a/lib/libstdc/stdio/exit.c b/lib/libstdc/stdio/exit.c index c24b9ce..05d7779 100644 --- a/lib/libstdc/stdio/exit.c +++ b/lib/libstdc/stdio/exit.c @@ -1,3 +1,6 @@ +#include +#include +#include #include #if defined(LIBC_SCCS) && !defined(lint) diff --git a/lib/libstdc/stdio/filbuf.c b/lib/libstdc/stdio/filbuf.c index bbb7559..6657d32 100644 --- a/lib/libstdc/stdio/filbuf.c +++ b/lib/libstdc/stdio/filbuf.c @@ -1,3 +1,5 @@ +#include +#include #include #include diff --git a/lib/libstdc/stdio/findiop.c b/lib/libstdc/stdio/findiop.c index 34a693d..176de2c 100644 --- a/lib/libstdc/stdio/findiop.c +++ b/lib/libstdc/stdio/findiop.c @@ -1,3 +1,5 @@ +#include +#include #include #include diff --git a/lib/libstdc/stdio/flsbuf.c b/lib/libstdc/stdio/flsbuf.c index bfb3dd9..dda3f37 100644 --- a/lib/libstdc/stdio/flsbuf.c +++ b/lib/libstdc/stdio/flsbuf.c @@ -1,3 +1,6 @@ +#include +#include +#include #include #include diff --git a/lib/libstdc/stdio/fread.c b/lib/libstdc/stdio/fread.c index 05804e9..32034dc 100644 --- a/lib/libstdc/stdio/fread.c +++ b/lib/libstdc/stdio/fread.c @@ -1,3 +1,4 @@ +#include #include /* diff --git a/lib/libstdc/stdio/fseek.c b/lib/libstdc/stdio/fseek.c index 1fc77a2..39972c2 100644 --- a/lib/libstdc/stdio/fseek.c +++ b/lib/libstdc/stdio/fseek.c @@ -1,3 +1,4 @@ +#include #include #if defined(LIBC_SCCS) && !defined(lint) diff --git a/lib/libstdc/stdio/ftell.c b/lib/libstdc/stdio/ftell.c index 537bb5d..bd73267 100644 --- a/lib/libstdc/stdio/ftell.c +++ b/lib/libstdc/stdio/ftell.c @@ -1,3 +1,4 @@ +#include #include #if defined(LIBC_SCCS) && !defined(lint) diff --git a/lib/libstdc/stdio/fwrite.c b/lib/libstdc/stdio/fwrite.c index 20f2d0a..4afd737 100644 --- a/lib/libstdc/stdio/fwrite.c +++ b/lib/libstdc/stdio/fwrite.c @@ -1,3 +1,4 @@ +#include #include /* diff --git a/lib/libstdc/stdio/rew.c b/lib/libstdc/stdio/rew.c index 8a3d35b..1eaf529 100644 --- a/lib/libstdc/stdio/rew.c +++ b/lib/libstdc/stdio/rew.c @@ -1,3 +1,4 @@ +#include #include #if defined(LIBC_SCCS) && !defined(lint) diff --git a/lib/libstdc/stdio/setbuf.c b/lib/libstdc/stdio/setbuf.c index 0e26625..c51b025 100644 --- a/lib/libstdc/stdio/setbuf.c +++ b/lib/libstdc/stdio/setbuf.c @@ -1,3 +1,4 @@ +#include #include /* diff --git a/lib/libstdc/stdio/setbuffer.c b/lib/libstdc/stdio/setbuffer.c index ae66ae4..4cb3cd0 100644 --- a/lib/libstdc/stdio/setbuffer.c +++ b/lib/libstdc/stdio/setbuffer.c @@ -1,3 +1,4 @@ +#include #include /* diff --git a/lib/libstdc/string.h b/lib/libstdc/string.h index ad8d7b1..50be195 100644 --- a/lib/libstdc/string.h +++ b/lib/libstdc/string.h @@ -1,6 +1,7 @@ #ifndef _STRING_H_ #define _STRING_H_ + /* * Copyright (c) 1985 Regents of the University of California. * All rights reserved. The Berkeley software License Agreement @@ -39,7 +40,6 @@ #endif #endif -#ifndef KERNEL /* compat-sys5/strcatn.c */ char *strcatn __P((register char *s1, register char *s2, register n)); @@ -66,6 +66,5 @@ int strspn __P((register char *s, register char *set)); /* compat-sys5/strtok.c */ char *strtok __P((register char *s, register char *sep)); -#endif #endif diff --git a/lib/libstdc/strings.h b/lib/libstdc/strings.h index 348227c..b75576e 100644 --- a/lib/libstdc/strings.h +++ b/lib/libstdc/strings.h @@ -1,6 +1,7 @@ #ifndef _STRINGS_H_ #define _STRINGS_H_ + /* * Copyright (c) 1980 Regents of the University of California. * All rights reserved. The Berkeley software License Agreement @@ -31,7 +32,6 @@ #endif #endif -#ifndef KERNEL /* gen/index.c */ char *index __P((register char *sp, int c)); @@ -58,6 +58,5 @@ int strncmp __P((register char *s1, register char *s2, register n)); /* gen/strncpy.c */ char *strncpy __P((register char *s1, register char *s2, int n)); -#endif #endif diff --git a/lib/libstdc/struct.h b/lib/libstdc/struct.h index 044352d..9e3754f 100644 --- a/lib/libstdc/struct.h +++ b/lib/libstdc/struct.h @@ -1,6 +1,7 @@ #ifndef _STRUCT_H_ #define _STRUCT_H_ + /* struct.h 4.1 83/05/03 */ /* diff --git a/lib/libstdc/sys.h b/lib/libstdc/sys.h index 6802fbf..2d3fce1 100644 --- a/lib/libstdc/sys.h +++ b/lib/libstdc/sys.h @@ -27,7 +27,6 @@ #endif #endif -#ifndef KERNEL /* sys/gethostid.c */ long gethostid __P((void)); @@ -57,6 +56,5 @@ int swapon __P((char *s)); /* sys/vhangup.c */ void vhangup __P((void)); -#endif #endif diff --git a/lib/libstdc/sys/_exit.c b/lib/libstdc/sys/_exit.c index 4ad4bfb..f3b57df 100644 --- a/lib/libstdc/sys/_exit.c +++ b/lib/libstdc/sys/_exit.c @@ -1,3 +1,4 @@ +#include #include void _exit(s) int s; { diff --git a/lib/libstdc/sys/accept.c b/lib/libstdc/sys/accept.c index b71e1dd..4fad803 100644 --- a/lib/libstdc/sys/accept.c +++ b/lib/libstdc/sys/accept.c @@ -1,3 +1,4 @@ +#include #include int accept(s, a, l) int s; struct sockaddr *a; int *l; { diff --git a/lib/libstdc/sys/access.c b/lib/libstdc/sys/access.c index 1840f09..f5bfafa 100644 --- a/lib/libstdc/sys/access.c +++ b/lib/libstdc/sys/access.c @@ -1,3 +1,4 @@ +#include #include int access(p, m) char *p; int m; { diff --git a/lib/libstdc/sys/acct.c b/lib/libstdc/sys/acct.c index b88d783..3a1ecc3 100644 --- a/lib/libstdc/sys/acct.c +++ b/lib/libstdc/sys/acct.c @@ -1,3 +1,4 @@ +#include #include int acct(f) char *f; { diff --git a/lib/libstdc/sys/adjtime.c b/lib/libstdc/sys/adjtime.c index dc2366e..66b26f4 100644 --- a/lib/libstdc/sys/adjtime.c +++ b/lib/libstdc/sys/adjtime.c @@ -1,3 +1,4 @@ +#include #include int adjtime(delta, odelta) struct timeval *delta; struct timeval *odelta; { diff --git a/lib/libstdc/sys/bind.c b/lib/libstdc/sys/bind.c index a1f6634..7af924c 100644 --- a/lib/libstdc/sys/bind.c +++ b/lib/libstdc/sys/bind.c @@ -1,3 +1,4 @@ +#include #include int bind(s, n, l) int s; struct sockaddr *n; int l; { diff --git a/lib/libstdc/sys/brk.c b/lib/libstdc/sys/brk.c index 45f2a73..e40e738 100644 --- a/lib/libstdc/sys/brk.c +++ b/lib/libstdc/sys/brk.c @@ -1,3 +1,4 @@ +#include #include char *brk(a) char *a; { diff --git a/lib/libstdc/sys/chdir.c b/lib/libstdc/sys/chdir.c index 5603b30..727cb39 100644 --- a/lib/libstdc/sys/chdir.c +++ b/lib/libstdc/sys/chdir.c @@ -1,3 +1,4 @@ +#include #include int chdir(s) char *s; { diff --git a/lib/libstdc/sys/chmod.c b/lib/libstdc/sys/chmod.c index 57071a9..6c87af8 100644 --- a/lib/libstdc/sys/chmod.c +++ b/lib/libstdc/sys/chmod.c @@ -1,3 +1,4 @@ +#include #include int chmod(s, m) char *s; int m; { diff --git a/lib/libstdc/sys/chown.c b/lib/libstdc/sys/chown.c index 98e26a5..e2ad367 100644 --- a/lib/libstdc/sys/chown.c +++ b/lib/libstdc/sys/chown.c @@ -1,3 +1,4 @@ +#include #include int chown(s, u, g) char *s; int u; int g; { diff --git a/lib/libstdc/sys/chroot.c b/lib/libstdc/sys/chroot.c index 70cc152..e6ea5e9 100644 --- a/lib/libstdc/sys/chroot.c +++ b/lib/libstdc/sys/chroot.c @@ -1,3 +1,4 @@ +#include #include int chroot(d) char *d; { diff --git a/lib/libstdc/sys/close.c b/lib/libstdc/sys/close.c index a97f1f9..76c0c76 100644 --- a/lib/libstdc/sys/close.c +++ b/lib/libstdc/sys/close.c @@ -1,3 +1,4 @@ +#include #include int close(f) int f; { diff --git a/lib/libstdc/sys/connect.c b/lib/libstdc/sys/connect.c index 74a9919..9160599 100644 --- a/lib/libstdc/sys/connect.c +++ b/lib/libstdc/sys/connect.c @@ -1,3 +1,4 @@ +#include #include int connect(s, n, l) int s; struct sockaddr *n; int l; { diff --git a/lib/libstdc/sys/creat.c b/lib/libstdc/sys/creat.c index a7c676b..cc3066b 100644 --- a/lib/libstdc/sys/creat.c +++ b/lib/libstdc/sys/creat.c @@ -1,3 +1,4 @@ +#include #include int creat(s, m) char *s; int m; { diff --git a/lib/libstdc/sys/dk.h b/lib/libstdc/sys/dk.h index d2f90c5..82fa1f2 100644 --- a/lib/libstdc/sys/dk.h +++ b/lib/libstdc/sys/dk.h @@ -1,6 +1,7 @@ #ifndef _SYS_DK_H_ #define _SYS_DK_H_ + /* * Copyright (c) 1982, 1986 Regents of the University of California. * All rights reserved. The Berkeley software License Agreement diff --git a/lib/libstdc/sys/domain.h b/lib/libstdc/sys/domain.h index ed2d3e5..bd8a9a7 100644 --- a/lib/libstdc/sys/domain.h +++ b/lib/libstdc/sys/domain.h @@ -1,6 +1,7 @@ #ifndef _SYS_DOMAIN_H_ #define _SYS_DOMAIN_H_ + /* * Copyright (c) 1982, 1986 Regents of the University of California. * All rights reserved. The Berkeley software License Agreement diff --git a/lib/libstdc/sys/dup.c b/lib/libstdc/sys/dup.c index 012b45b..dd4d321 100644 --- a/lib/libstdc/sys/dup.c +++ b/lib/libstdc/sys/dup.c @@ -1,3 +1,4 @@ +#include #include int dup(f) int f; { diff --git a/lib/libstdc/sys/dup2.c b/lib/libstdc/sys/dup2.c index 2065982..c7ec418 100644 --- a/lib/libstdc/sys/dup2.c +++ b/lib/libstdc/sys/dup2.c @@ -1,3 +1,4 @@ +#include #include int dup2(o, n) int o; int n; { diff --git a/lib/libstdc/sys/errno.h b/lib/libstdc/sys/errno.h index 9f8adf1..3ecdaff 100644 --- a/lib/libstdc/sys/errno.h +++ b/lib/libstdc/sys/errno.h @@ -1,6 +1,7 @@ #ifndef _SYS_ERRNO_H_ #define _SYS_ERRNO_H_ + /* * Copyright (c) 1982, 1986 Regents of the University of California. * All rights reserved. The Berkeley software License Agreement diff --git a/lib/libstdc/sys/exec.h b/lib/libstdc/sys/exec.h index b2dd827..8729f4b 100644 --- a/lib/libstdc/sys/exec.h +++ b/lib/libstdc/sys/exec.h @@ -1,6 +1,7 @@ #ifndef _SYS_EXEC_H_ #define _SYS_EXEC_H_ + /* * Copyright (c) 1982, 1986 Regents of the University of California. * All rights reserved. The Berkeley software License Agreement @@ -40,10 +41,6 @@ unsigned long a_drsize; /* size of data relocation */ int execlp __P((char *name, char *argv)); int execvp __P((char *name, char **argv)); -/* gen/popen.c */ -FILE *popen __P((char *cmd, char *mode)); -int pclose __P((FILE *ptr)); - /* gen/system.c */ int system __P((char *s)); diff --git a/lib/libstdc/sys/execl.c b/lib/libstdc/sys/execl.c index 8634218..702d82c 100644 --- a/lib/libstdc/sys/execl.c +++ b/lib/libstdc/sys/execl.c @@ -1,3 +1,4 @@ +#include #include void execl(f, a) char *f; char *a; { diff --git a/lib/libstdc/sys/execle.c b/lib/libstdc/sys/execle.c index f76d118..e4aec0c 100644 --- a/lib/libstdc/sys/execle.c +++ b/lib/libstdc/sys/execle.c @@ -1,3 +1,4 @@ +#include #include void execle(f, a) char *f; char *a; { diff --git a/lib/libstdc/sys/exect.c b/lib/libstdc/sys/exect.c index 3049835..4c56ee2 100644 --- a/lib/libstdc/sys/exect.c +++ b/lib/libstdc/sys/exect.c @@ -1,3 +1,4 @@ +#include #include void exect(s, v, e) char *s; char *v[]; char *e[]; { diff --git a/lib/libstdc/sys/execv.c b/lib/libstdc/sys/execv.c index d76ff4f..7f20aff 100644 --- a/lib/libstdc/sys/execv.c +++ b/lib/libstdc/sys/execv.c @@ -1,3 +1,4 @@ +#include #include void execv(s, v) char *s; char *v[]; { diff --git a/lib/libstdc/sys/execve.c b/lib/libstdc/sys/execve.c index 29f86b5..5e5c873 100644 --- a/lib/libstdc/sys/execve.c +++ b/lib/libstdc/sys/execve.c @@ -1,3 +1,4 @@ +#include #include void execve(s, v, e) char *s; char *v[]; char *e[]; { diff --git a/lib/libstdc/sys/fchmod.c b/lib/libstdc/sys/fchmod.c index b796674..95b8a7a 100644 --- a/lib/libstdc/sys/fchmod.c +++ b/lib/libstdc/sys/fchmod.c @@ -1,3 +1,4 @@ +#include #include int fchmod(f, m) int f; int m; { diff --git a/lib/libstdc/sys/fchown.c b/lib/libstdc/sys/fchown.c index 64742d4..5a58887 100644 --- a/lib/libstdc/sys/fchown.c +++ b/lib/libstdc/sys/fchown.c @@ -1,3 +1,4 @@ +#include #include int fchown(f, u, g) int f; int u; int g; { diff --git a/lib/libstdc/sys/fcntl.c b/lib/libstdc/sys/fcntl.c index c5be504..dc041e8 100644 --- a/lib/libstdc/sys/fcntl.c +++ b/lib/libstdc/sys/fcntl.c @@ -1,3 +1,4 @@ +#include #include int fcntl(f, c, a) int f; int c; int a; { diff --git a/lib/libstdc/sys/flock.c b/lib/libstdc/sys/flock.c index 9f2c752..a522d04 100644 --- a/lib/libstdc/sys/flock.c +++ b/lib/libstdc/sys/flock.c @@ -1,3 +1,4 @@ +#include #include int flock(f, o) int f; int o; { diff --git a/lib/libstdc/sys/fork.c b/lib/libstdc/sys/fork.c index 50a2eb5..fe715fd 100644 --- a/lib/libstdc/sys/fork.c +++ b/lib/libstdc/sys/fork.c @@ -1,3 +1,4 @@ +#include #include int fork() { diff --git a/lib/libstdc/sys/fstat.c b/lib/libstdc/sys/fstat.c index 053af12..0ce2621 100644 --- a/lib/libstdc/sys/fstat.c +++ b/lib/libstdc/sys/fstat.c @@ -1,3 +1,4 @@ +#include #include int fstat(f, b) int f; struct stat *b; { diff --git a/lib/libstdc/sys/fsync.c b/lib/libstdc/sys/fsync.c index 0a12c76..e51763e 100644 --- a/lib/libstdc/sys/fsync.c +++ b/lib/libstdc/sys/fsync.c @@ -1,3 +1,4 @@ +#include #include int fsync(f) int f; { diff --git a/lib/libstdc/sys/ftruncate.c b/lib/libstdc/sys/ftruncate.c index 365a386..488cdcd 100644 --- a/lib/libstdc/sys/ftruncate.c +++ b/lib/libstdc/sys/ftruncate.c @@ -1,3 +1,4 @@ +#include #include #include diff --git a/lib/libstdc/sys/getdtablesize.c b/lib/libstdc/sys/getdtablesize.c index 38d30e5..14762ff 100644 --- a/lib/libstdc/sys/getdtablesize.c +++ b/lib/libstdc/sys/getdtablesize.c @@ -1,3 +1,4 @@ +#include #include int getdtablesize() { diff --git a/lib/libstdc/sys/getegid.c b/lib/libstdc/sys/getegid.c index 3ff3622..a087126 100644 --- a/lib/libstdc/sys/getegid.c +++ b/lib/libstdc/sys/getegid.c @@ -1,3 +1,4 @@ +#include #include #include diff --git a/lib/libstdc/sys/geteuid.c b/lib/libstdc/sys/geteuid.c index c3f7d7f..688303a 100644 --- a/lib/libstdc/sys/geteuid.c +++ b/lib/libstdc/sys/geteuid.c @@ -1,3 +1,4 @@ +#include #include #include diff --git a/lib/libstdc/sys/getgid.c b/lib/libstdc/sys/getgid.c index 42bedb4..fcad32d 100644 --- a/lib/libstdc/sys/getgid.c +++ b/lib/libstdc/sys/getgid.c @@ -1,3 +1,4 @@ +#include #include #include diff --git a/lib/libstdc/sys/getgroups.c b/lib/libstdc/sys/getgroups.c index 606eb1d..66997ea 100644 --- a/lib/libstdc/sys/getgroups.c +++ b/lib/libstdc/sys/getgroups.c @@ -1,3 +1,4 @@ +#include #include int getgroups(n, g) int n; int *g; { diff --git a/lib/libstdc/sys/gethostid.c b/lib/libstdc/sys/gethostid.c index 62a8cc9..2111a51 100644 --- a/lib/libstdc/sys/gethostid.c +++ b/lib/libstdc/sys/gethostid.c @@ -1,3 +1,4 @@ +#include #include long gethostid() { diff --git a/lib/libstdc/sys/gethostname.c b/lib/libstdc/sys/gethostname.c index 5c284b5..3287d80 100644 --- a/lib/libstdc/sys/gethostname.c +++ b/lib/libstdc/sys/gethostname.c @@ -1,3 +1,4 @@ +#include #include int gethostname(n, l) char *n; int l; { diff --git a/lib/libstdc/sys/getitimer.c b/lib/libstdc/sys/getitimer.c index d6854ac..e5cd88b 100644 --- a/lib/libstdc/sys/getitimer.c +++ b/lib/libstdc/sys/getitimer.c @@ -1,3 +1,4 @@ +#include #include int getitimer(w, v) int w; struct itimerval *v; { diff --git a/lib/libstdc/sys/getpagesize.c b/lib/libstdc/sys/getpagesize.c index d248e6d..cd48754 100644 --- a/lib/libstdc/sys/getpagesize.c +++ b/lib/libstdc/sys/getpagesize.c @@ -1,3 +1,4 @@ +#include #include int getpagesize() { diff --git a/lib/libstdc/sys/getpeername.c b/lib/libstdc/sys/getpeername.c index 4312dbe..b963940 100644 --- a/lib/libstdc/sys/getpeername.c +++ b/lib/libstdc/sys/getpeername.c @@ -1,3 +1,4 @@ +#include #include int getpeername(s, n, l) int s; struct sockaddr *n; int *l; { diff --git a/lib/libstdc/sys/getpgrp.c b/lib/libstdc/sys/getpgrp.c index 94d06f4..9a25071 100644 --- a/lib/libstdc/sys/getpgrp.c +++ b/lib/libstdc/sys/getpgrp.c @@ -1,3 +1,4 @@ +#include #include int getpgrp(p) int p; { diff --git a/lib/libstdc/sys/getpid.c b/lib/libstdc/sys/getpid.c index af26899..521d029 100644 --- a/lib/libstdc/sys/getpid.c +++ b/lib/libstdc/sys/getpid.c @@ -1,3 +1,4 @@ +#include #include int getpid() { diff --git a/lib/libstdc/sys/getppid.c b/lib/libstdc/sys/getppid.c index abd899c..8b34a8e 100644 --- a/lib/libstdc/sys/getppid.c +++ b/lib/libstdc/sys/getppid.c @@ -1,3 +1,4 @@ +#include #include int getppid() { diff --git a/lib/libstdc/sys/getpriority.c b/lib/libstdc/sys/getpriority.c index 7c5eefb..4ece97c 100644 --- a/lib/libstdc/sys/getpriority.c +++ b/lib/libstdc/sys/getpriority.c @@ -1,3 +1,4 @@ +#include #include int getpriority(w, who) int w; int who; { diff --git a/lib/libstdc/sys/getrlimit.c b/lib/libstdc/sys/getrlimit.c index bb6146f..ad1cce4 100644 --- a/lib/libstdc/sys/getrlimit.c +++ b/lib/libstdc/sys/getrlimit.c @@ -1,3 +1,4 @@ +#include #include int getrlimit(res, rip) int res; struct rlimit *rip; { diff --git a/lib/libstdc/sys/getrusage.c b/lib/libstdc/sys/getrusage.c index 151ecbf..11b26f9 100644 --- a/lib/libstdc/sys/getrusage.c +++ b/lib/libstdc/sys/getrusage.c @@ -1,3 +1,4 @@ +#include #include int getrusage(res, rip) int res; struct rusage *rip; { diff --git a/lib/libstdc/sys/getsockname.c b/lib/libstdc/sys/getsockname.c index 5de15f6..1595fa2 100644 --- a/lib/libstdc/sys/getsockname.c +++ b/lib/libstdc/sys/getsockname.c @@ -1,3 +1,4 @@ +#include #include int getsockname(s, name, namelen) int s; char *name; int *namelen; { diff --git a/lib/libstdc/sys/getsockopt.c b/lib/libstdc/sys/getsockopt.c index 1d6c32d..e281a96 100644 --- a/lib/libstdc/sys/getsockopt.c +++ b/lib/libstdc/sys/getsockopt.c @@ -1,3 +1,4 @@ +#include #include int getsockopt(s, level, opt, buf, len) int s; int level; int opt; char *buf; int *len; { diff --git a/lib/libstdc/sys/gettimeofday.c b/lib/libstdc/sys/gettimeofday.c index 52c16fb..6d82e32 100644 --- a/lib/libstdc/sys/gettimeofday.c +++ b/lib/libstdc/sys/gettimeofday.c @@ -1,3 +1,4 @@ +#include #include int gettimeofday(t, z) struct timeval *t; struct timezone *z; { diff --git a/lib/libstdc/sys/getuid.c b/lib/libstdc/sys/getuid.c index 9df695f..dbdd982 100644 --- a/lib/libstdc/sys/getuid.c +++ b/lib/libstdc/sys/getuid.c @@ -1,3 +1,4 @@ +#include #include #include diff --git a/lib/libstdc/sys/gprof.h b/lib/libstdc/sys/gprof.h index 2444e60..5766934 100644 --- a/lib/libstdc/sys/gprof.h +++ b/lib/libstdc/sys/gprof.h @@ -1,6 +1,7 @@ #ifndef _SYS_GPROF_H_ #define _SYS_GPROF_H_ + /* * Copyright (c) 1982, 1986 Regents of the University of California. * All rights reserved. The Berkeley software License Agreement diff --git a/lib/libstdc/sys/inode.h b/lib/libstdc/sys/inode.h index 086de4b..ea6d2fe 100644 --- a/lib/libstdc/sys/inode.h +++ b/lib/libstdc/sys/inode.h @@ -1,6 +1,7 @@ #ifndef _SYS_INODE_H_ #define _SYS_INODE_H_ +#include #include /* diff --git a/lib/libstdc/sys/ioctl.c b/lib/libstdc/sys/ioctl.c index 9a563f6..bbf9cd6 100644 --- a/lib/libstdc/sys/ioctl.c +++ b/lib/libstdc/sys/ioctl.c @@ -1,3 +1,4 @@ +#include #include #include diff --git a/lib/libstdc/sys/kill.c b/lib/libstdc/sys/kill.c index 143712f..dfaffad 100644 --- a/lib/libstdc/sys/kill.c +++ b/lib/libstdc/sys/kill.c @@ -1,3 +1,4 @@ +#include #include int kill(p, s) int p; int s; { diff --git a/lib/libstdc/sys/killpg.c b/lib/libstdc/sys/killpg.c index 5ddb353..71a29d9 100644 --- a/lib/libstdc/sys/killpg.c +++ b/lib/libstdc/sys/killpg.c @@ -1,3 +1,4 @@ +#include #include int killpg(pg, s) int pg; int s; { diff --git a/lib/libstdc/sys/link.c b/lib/libstdc/sys/link.c index fd46fee..c7e58f9 100644 --- a/lib/libstdc/sys/link.c +++ b/lib/libstdc/sys/link.c @@ -1,3 +1,4 @@ +#include #include int link(a, b) char *a; char *b; { diff --git a/lib/libstdc/sys/listen.c b/lib/libstdc/sys/listen.c index 8e4c7d5..094b5a3 100644 --- a/lib/libstdc/sys/listen.c +++ b/lib/libstdc/sys/listen.c @@ -1,3 +1,4 @@ +#include #include int listen(s, b) int s; int b; { diff --git a/lib/libstdc/sys/lseek.c b/lib/libstdc/sys/lseek.c index 17a7cb1..6469c01 100644 --- a/lib/libstdc/sys/lseek.c +++ b/lib/libstdc/sys/lseek.c @@ -1,3 +1,4 @@ +#include #include #include diff --git a/lib/libstdc/sys/lstat.c b/lib/libstdc/sys/lstat.c index f638c42..3057146 100644 --- a/lib/libstdc/sys/lstat.c +++ b/lib/libstdc/sys/lstat.c @@ -1,3 +1,4 @@ +#include #include int lstat(s, b) char *s; struct stat *b; { diff --git a/lib/libstdc/sys/map.h b/lib/libstdc/sys/map.h index 7d1e5c1..a163714 100644 --- a/lib/libstdc/sys/map.h +++ b/lib/libstdc/sys/map.h @@ -1,6 +1,7 @@ #ifndef _SYS_MAP_H_ #define _SYS_MAP_H_ + /* * Copyright (c) 1982, 1986 Regents of the University of California. * All rights reserved. The Berkeley software License Agreement diff --git a/lib/libstdc/sys/mkdir.c b/lib/libstdc/sys/mkdir.c index 31a7a4e..55855c2 100644 --- a/lib/libstdc/sys/mkdir.c +++ b/lib/libstdc/sys/mkdir.c @@ -1,3 +1,4 @@ +#include #include int mkdir(p, m) char *p; int m; { diff --git a/lib/libstdc/sys/mknod.c b/lib/libstdc/sys/mknod.c index bd16c96..30a7d89 100644 --- a/lib/libstdc/sys/mknod.c +++ b/lib/libstdc/sys/mknod.c @@ -1,3 +1,4 @@ +#include #include int mknod(n, m, a) char *n; int m; int a; { diff --git a/lib/libstdc/sys/mman.h b/lib/libstdc/sys/mman.h index cd88094..25b48e8 100644 --- a/lib/libstdc/sys/mman.h +++ b/lib/libstdc/sys/mman.h @@ -1,6 +1,7 @@ #ifndef _SYS_MMAN_H_ #define _SYS_MMAN_H_ + /* * Copyright (c) 1982, 1986 Regents of the University of California. * All rights reserved. The Berkeley software License Agreement diff --git a/lib/libstdc/sys/mount.c b/lib/libstdc/sys/mount.c index b09a87b..03b9c16 100644 --- a/lib/libstdc/sys/mount.c +++ b/lib/libstdc/sys/mount.c @@ -1,3 +1,4 @@ +#include #include int mount(s, n, f) char *s; char *n; int f; { diff --git a/lib/libstdc/sys/msgbuf.h b/lib/libstdc/sys/msgbuf.h index 13e42c7..2892cf3 100644 --- a/lib/libstdc/sys/msgbuf.h +++ b/lib/libstdc/sys/msgbuf.h @@ -1,6 +1,7 @@ #ifndef _SYS_MSGBUF_H_ #define _SYS_MSGBUF_H_ + /* * Copyright (c) 1982, 1986 Regents of the University of California. * All rights reserved. The Berkeley software License Agreement diff --git a/lib/libstdc/sys/open.c b/lib/libstdc/sys/open.c index 68a2dc7..77c608c 100644 --- a/lib/libstdc/sys/open.c +++ b/lib/libstdc/sys/open.c @@ -1,3 +1,4 @@ +#include #include int open(f, m, stuff) char *f; int m; int stuff; { diff --git a/lib/libstdc/sys/pipe.c b/lib/libstdc/sys/pipe.c index 64eb4fe..9389ceb 100644 --- a/lib/libstdc/sys/pipe.c +++ b/lib/libstdc/sys/pipe.c @@ -1,3 +1,4 @@ +#include #include int pipe(f) int f[2]; { diff --git a/lib/libstdc/sys/profil.c b/lib/libstdc/sys/profil.c index a849312..9434cfd 100644 --- a/lib/libstdc/sys/profil.c +++ b/lib/libstdc/sys/profil.c @@ -1,3 +1,4 @@ +#include #include void profil(b, s, o, i) char *b; int s; int o; int i; { diff --git a/lib/libstdc/sys/protosw.h b/lib/libstdc/sys/protosw.h index bf0265b..d5499c3 100644 --- a/lib/libstdc/sys/protosw.h +++ b/lib/libstdc/sys/protosw.h @@ -1,6 +1,7 @@ #ifndef _SYS_PROTOSW_H_ #define _SYS_PROTOSW_H_ + /* * Copyright (c) 1982, 1986 Regents of the University of California. * All rights reserved. The Berkeley software License Agreement diff --git a/lib/libstdc/sys/ptrace.c b/lib/libstdc/sys/ptrace.c index b4adef4..9b677b6 100644 --- a/lib/libstdc/sys/ptrace.c +++ b/lib/libstdc/sys/ptrace.c @@ -1,3 +1,4 @@ +#include #include int ptrace(r, p, a, d) int r; int p; int *a; int d; { diff --git a/lib/libstdc/sys/ptrace.h b/lib/libstdc/sys/ptrace.h index 2dff8d7..a87af94 100644 --- a/lib/libstdc/sys/ptrace.h +++ b/lib/libstdc/sys/ptrace.h @@ -1,6 +1,7 @@ #ifndef _SYS_PTRACE_H_ #define _SYS_PTRACE_H_ + /* * Copyright (c) 1980, 1986 Regents of the University of California. * All rights reserved. The Berkeley software License Agreement diff --git a/lib/libstdc/sys/quota.c b/lib/libstdc/sys/quota.c index c4a2689..7950492 100644 --- a/lib/libstdc/sys/quota.c +++ b/lib/libstdc/sys/quota.c @@ -1,3 +1,4 @@ +#include #include int quota(c, u, a, ad) int c; int u; int a; char *ad; { diff --git a/lib/libstdc/sys/read.c b/lib/libstdc/sys/read.c index 1809279..aa2c121 100644 --- a/lib/libstdc/sys/read.c +++ b/lib/libstdc/sys/read.c @@ -1,3 +1,4 @@ +#include #include int read(f, b, l) int f; char *b; int l; { diff --git a/lib/libstdc/sys/readlink.c b/lib/libstdc/sys/readlink.c index 289668d..eb2ac71 100644 --- a/lib/libstdc/sys/readlink.c +++ b/lib/libstdc/sys/readlink.c @@ -1,3 +1,4 @@ +#include #include int readlink(p, b, s) char *p; char *b; int s; { diff --git a/lib/libstdc/sys/readv.c b/lib/libstdc/sys/readv.c index ccf0726..a0d8913 100644 --- a/lib/libstdc/sys/readv.c +++ b/lib/libstdc/sys/readv.c @@ -1,3 +1,4 @@ +#include #include int readv(d, v, l) int d; struct iovec *v; int l; { diff --git a/lib/libstdc/sys/reboot.c b/lib/libstdc/sys/reboot.c index 099b016..1f9004f 100644 --- a/lib/libstdc/sys/reboot.c +++ b/lib/libstdc/sys/reboot.c @@ -1,3 +1,4 @@ +#include #include void reboot(h) int h; { diff --git a/lib/libstdc/sys/reboot.h b/lib/libstdc/sys/reboot.h index 1d56f62..1ac1cfc 100644 --- a/lib/libstdc/sys/reboot.h +++ b/lib/libstdc/sys/reboot.h @@ -1,6 +1,7 @@ #ifndef _SYS_REBOOT_H_ #define _SYS_REBOOT_H_ + /* * Copyright (c) 1982, 1986 Regents of the University of California. * All rights reserved. The Berkeley software License Agreement diff --git a/lib/libstdc/sys/recv.c b/lib/libstdc/sys/recv.c index 0c27012..4d175fb 100644 --- a/lib/libstdc/sys/recv.c +++ b/lib/libstdc/sys/recv.c @@ -1,3 +1,4 @@ +#include #include int recv(s, b, l, f) int s; char *b; int l; int f; { diff --git a/lib/libstdc/sys/recvfrom.c b/lib/libstdc/sys/recvfrom.c index 5008a4f..3b1f9a6 100644 --- a/lib/libstdc/sys/recvfrom.c +++ b/lib/libstdc/sys/recvfrom.c @@ -1,3 +1,4 @@ +#include #include int recvfrom(s, b, l, f, fr, fl) int s; char *b; int l; int f; struct sockaddr *fr; int *fl; { diff --git a/lib/libstdc/sys/recvmsg.c b/lib/libstdc/sys/recvmsg.c index ef24a0d..32a1e69 100644 --- a/lib/libstdc/sys/recvmsg.c +++ b/lib/libstdc/sys/recvmsg.c @@ -1,3 +1,4 @@ +#include #include int recvmsg(s, m, f) int s; struct msghdr m[]; int f; { diff --git a/lib/libstdc/sys/rename.c b/lib/libstdc/sys/rename.c index 165f0de..7ae70a9 100644 --- a/lib/libstdc/sys/rename.c +++ b/lib/libstdc/sys/rename.c @@ -1,3 +1,4 @@ +#include #include int rename(f, t) char *f; char *t; { diff --git a/lib/libstdc/sys/rmdir.c b/lib/libstdc/sys/rmdir.c index 169995f..b3cf959 100644 --- a/lib/libstdc/sys/rmdir.c +++ b/lib/libstdc/sys/rmdir.c @@ -1,3 +1,4 @@ +#include #include int rmdir(p) char *p; { diff --git a/lib/libstdc/sys/sbrk.c b/lib/libstdc/sys/sbrk.c index 7ed16d2..cd6e664 100644 --- a/lib/libstdc/sys/sbrk.c +++ b/lib/libstdc/sys/sbrk.c @@ -1,3 +1,4 @@ +#include #include char *sbrk(i) int i; { diff --git a/lib/libstdc/sys/select.c b/lib/libstdc/sys/select.c index 6917f67..b5dfaed 100644 --- a/lib/libstdc/sys/select.c +++ b/lib/libstdc/sys/select.c @@ -1,3 +1,4 @@ +#include #include #include #include diff --git a/lib/libstdc/sys/select.h b/lib/libstdc/sys/select.h index f71b6e7..1c5f057 100644 --- a/lib/libstdc/sys/select.h +++ b/lib/libstdc/sys/select.h @@ -1,6 +1,7 @@ #ifndef _SYS_SELECT_H_ #define _SYS_SELECT_H_ + #ifndef __P #ifdef __STDC__ #define __P(args) args diff --git a/lib/libstdc/sys/send.c b/lib/libstdc/sys/send.c index 6d645e3..55d552f 100644 --- a/lib/libstdc/sys/send.c +++ b/lib/libstdc/sys/send.c @@ -1,3 +1,4 @@ +#include #include int send(s, m, l, f) int s; char *m; int l; int f; { diff --git a/lib/libstdc/sys/sendmsg.c b/lib/libstdc/sys/sendmsg.c index f70b0f1..44215ac 100644 --- a/lib/libstdc/sys/sendmsg.c +++ b/lib/libstdc/sys/sendmsg.c @@ -1,3 +1,4 @@ +#include #include int sendmsg(s, m, l) int s; struct msghdr m[]; int l; { diff --git a/lib/libstdc/sys/sendto.c b/lib/libstdc/sys/sendto.c index c7d76d6..1f7db99 100644 --- a/lib/libstdc/sys/sendto.c +++ b/lib/libstdc/sys/sendto.c @@ -1,3 +1,4 @@ +#include #include int sendto(s, m, l, f, t, tl) int s; char *m; int l; int f; struct sockaddr *t; int tl; { diff --git a/lib/libstdc/sys/setgroups.c b/lib/libstdc/sys/setgroups.c index 1efb9ea..f97e210 100644 --- a/lib/libstdc/sys/setgroups.c +++ b/lib/libstdc/sys/setgroups.c @@ -1,3 +1,4 @@ +#include #include int setgroups(n, g) int n; int *g; { diff --git a/lib/libstdc/sys/sethostid.c b/lib/libstdc/sys/sethostid.c index fc46453..27bfb2a 100644 --- a/lib/libstdc/sys/sethostid.c +++ b/lib/libstdc/sys/sethostid.c @@ -1,3 +1,4 @@ +#include #include int sethostid(h) long h; { diff --git a/lib/libstdc/sys/sethostname.c b/lib/libstdc/sys/sethostname.c index 700482c..e6468e2 100644 --- a/lib/libstdc/sys/sethostname.c +++ b/lib/libstdc/sys/sethostname.c @@ -1,3 +1,4 @@ +#include #include int sethostname(n, l) char *n; int l; { diff --git a/lib/libstdc/sys/setitimer.c b/lib/libstdc/sys/setitimer.c index be5e56f..b6aef57 100644 --- a/lib/libstdc/sys/setitimer.c +++ b/lib/libstdc/sys/setitimer.c @@ -1,3 +1,4 @@ +#include #include int setitimer(w, v, ov) int w; struct itimerval *v; struct itimerval *ov; { diff --git a/lib/libstdc/sys/setpgrp.c b/lib/libstdc/sys/setpgrp.c index b8c3797..8228005 100644 --- a/lib/libstdc/sys/setpgrp.c +++ b/lib/libstdc/sys/setpgrp.c @@ -1,3 +1,4 @@ +#include #include int setpgrp(g, pg) int g; int pg; { diff --git a/lib/libstdc/sys/setpriority.c b/lib/libstdc/sys/setpriority.c index db93eba..e7bd627 100644 --- a/lib/libstdc/sys/setpriority.c +++ b/lib/libstdc/sys/setpriority.c @@ -1,3 +1,4 @@ +#include #include int setpriority(w, who, pri) int w; int who; int pri; { diff --git a/lib/libstdc/sys/setquota.c b/lib/libstdc/sys/setquota.c index 77c065a..ede27bb 100644 --- a/lib/libstdc/sys/setquota.c +++ b/lib/libstdc/sys/setquota.c @@ -1,3 +1,4 @@ +#include #include int setquota(s, f) char *s; char *f; { diff --git a/lib/libstdc/sys/setregid.c b/lib/libstdc/sys/setregid.c index a6797c6..161e626 100644 --- a/lib/libstdc/sys/setregid.c +++ b/lib/libstdc/sys/setregid.c @@ -1,3 +1,4 @@ +#include #include int setregid(r, e) int r; int e; { diff --git a/lib/libstdc/sys/setreuid.c b/lib/libstdc/sys/setreuid.c index 4f46098..06367db 100644 --- a/lib/libstdc/sys/setreuid.c +++ b/lib/libstdc/sys/setreuid.c @@ -1,3 +1,4 @@ +#include #include int setreuid(r, e) int r; int e; { diff --git a/lib/libstdc/sys/setrlimit.c b/lib/libstdc/sys/setrlimit.c index fbd3f32..5da3fa0 100644 --- a/lib/libstdc/sys/setrlimit.c +++ b/lib/libstdc/sys/setrlimit.c @@ -1,3 +1,4 @@ +#include #include int setrlimit(res, rip) int res; struct rlimit *rip; { diff --git a/lib/libstdc/sys/setsockopt.c b/lib/libstdc/sys/setsockopt.c index 85fa7c1..0df0d2e 100644 --- a/lib/libstdc/sys/setsockopt.c +++ b/lib/libstdc/sys/setsockopt.c @@ -1,3 +1,4 @@ +#include #include int setsockopt(s, level, opt, buf, len) int s; int level; int opt; char *buf; int len; { diff --git a/lib/libstdc/sys/settimeofday.c b/lib/libstdc/sys/settimeofday.c index f01fdf9..08059f5 100644 --- a/lib/libstdc/sys/settimeofday.c +++ b/lib/libstdc/sys/settimeofday.c @@ -1,3 +1,4 @@ +#include #include int settimeofday(t, z) struct timeval *t; struct timezone *z; { diff --git a/lib/libstdc/sys/shutdown.c b/lib/libstdc/sys/shutdown.c index 06c2fa3..388a978 100644 --- a/lib/libstdc/sys/shutdown.c +++ b/lib/libstdc/sys/shutdown.c @@ -1,3 +1,4 @@ +#include #include int shutdown(s, h) int s; int h; { diff --git a/lib/libstdc/sys/sigblock.c b/lib/libstdc/sys/sigblock.c index c88ef21..dc378bf 100644 --- a/lib/libstdc/sys/sigblock.c +++ b/lib/libstdc/sys/sigblock.c @@ -1,3 +1,4 @@ +#include #include int sigblock(m) int m; { diff --git a/lib/libstdc/sys/signal.h b/lib/libstdc/sys/signal.h index 7af6a4b..9b0bd44 100644 --- a/lib/libstdc/sys/signal.h +++ b/lib/libstdc/sys/signal.h @@ -1,6 +1,7 @@ #ifndef _SYS_SIGNAL_H_ #define _SYS_SIGNAL_H_ + /* * Copyright (c) 1982, 1986 Regents of the University of California. * All rights reserved. The Berkeley software License Agreement diff --git a/lib/libstdc/sys/sigpause.c b/lib/libstdc/sys/sigpause.c index a9c8bb5..5a555c6 100644 --- a/lib/libstdc/sys/sigpause.c +++ b/lib/libstdc/sys/sigpause.c @@ -1,3 +1,4 @@ +#include #include void sigpause(m) int m; { diff --git a/lib/libstdc/sys/sigreturn.c b/lib/libstdc/sys/sigreturn.c index 2903b33..c50cae7 100644 --- a/lib/libstdc/sys/sigreturn.c +++ b/lib/libstdc/sys/sigreturn.c @@ -1,3 +1,4 @@ +#include #include int sigreturn(scp) struct sigcontext *scp; { diff --git a/lib/libstdc/sys/sigsetmask.c b/lib/libstdc/sys/sigsetmask.c index a16cb7e..eb714b5 100644 --- a/lib/libstdc/sys/sigsetmask.c +++ b/lib/libstdc/sys/sigsetmask.c @@ -1,3 +1,4 @@ +#include #include int sigsetmask(m) int m; { diff --git a/lib/libstdc/sys/sigstack.c b/lib/libstdc/sys/sigstack.c index 8fb5ed2..e9af3c7 100644 --- a/lib/libstdc/sys/sigstack.c +++ b/lib/libstdc/sys/sigstack.c @@ -1,3 +1,4 @@ +#include #include int sigstack(ss, oss) struct sigstack *ss; struct sigstack *oss; { diff --git a/lib/libstdc/sys/sigvec.c b/lib/libstdc/sys/sigvec.c index 598fc3a..5e87447 100644 --- a/lib/libstdc/sys/sigvec.c +++ b/lib/libstdc/sys/sigvec.c @@ -1,3 +1,4 @@ +#include #include int sigvec(c, f, m) int c; struct sigvec *f; struct sigvec *m; { diff --git a/lib/libstdc/sys/socket.c b/lib/libstdc/sys/socket.c index 24095a5..ecd4fdc 100644 --- a/lib/libstdc/sys/socket.c +++ b/lib/libstdc/sys/socket.c @@ -1,3 +1,4 @@ +#include #include int socket(a, t, p) int a; int t; int p; { diff --git a/lib/libstdc/sys/socketpair.c b/lib/libstdc/sys/socketpair.c index c414c82..8b4eb6e 100644 --- a/lib/libstdc/sys/socketpair.c +++ b/lib/libstdc/sys/socketpair.c @@ -1,3 +1,4 @@ +#include #include int socketpair(d, t, p, s) int d; int t; int p; int s[2]; { diff --git a/lib/libstdc/sys/socketvar.h b/lib/libstdc/sys/socketvar.h index 296a3de..ec1c36a 100644 --- a/lib/libstdc/sys/socketvar.h +++ b/lib/libstdc/sys/socketvar.h @@ -1,6 +1,7 @@ #ifndef _SYS_SOCKETVAR_H_ #define _SYS_SOCKETVAR_H_ +#include #include #include @@ -83,6 +84,7 @@ struct socket { #define SS_NBIO 0x100 /* non-blocking ops */ #define SS_ASYNC 0x200 /* async i/o notify */ + /* * Macros for sockets and socket buffering. */ diff --git a/lib/libstdc/sys/stat.c b/lib/libstdc/sys/stat.c index 0b9de8e..03196a0 100644 --- a/lib/libstdc/sys/stat.c +++ b/lib/libstdc/sys/stat.c @@ -1,3 +1,4 @@ +#include #include int stat(s, b) char *s; struct stat *b; { diff --git a/lib/libstdc/sys/swapon.c b/lib/libstdc/sys/swapon.c index 62e815e..250f920 100644 --- a/lib/libstdc/sys/swapon.c +++ b/lib/libstdc/sys/swapon.c @@ -1,3 +1,4 @@ +#include #include int swapon(s) char *s; { diff --git a/lib/libstdc/sys/symlink.c b/lib/libstdc/sys/symlink.c index e869c56..8d368e3 100644 --- a/lib/libstdc/sys/symlink.c +++ b/lib/libstdc/sys/symlink.c @@ -1,3 +1,4 @@ +#include #include int symlink(t, f) char *t; char *f; { diff --git a/lib/libstdc/sys/sync.c b/lib/libstdc/sys/sync.c index 24677fd..e7c5992 100644 --- a/lib/libstdc/sys/sync.c +++ b/lib/libstdc/sys/sync.c @@ -1,3 +1,4 @@ +#include #include void sync() { diff --git a/lib/libstdc/sys/syslog.h b/lib/libstdc/sys/syslog.h index 4c1b7da..77182f5 100644 --- a/lib/libstdc/sys/syslog.h +++ b/lib/libstdc/sys/syslog.h @@ -1,6 +1,7 @@ #ifndef _SYS_SYSLOG_H_ #define _SYS_SYSLOG_H_ + /* * Copyright (c) 1982, 1986 Regents of the University of California. * All rights reserved. The Berkeley software License Agreement diff --git a/lib/libstdc/sys/systm.h b/lib/libstdc/sys/systm.h index a300d06..10eba59 100644 --- a/lib/libstdc/sys/systm.h +++ b/lib/libstdc/sys/systm.h @@ -1,6 +1,7 @@ #ifndef _SYS_SYSTM_H_ #define _SYS_SYSTM_H_ +#include #include /* diff --git a/lib/libstdc/sys/time.h b/lib/libstdc/sys/time.h index 2107f48..b8e1c0e 100644 --- a/lib/libstdc/sys/time.h +++ b/lib/libstdc/sys/time.h @@ -1,6 +1,7 @@ #ifndef _SYS_TIME_H_ #define _SYS_TIME_H_ + /* * Copyright (c) 1982, 1986 Regents of the University of California. * All rights reserved. The Berkeley software License Agreement diff --git a/lib/libstdc/sys/trace.h b/lib/libstdc/sys/trace.h index 853b44d..94edc15 100644 --- a/lib/libstdc/sys/trace.h +++ b/lib/libstdc/sys/trace.h @@ -1,6 +1,7 @@ #ifndef _SYS_TRACE_H_ #define _SYS_TRACE_H_ + /* * Copyright (c) 1982, 1986 Regents of the University of California. * All rights reserved. The Berkeley software License Agreement diff --git a/lib/libstdc/sys/truncate.c b/lib/libstdc/sys/truncate.c index eee2615..89a690d 100644 --- a/lib/libstdc/sys/truncate.c +++ b/lib/libstdc/sys/truncate.c @@ -1,3 +1,4 @@ +#include #include #include diff --git a/lib/libstdc/sys/ttychars.h b/lib/libstdc/sys/ttychars.h index 551e91c..f7d6f25 100644 --- a/lib/libstdc/sys/ttychars.h +++ b/lib/libstdc/sys/ttychars.h @@ -1,6 +1,7 @@ #ifndef _SYS_TTYCHARS_H_ #define _SYS_TTYCHARS_H_ + /* * Copyright (c) 1982, 1986 Regents of the University of California. * All rights reserved. The Berkeley software License Agreement diff --git a/lib/libstdc/sys/ttydev.h b/lib/libstdc/sys/ttydev.h index eea7e5c..5bc5b5c 100644 --- a/lib/libstdc/sys/ttydev.h +++ b/lib/libstdc/sys/ttydev.h @@ -1,6 +1,7 @@ #ifndef _SYS_TTYDEV_H_ #define _SYS_TTYDEV_H_ + /* * Copyright (c) 1982, 1986 Regents of the University of California. * All rights reserved. The Berkeley software License Agreement diff --git a/lib/libstdc/sys/types.h b/lib/libstdc/sys/types.h index c28404b..668369d 100644 --- a/lib/libstdc/sys/types.h +++ b/lib/libstdc/sys/types.h @@ -1,6 +1,8 @@ #ifndef _SYS_TYPES_H_ #define _SYS_TYPES_H_ +#include + /* * Copyright (c) 1982, 1986 Regents of the University of California. * All rights reserved. The Berkeley software License Agreement diff --git a/lib/libstdc/sys/umask.c b/lib/libstdc/sys/umask.c index c598614..4c9753b 100644 --- a/lib/libstdc/sys/umask.c +++ b/lib/libstdc/sys/umask.c @@ -1,3 +1,4 @@ +#include #include int umask(n) int n; { diff --git a/lib/libstdc/sys/umount.c b/lib/libstdc/sys/umount.c index 791e1c3..37bab9a 100644 --- a/lib/libstdc/sys/umount.c +++ b/lib/libstdc/sys/umount.c @@ -1,3 +1,4 @@ +#include #include int umount(s) char *s; { diff --git a/lib/libstdc/sys/un.h b/lib/libstdc/sys/un.h index 7d1dce3..dadb71f 100644 --- a/lib/libstdc/sys/un.h +++ b/lib/libstdc/sys/un.h @@ -1,6 +1,7 @@ #ifndef _SYS_UN_H_ #define _SYS_UN_H_ + /* * Copyright (c) 1982, 1986 Regents of the University of California. * All rights reserved. The Berkeley software License Agreement diff --git a/lib/libstdc/sys/unlink.c b/lib/libstdc/sys/unlink.c index d37dfff..4f84696 100644 --- a/lib/libstdc/sys/unlink.c +++ b/lib/libstdc/sys/unlink.c @@ -1,3 +1,4 @@ +#include #include int unlink(s) char *s; { diff --git a/lib/libstdc/sys/utimes.c b/lib/libstdc/sys/utimes.c index 5edd053..46c4dcc 100644 --- a/lib/libstdc/sys/utimes.c +++ b/lib/libstdc/sys/utimes.c @@ -1,3 +1,4 @@ +#include #include int utimes(f, t) char *f; struct timeval t[2]; { diff --git a/lib/libstdc/sys/vadvise.h b/lib/libstdc/sys/vadvise.h index ea748b0..0497277 100644 --- a/lib/libstdc/sys/vadvise.h +++ b/lib/libstdc/sys/vadvise.h @@ -1,6 +1,7 @@ #ifndef _SYS_VADVISE_H_ #define _SYS_VADVISE_H_ + /* * Copyright (c) 1982, 1986 Regents of the University of California. * All rights reserved. The Berkeley software License Agreement diff --git a/lib/libstdc/sys/vhangup.c b/lib/libstdc/sys/vhangup.c index fd3cd22..5765c8f 100644 --- a/lib/libstdc/sys/vhangup.c +++ b/lib/libstdc/sys/vhangup.c @@ -1,3 +1,4 @@ +#include #include void vhangup() { diff --git a/lib/libstdc/sys/vlimit.h b/lib/libstdc/sys/vlimit.h index 397b017..2e50d78 100644 --- a/lib/libstdc/sys/vlimit.h +++ b/lib/libstdc/sys/vlimit.h @@ -1,6 +1,7 @@ #ifndef _SYS_VLIMIT_H_ #define _SYS_VLIMIT_H_ + /* * Copyright (c) 1982, 1986 Regents of the University of California. * All rights reserved. The Berkeley software License Agreement diff --git a/lib/libstdc/sys/vm.h b/lib/libstdc/sys/vm.h index dc6f357..5e45e07 100644 --- a/lib/libstdc/sys/vm.h +++ b/lib/libstdc/sys/vm.h @@ -1,6 +1,7 @@ #ifndef _SYS_VM_H_ #define _SYS_VM_H_ + /* * Copyright (c) 1982, 1986 Regents of the University of California. * All rights reserved. The Berkeley software License Agreement diff --git a/lib/libstdc/sys/vmmac.h b/lib/libstdc/sys/vmmac.h index 51a61d2..d549261 100644 --- a/lib/libstdc/sys/vmmac.h +++ b/lib/libstdc/sys/vmmac.h @@ -1,6 +1,7 @@ #ifndef _SYS_VMMAC_H_ #define _SYS_VMMAC_H_ +#include #include #include diff --git a/lib/libstdc/sys/vmmeter.h b/lib/libstdc/sys/vmmeter.h index 29d80fe..743b92d 100644 --- a/lib/libstdc/sys/vmmeter.h +++ b/lib/libstdc/sys/vmmeter.h @@ -1,6 +1,7 @@ #ifndef _SYS_VMMETER_H_ #define _SYS_VMMETER_H_ + /* * Copyright (c) 1982, 1986 Regents of the University of California. * All rights reserved. The Berkeley software License Agreement diff --git a/lib/libstdc/sys/vmparam.h b/lib/libstdc/sys/vmparam.h index d3c09e1..64e9a4c 100644 --- a/lib/libstdc/sys/vmparam.h +++ b/lib/libstdc/sys/vmparam.h @@ -1,6 +1,7 @@ #ifndef _SYS_VMPARAM_H_ #define _SYS_VMPARAM_H_ + /* * Copyright (c) 1982, 1986 Regents of the University of California. * All rights reserved. The Berkeley software License Agreement diff --git a/lib/libstdc/sys/vmsystm.h b/lib/libstdc/sys/vmsystm.h index 2e1b69c..5454f91 100644 --- a/lib/libstdc/sys/vmsystm.h +++ b/lib/libstdc/sys/vmsystm.h @@ -1,6 +1,7 @@ #ifndef _SYS_VMSYSTM_H_ #define _SYS_VMSYSTM_H_ + /* * Copyright (c) 1982, 1986 Regents of the University of California. * All rights reserved. The Berkeley software License Agreement diff --git a/lib/libstdc/sys/vsio.h b/lib/libstdc/sys/vsio.h index b2637b1..19f291a 100644 --- a/lib/libstdc/sys/vsio.h +++ b/lib/libstdc/sys/vsio.h @@ -52,6 +52,7 @@ #define VSIOUSERWAIT _IO(V, 15) /* wait for user I/O completion */ #define VSIOWAITGO _IOW(V, 16, caddr_t) /* wait then go */ + #define VSIO_OFF 0 /* option off */ #define VSIO_ON 1 /* option on */ diff --git a/lib/libstdc/sys/vtimes.h b/lib/libstdc/sys/vtimes.h index cacc70a..25bbc9a 100644 --- a/lib/libstdc/sys/vtimes.h +++ b/lib/libstdc/sys/vtimes.h @@ -1,6 +1,7 @@ #ifndef _SYS_VTIMES_H_ #define _SYS_VTIMES_H_ + /* * Copyright (c) 1982, 1986 Regents of the University of California. * All rights reserved. The Berkeley software License Agreement diff --git a/lib/libstdc/sys/wait.c b/lib/libstdc/sys/wait.c index 1424284..402d6f8 100644 --- a/lib/libstdc/sys/wait.c +++ b/lib/libstdc/sys/wait.c @@ -1,3 +1,4 @@ +#include #include int wait(s) union wait *s; { diff --git a/lib/libstdc/sys/wait.h b/lib/libstdc/sys/wait.h index cbf0208..d7f73f5 100644 --- a/lib/libstdc/sys/wait.h +++ b/lib/libstdc/sys/wait.h @@ -1,6 +1,7 @@ #ifndef _SYS_WAIT_H_ #define _SYS_WAIT_H_ + /* * Copyright (c) 1982, 1986 Regents of the University of California. * All rights reserved. The Berkeley software License Agreement @@ -49,6 +50,7 @@ union wait { #define w_stopval w_S.w_Stopval #define w_stopsig w_S.w_Stopsig + #define WSTOPPED 0177 /* value of s.stopval if process is stopped */ /* diff --git a/lib/libstdc/sys/wait3.c b/lib/libstdc/sys/wait3.c index 369b6eb..afb5103 100644 --- a/lib/libstdc/sys/wait3.c +++ b/lib/libstdc/sys/wait3.c @@ -1,3 +1,4 @@ +#include #include #include diff --git a/lib/libstdc/sys/write.c b/lib/libstdc/sys/write.c index 9a0083e..7e63c35 100644 --- a/lib/libstdc/sys/write.c +++ b/lib/libstdc/sys/write.c @@ -1,3 +1,4 @@ +#include #include int write(f, b, l) int f; char *b; int l; { diff --git a/lib/libstdc/sys/writev.c b/lib/libstdc/sys/writev.c index 1dc59a7..4ac1f50 100644 --- a/lib/libstdc/sys/writev.c +++ b/lib/libstdc/sys/writev.c @@ -1,3 +1,4 @@ +#include #include int writev(f, v, l) int f; struct iovec *v; int l; { diff --git a/lib/libstdc/syscall.h b/lib/libstdc/syscall.h index 7e99388..b8ecd28 100644 --- a/lib/libstdc/syscall.h +++ b/lib/libstdc/syscall.h @@ -1,6 +1,7 @@ #ifndef _SYSCALL_H_ #define _SYSCALL_H_ + /* * Copyright (c) 1980 Regents of the University of California. * All rights reserved. The Berkeley software License Agreement diff --git a/lib/libstdc/sysexits.h b/lib/libstdc/sysexits.h index 9382f44..75bd95d 100644 --- a/lib/libstdc/sysexits.h +++ b/lib/libstdc/sysexits.h @@ -1,6 +1,7 @@ #ifndef _SYSEXITS_H_ #define _SYSEXITS_H_ + /* ** SYSEXITS.H -- Exit status codes for system programs. ** diff --git a/lib/libstdc/t.sh b/lib/libstdc/t.sh new file mode 100755 index 0000000..72a723b --- /dev/null +++ b/lib/libstdc/t.sh @@ -0,0 +1,93 @@ +#!/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 <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) + +#endif +EOF +find . -name '*.h' -print |\ +sed -e 's:\./::' |\ +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 +done +rm -f temp.c +tsort b + +# sorting/prettifying +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 a + mv a xx01 + cat xx* >$i + fi + ../../xify/newline <$i >a + mv a $i +done diff --git a/lib/libstdc/time.h b/lib/libstdc/time.h index a835945..f3fc602 100644 --- a/lib/libstdc/time.h +++ b/lib/libstdc/time.h @@ -1,6 +1,7 @@ #ifndef _TIME_H_ #define _TIME_H_ + /* time.h 1.1 85/03/13 */ /* @@ -29,13 +30,11 @@ struct tm { #endif #endif -#ifndef KERNEL /* gen/ctime.c */ char *ctime __P((time_t *t)); struct tm *localtime __P((time_t *tim)); struct tm *gmtime __P((time_t *tim)); char *asctime __P((struct tm *t)); int dysize __P((int y)); -#endif #endif diff --git a/lib/libstdc/ttyent.h b/lib/libstdc/ttyent.h index 1c6f8e3..41e3de9 100644 --- a/lib/libstdc/ttyent.h +++ b/lib/libstdc/ttyent.h @@ -1,6 +1,7 @@ #ifndef _TTYENT_H_ #define _TTYENT_H_ + /* * Copyright (c) 1983 Regents of the University of California. * All rights reserved. The Berkeley software License Agreement @@ -32,7 +33,6 @@ struct ttyent { /* see getttyent(3) */ #endif #endif -#ifndef KERNEL /* gen/getttyent.c */ int setttyent __P((void)); int endttyent __P((void)); @@ -40,6 +40,5 @@ struct ttyent *getttyent __P((void)); /* gen/getttynam.c */ struct ttyent *getttynam __P((char *tty)); -#endif #endif diff --git a/lib/libstdc/u.sh b/lib/libstdc/u.sh new file mode 100644 index 0000000..06d3a60 --- /dev/null +++ b/lib/libstdc/u.sh @@ -0,0 +1,10 @@ +#!/bin/sh + +find . -name '*.c' -print |\ +sed -e 's:\./::' |\ +while read i +do + echo "i=$i" + echo "===$i===" >&2 + gcc -nostdinc -I. -Dvax $i +done diff --git a/lib/libstdc/utmp.h b/lib/libstdc/utmp.h index a0ba337..31edcd0 100644 --- a/lib/libstdc/utmp.h +++ b/lib/libstdc/utmp.h @@ -1,6 +1,7 @@ #ifndef _UTMP_H_ #define _UTMP_H_ + /* * Copyright (c) 1980 Regents of the University of California. * All rights reserved. The Berkeley software License Agreement @@ -29,7 +30,6 @@ struct utmp { #endif #endif -#ifndef KERNEL /* gen/getlogin.c */ char *getlogin __P((void)); @@ -38,6 +38,5 @@ char *ttyname __P((int f)); /* gen/ttyslot.c */ int ttyslot __P((void)); -#endif #endif diff --git a/lib/libstdc/varargs.h b/lib/libstdc/varargs.h index fe57a5d..caa6616 100644 --- a/lib/libstdc/varargs.h +++ b/lib/libstdc/varargs.h @@ -1,6 +1,7 @@ #ifndef _VARARGS_H_ #define _VARARGS_H_ + /* varargs.h 4.1 83/05/03 */ typedef char *va_list; diff --git a/lib/libstdc/vax/cons.h b/lib/libstdc/vax/cons.h index f674f43..ce8e685 100644 --- a/lib/libstdc/vax/cons.h +++ b/lib/libstdc/vax/cons.h @@ -1,6 +1,7 @@ #ifndef _VAX_CONS_H_ #define _VAX_CONS_H_ + /* * Copyright (c) 1982, 1986 Regents of the University of California. * All rights reserved. The Berkeley software License Agreement diff --git a/lib/libstdc/vax/crl.h b/lib/libstdc/vax/crl.h index 53ff4a7..8c7ea0d 100644 --- a/lib/libstdc/vax/crl.h +++ b/lib/libstdc/vax/crl.h @@ -1,6 +1,7 @@ #ifndef _VAX_CRL_H_ #define _VAX_CRL_H_ + /* * @(#)crl.h 7.1 (Berkeley) 6/5/86 */ @@ -72,6 +73,7 @@ #define CRL_OPEN 1 #define CRL_BUSY 2 + #define CRLDS_BITS \ "\20\20WDE\17CHE\16WL\15SKTO\14SPE\13WGE\12VC\11DSE\ \10DT\7HS\6CO\5HO\4BH\3STC\2STB\1STA" diff --git a/lib/libstdc/vax/flp.h b/lib/libstdc/vax/flp.h index ba14da6..2577524 100644 --- a/lib/libstdc/vax/flp.h +++ b/lib/libstdc/vax/flp.h @@ -1,6 +1,7 @@ #ifndef _VAX_FLP_H_ #define _VAX_FLP_H_ + /* * Copyright (c) 1982, 1986 Regents of the University of California. * All rights reserved. The Berkeley software License Agreement diff --git a/lib/libstdc/vax/inline/inline.h b/lib/libstdc/vax/inline/inline.h index 143ce39..0a6fb87 100644 --- a/lib/libstdc/vax/inline/inline.h +++ b/lib/libstdc/vax/inline/inline.h @@ -1,6 +1,7 @@ #ifndef _VAX_INLINE_INLINE_H_ #define _VAX_INLINE_INLINE_H_ + /* * Copyright (c) 1984, 1986 Regents of the University of California. * All rights reserved. The Berkeley software License Agreement diff --git a/lib/libstdc/vax/mscp.h b/lib/libstdc/vax/mscp.h index 9bd3546..1c77cc8 100644 --- a/lib/libstdc/vax/mscp.h +++ b/lib/libstdc/vax/mscp.h @@ -15,6 +15,7 @@ * Definitions for the Mass Storage Control Protocol */ + /* * Control message opcodes */ @@ -40,6 +41,7 @@ #define M_OP_ACPTH 0102 /* Access path attention message */ #define M_OP_END 0200 /* End message flag */ + /* * Generic command modifiers */ @@ -92,6 +94,7 @@ */ #define M_MD_PRIMR 0000001 /* Primary replacement block */ + /* * End message flags */ @@ -100,6 +103,7 @@ #define M_EF_ERLOG 0040 /* Error log generated */ #define M_EF_SEREX 0020 /* Serious exception */ + /* * Controller flags */ @@ -111,6 +115,7 @@ #define M_CF_SHADW 0002 /* Shadowing */ #define M_CF_576 0001 /* 576 byte sectors */ + /* * Unit flags */ @@ -126,6 +131,7 @@ #define M_UF_CMPWR 0000002 /* Compare writes */ #define M_UF_CMPRD 0000001 /* Compare reads */ + /* * Status codes */ @@ -270,6 +276,7 @@ struct mscp { #define mscp_cntcmdl mscp_usefrac #define mscp_cntid mscp_unitid + /* * Error Log message format codes */ @@ -316,4 +323,5 @@ struct mslg { #define mslg_busaddr mslg_unitid.val[0] #define mslg_sdecyl mslg_group + #endif diff --git a/lib/libstdc/vax/mtpr.h b/lib/libstdc/vax/mtpr.h index 669380c..1298614 100644 --- a/lib/libstdc/vax/mtpr.h +++ b/lib/libstdc/vax/mtpr.h @@ -1,6 +1,7 @@ #ifndef _VAX_MTPR_H_ #define _VAX_MTPR_H_ + /* * Copyright (c) 1982, 1986 Regents of the University of California. * All rights reserved. The Berkeley software License Agreement diff --git a/lib/libstdc/vax/psl.h b/lib/libstdc/vax/psl.h index 5f19c21..6fd4988 100644 --- a/lib/libstdc/vax/psl.h +++ b/lib/libstdc/vax/psl.h @@ -1,6 +1,7 @@ #ifndef _VAX_PSL_H_ #define _VAX_PSL_H_ + /* * Copyright (c) 1982, 1986 Regents of the University of California. * All rights reserved. The Berkeley software License Agreement diff --git a/lib/libstdc/vax/pte.h b/lib/libstdc/vax/pte.h index 40867c8..39e766c 100644 --- a/lib/libstdc/vax/pte.h +++ b/lib/libstdc/vax/pte.h @@ -1,6 +1,7 @@ #ifndef _VAX_PTE_H_ #define _VAX_PTE_H_ + /* * Copyright (c) 1982, 1986 Regents of the University of California. * All rights reserved. The Berkeley software License Agreement diff --git a/lib/libstdc/vax/reg.h b/lib/libstdc/vax/reg.h index a6c2420..80486c8 100644 --- a/lib/libstdc/vax/reg.h +++ b/lib/libstdc/vax/reg.h @@ -1,6 +1,7 @@ #ifndef _VAX_REG_H_ #define _VAX_REG_H_ + /* * Copyright (c) 1982, 1986 Regents of the University of California. * All rights reserved. The Berkeley software License Agreement diff --git a/lib/libstdc/vax/rpb.h b/lib/libstdc/vax/rpb.h index f5342a9..3dbd1af 100644 --- a/lib/libstdc/vax/rpb.h +++ b/lib/libstdc/vax/rpb.h @@ -1,6 +1,7 @@ #ifndef _VAX_RPB_H_ #define _VAX_RPB_H_ + /* * Copyright (c) 1982, 1986 Regents of the University of California. * All rights reserved. The Berkeley software License Agreement diff --git a/lib/libstdc/vax/rsp.h b/lib/libstdc/vax/rsp.h index eba53ae..f435eb0 100644 --- a/lib/libstdc/vax/rsp.h +++ b/lib/libstdc/vax/rsp.h @@ -1,6 +1,7 @@ #ifndef _VAX_RSP_H_ #define _VAX_RSP_H_ +#include #include /* @@ -88,4 +89,5 @@ struct packet { */ #define TUSW_MRSP 010 /* use Modified RSP */ + #endif diff --git a/lib/libstdc/vax/scb.h b/lib/libstdc/vax/scb.h index e497212..82c00cb 100644 --- a/lib/libstdc/vax/scb.h +++ b/lib/libstdc/vax/scb.h @@ -1,6 +1,7 @@ #ifndef _VAX_SCB_H_ #define _VAX_SCB_H_ + /* * Copyright (c) 1982, 1986 Regents of the University of California. * All rights reserved. The Berkeley software License Agreement diff --git a/lib/libstdc/vax/tmscp.h b/lib/libstdc/vax/tmscp.h index 87c3f02..c6f152b 100644 --- a/lib/libstdc/vax/tmscp.h +++ b/lib/libstdc/vax/tmscp.h @@ -325,4 +325,5 @@ struct mslg { #define mslg_busaddr mslg_unitid.val[0] #define mslg_sdecyl mslg_group + #endif diff --git a/lib/libstdc/vax/trap.h b/lib/libstdc/vax/trap.h index 23ec8f6..1db5dd8 100644 --- a/lib/libstdc/vax/trap.h +++ b/lib/libstdc/vax/trap.h @@ -1,6 +1,7 @@ #ifndef _VAX_TRAP_H_ #define _VAX_TRAP_H_ + /* * Copyright (c) 1982, 1986 Regents of the University of California. * All rights reserved. The Berkeley software License Agreement diff --git a/lib/libstdc/vaxif/if_cssreg.h b/lib/libstdc/vaxif/if_cssreg.h index e013692..b8b0bb3 100644 --- a/lib/libstdc/vaxif/if_cssreg.h +++ b/lib/libstdc/vaxif/if_cssreg.h @@ -61,6 +61,7 @@ struct cssdevice { #define CSS_INBITS \ "\20\20ERR\17NXM\16ATTN\15MAINT\14EOM\13IMPNR\12RLE\11CYCLE\10RDY\7IE\6XBA17\5XBA16\4WE\3HRDY\2CLR\1GO" + /* * Output Control Status Register */ diff --git a/lib/libstdc/vaxif/if_ddnreg.h b/lib/libstdc/vaxif/if_ddnreg.h index 58d38fb..2b55859 100644 --- a/lib/libstdc/vaxif/if_ddnreg.h +++ b/lib/libstdc/vaxif/if_ddnreg.h @@ -5,6 +5,7 @@ /* @(#)if_ddnreg.h 7.1 (Berkeley) 6/5/86 */ + /************************************************************************\ ________________________________________________________ @@ -31,6 +32,7 @@ part of this software must include a copy of ACC's copyright notice. + File: if_ddnreg.h diff --git a/lib/libstdc/vaxif/if_ddnvar.h b/lib/libstdc/vaxif/if_ddnvar.h index 4e950b5..b586fd2 100644 --- a/lib/libstdc/vaxif/if_ddnvar.h +++ b/lib/libstdc/vaxif/if_ddnvar.h @@ -1,8 +1,11 @@ #ifndef _VAXIF_IF_DDNVAR_H_ #define _VAXIF_IF_DDNVAR_H_ + /* @(#)if_ddnvar.h 7.1 (Berkeley) 6/5/86 */ + + /************************************************************************\ ________________________________________________________ @@ -29,6 +32,7 @@ part of this software must include a copy of ACC's copyright notice. + File: if_ddnvar.h diff --git a/lib/libstdc/vaxif/if_dmc.h b/lib/libstdc/vaxif/if_dmc.h index 497ba58..4c70288 100644 --- a/lib/libstdc/vaxif/if_dmc.h +++ b/lib/libstdc/vaxif/if_dmc.h @@ -1,6 +1,7 @@ #ifndef _VAXIF_IF_DMC_H_ #define _VAXIF_IF_DMC_H_ + /* * Copyright (c) 1982, 1986 Regents of the University of California. * All rights reserved. The Berkeley software License Agreement diff --git a/lib/libstdc/vaxif/if_ecreg.h b/lib/libstdc/vaxif/if_ecreg.h index 8347d2e..e7a6e5e 100644 --- a/lib/libstdc/vaxif/if_ecreg.h +++ b/lib/libstdc/vaxif/if_ecreg.h @@ -1,6 +1,7 @@ #ifndef _VAXIF_IF_ECREG_H_ #define _VAXIF_IF_ECREG_H_ + /* * Copyright (c) 1982, 1986 Regents of the University of California. * All rights reserved. The Berkeley software License Agreement diff --git a/lib/libstdc/vaxif/if_enreg.h b/lib/libstdc/vaxif/if_enreg.h index 61936ac..370e4c6 100644 --- a/lib/libstdc/vaxif/if_enreg.h +++ b/lib/libstdc/vaxif/if_enreg.h @@ -1,6 +1,7 @@ #ifndef _VAXIF_IF_ENREG_H_ #define _VAXIF_IF_ENREG_H_ + /* * Copyright (c) 1982, 1986 Regents of the University of California. * All rights reserved. The Berkeley software License Agreement diff --git a/lib/libstdc/vaxif/if_exreg.h b/lib/libstdc/vaxif/if_exreg.h index 05c3c69..3db9c4e 100644 --- a/lib/libstdc/vaxif/if_exreg.h +++ b/lib/libstdc/vaxif/if_exreg.h @@ -11,6 +11,7 @@ * @(#)if_exreg.h 7.1 (Berkeley) 6/5/86 */ + struct exdevice { char xd_porta; /* write on porta resets EXOS */ char xd_pad_a; @@ -252,4 +253,5 @@ struct confmsg { /*80*/ }; + #endif diff --git a/lib/libstdc/vaxif/if_hdhreg.h b/lib/libstdc/vaxif/if_hdhreg.h index 8cf0b5c..ba22520 100644 --- a/lib/libstdc/vaxif/if_hdhreg.h +++ b/lib/libstdc/vaxif/if_hdhreg.h @@ -5,6 +5,7 @@ /* @(#)if_hdhreg.h 7.1 (Berkeley) 6/5/86 */ + /* $Header$ */ /* diff --git a/lib/libstdc/vaxif/if_hy.h b/lib/libstdc/vaxif/if_hy.h index 39c0d7a..07e39aa 100644 --- a/lib/libstdc/vaxif/if_hy.h +++ b/lib/libstdc/vaxif/if_hy.h @@ -50,6 +50,7 @@ * */ + /* * Structure of a HYPERchannel adapter header */ @@ -64,6 +65,7 @@ struct hy_hdr { short hyh_type; /* record type */ }; + #define hyh_to hyh_uto.hyh_addr #define hyh_to_port hyh_uto.hyh_baddr[1] #define hyh_to_adapter hyh_uto.hyh_baddr[0] @@ -307,4 +309,5 @@ char *hy_state_names[] = { }; #endif + #endif diff --git a/lib/libstdc/vaxif/if_hyreg.h b/lib/libstdc/vaxif/if_hyreg.h index 638c087..26558f9 100644 --- a/lib/libstdc/vaxif/if_hyreg.h +++ b/lib/libstdc/vaxif/if_hyreg.h @@ -15,6 +15,7 @@ * */ + /* * Network Systems Corporation Hyperchannel interface * diff --git a/lib/libstdc/vaxif/if_ilreg.h b/lib/libstdc/vaxif/if_ilreg.h index da3e6e2..d1ae9ca 100644 --- a/lib/libstdc/vaxif/if_ilreg.h +++ b/lib/libstdc/vaxif/if_ilreg.h @@ -1,6 +1,7 @@ #ifndef _VAXIF_IF_ILREG_H_ #define _VAXIF_IF_ILREG_H_ + /* * Copyright (c) 1982, 1986 Regents of the University of California. * All rights reserved. The Berkeley software License Agreement diff --git a/lib/libstdc/vaxmba/hpreg.h b/lib/libstdc/vaxmba/hpreg.h index 36e7c00..4e4911f 100644 --- a/lib/libstdc/vaxmba/hpreg.h +++ b/lib/libstdc/vaxmba/hpreg.h @@ -1,6 +1,7 @@ #ifndef _VAXMBA_HPREG_H_ #define _VAXMBA_HPREG_H_ + /* * Copyright (c) 1982, 1986 Regents of the University of California. * All rights reserved. The Berkeley software License Agreement diff --git a/lib/libstdc/vaxmba/htreg.h b/lib/libstdc/vaxmba/htreg.h index 051b535..05ba096 100644 --- a/lib/libstdc/vaxmba/htreg.h +++ b/lib/libstdc/vaxmba/htreg.h @@ -1,6 +1,7 @@ #ifndef _VAXMBA_HTREG_H_ #define _VAXMBA_HTREG_H_ + /* * Copyright (c) 1982, 1986 Regents of the University of California. * All rights reserved. The Berkeley software License Agreement diff --git a/lib/libstdc/vaxmba/mtreg.h b/lib/libstdc/vaxmba/mtreg.h index 138326a..5be011b 100644 --- a/lib/libstdc/vaxmba/mtreg.h +++ b/lib/libstdc/vaxmba/mtreg.h @@ -1,6 +1,7 @@ #ifndef _VAXMBA_MTREG_H_ #define _VAXMBA_MTREG_H_ + /* * Copyright (c) 1982, 1986 Regents of the University of California. * All rights reserved. The Berkeley software License Agreement diff --git a/lib/libstdc/vaxuba/dhureg.h b/lib/libstdc/vaxuba/dhureg.h index ca629f6..e6d9f0b 100644 --- a/lib/libstdc/vaxuba/dhureg.h +++ b/lib/libstdc/vaxuba/dhureg.h @@ -1,6 +1,7 @@ #ifndef _VAXUBA_DHUREG_H_ #define _VAXUBA_DHUREG_H_ + /* * Copyright (c) 1982, 1986 Regents of the University of California. * All rights reserved. The Berkeley software License Agreement diff --git a/lib/libstdc/vaxuba/dmreg.h b/lib/libstdc/vaxuba/dmreg.h index c431b6f..42e4601 100644 --- a/lib/libstdc/vaxuba/dmreg.h +++ b/lib/libstdc/vaxuba/dmreg.h @@ -1,6 +1,7 @@ #ifndef _VAXUBA_DMREG_H_ #define _VAXUBA_DMREG_H_ + /* * Copyright (c) 1982, 1986 Regents of the University of California. * All rights reserved. The Berkeley software License Agreement diff --git a/lib/libstdc/vaxuba/dmzreg.h b/lib/libstdc/vaxuba/dmzreg.h index 79e74be..ba3c2dc 100644 --- a/lib/libstdc/vaxuba/dmzreg.h +++ b/lib/libstdc/vaxuba/dmzreg.h @@ -132,6 +132,7 @@ struct dmzdevice { #define DMZ_ON (DMZ_DTR|DMZ_RTS|DMZ_LCE) #define DMZ_OFF DMZ_LCE + /* bits in octet_tcc */ #define DMZ_HA 0140000 /* high address bits */ diff --git a/lib/libstdc/vaxuba/dzreg.h b/lib/libstdc/vaxuba/dzreg.h index cfb6e7b..9b4e3a1 100644 --- a/lib/libstdc/vaxuba/dzreg.h +++ b/lib/libstdc/vaxuba/dzreg.h @@ -1,6 +1,7 @@ #ifndef _VAXUBA_DZREG_H_ #define _VAXUBA_DZREG_H_ + /* * Copyright (c) 1982, 1986 Regents of the University of California. * All rights reserved. The Berkeley software License Agreement diff --git a/lib/libstdc/vaxuba/idcreg.h b/lib/libstdc/vaxuba/idcreg.h index 20799d6..ac46635 100644 --- a/lib/libstdc/vaxuba/idcreg.h +++ b/lib/libstdc/vaxuba/idcreg.h @@ -1,6 +1,7 @@ #ifndef _VAXUBA_IDCREG_H_ #define _VAXUBA_IDCREG_H_ + /* * Copyright (c) 1982, 1986 Regents of the University of California. * All rights reserved. The Berkeley software License Agreement diff --git a/lib/libstdc/vaxuba/npreg.h b/lib/libstdc/vaxuba/npreg.h index 67afa38..8dca577 100644 --- a/lib/libstdc/vaxuba/npreg.h +++ b/lib/libstdc/vaxuba/npreg.h @@ -21,6 +21,7 @@ * Specification. */ + #define NNPCNN 4 /* Number of connections per board */ #define NPUNIT(a) ((minor(a) >> 4) & 0x0F) #define NPCONN(a) ((minor(a)) & 0x03) @@ -137,10 +138,12 @@ typedef unsigned short unsign16; /* 16 bit unsigned value */ typedef unsigned unsign32; /* 32 bit unsigned value */ typedef long paddr_t; /* Physical addresses */ + /* * Tunables */ + #define NUMCQE 40 /* Number of CQE's per board */ /* Host configuration word in Status Block */ diff --git a/lib/libstdc/vaxuba/pdma.h b/lib/libstdc/vaxuba/pdma.h index 7517cbb..6213b7a 100644 --- a/lib/libstdc/vaxuba/pdma.h +++ b/lib/libstdc/vaxuba/pdma.h @@ -1,6 +1,7 @@ #ifndef _VAXUBA_PDMA_H_ #define _VAXUBA_PDMA_H_ + /* * Copyright (c) 1982, 1986 Regents of the University of California. * All rights reserved. The Berkeley software License Agreement diff --git a/lib/libstdc/vaxuba/psreg.h b/lib/libstdc/vaxuba/psreg.h index dc916df..7d449c3 100644 --- a/lib/libstdc/vaxuba/psreg.h +++ b/lib/libstdc/vaxuba/psreg.h @@ -11,6 +11,7 @@ * @(#)psreg.h 7.1 (Berkeley) 6/5/86 */ + /* * The Real Nitty Gritty Device Registers */ diff --git a/lib/libstdc/vaxuba/tmscpreg.h b/lib/libstdc/vaxuba/tmscpreg.h index e7b79b1..f1c155c 100644 --- a/lib/libstdc/vaxuba/tmscpreg.h +++ b/lib/libstdc/vaxuba/tmscpreg.h @@ -1,6 +1,7 @@ #ifndef _VAXUBA_TMSCPREG_H_ #define _VAXUBA_TMSCPREG_H_ + /* @(#)tmscpreg.h 7.1 (Berkeley) 6/5/86 */ /* @(#)tmscpreg.h 1.1 11/2/84 84/09/25 */ diff --git a/lib/libstdc/vaxuba/tsreg.h b/lib/libstdc/vaxuba/tsreg.h index ea0e5c4..20c7802 100644 --- a/lib/libstdc/vaxuba/tsreg.h +++ b/lib/libstdc/vaxuba/tsreg.h @@ -127,6 +127,7 @@ struct ts_sts { #define TSXS3_BITS \ "\10\10LMX\7OPI\6REV\5CRF\4DCK\3NOI\2LXS\1RIB" + /* command message */ struct ts_cmd { u_short c_cmd; /* command */ @@ -162,6 +163,7 @@ struct ts_char { u_short char_mode; /* characteristics */ }; + /* characteristics */ #define TS_ESS 0200 /* enable skip tape marks stop */ #define TS_ENB 0100 /* ??? */ diff --git a/lib/libstdc/vaxuba/ubareg.h b/lib/libstdc/vaxuba/ubareg.h index edc16a2..f67c675 100644 --- a/lib/libstdc/vaxuba/ubareg.h +++ b/lib/libstdc/vaxuba/ubareg.h @@ -143,6 +143,8 @@ struct uba_regs { #define UBAPURGE(uba, bdp) #endif + + /* uba_mr[] */ #define UBAMR_MRV 0x80000000 /* map register valid */ #define UBAMR_BO 0x02000000 /* byte offset bit */ @@ -193,4 +195,5 @@ struct uba_regs { */ #define ubdevreg(addr) (0760000|((addr)&017777)) + #endif diff --git a/lib/libstdc/vaxuba/udareg.h b/lib/libstdc/vaxuba/udareg.h index b659ce3..80890e8 100644 --- a/lib/libstdc/vaxuba/udareg.h +++ b/lib/libstdc/vaxuba/udareg.h @@ -1,6 +1,7 @@ #ifndef _VAXUBA_UDAREG_H_ #define _VAXUBA_UDAREG_H_ + /* * Copyright (c) 1982, 1986 Regents of the University of California. * All rights reserved. The Berkeley software License Agreement @@ -30,6 +31,7 @@ struct udadevice { #define UDA_PI 0000001 /* host requests adapter purge interrupts */ #define UDA_GO 0000001 /* start operation, after init */ + /* * UDA Communications Area */ diff --git a/lib/libstdc/vaxuba/uureg.h b/lib/libstdc/vaxuba/uureg.h index 29fbb97..46057f6 100644 --- a/lib/libstdc/vaxuba/uureg.h +++ b/lib/libstdc/vaxuba/uureg.h @@ -1,6 +1,7 @@ #ifndef _VAXUBA_UUREG_H_ #define _VAXUBA_UUREG_H_ + /* * Copyright (c) 1982, 1986 Regents of the University of California. * All rights reserved. The Berkeley software License Agreement @@ -9,6 +10,7 @@ * @(#)uureg.h 7.1 (Berkeley) 6/5/86 */ + /* * DL11-E/DL11-W UNIBUS (for TU58) controller registers */ @@ -37,4 +39,5 @@ struct uudevice { #define UUDB_DMASK 0x00ff /* data mask (send and receive data) */ + #endif diff --git a/lib/libstdc/vaxuba/vsreg.h b/lib/libstdc/vaxuba/vsreg.h index aaec333..6e41425 100644 --- a/lib/libstdc/vaxuba/vsreg.h +++ b/lib/libstdc/vaxuba/vsreg.h @@ -213,6 +213,7 @@ struct vs_fparm{ #define vs_cxr vs_csr5 #define vs_cyr vs_csr6 + /* * CSR 7 - Interrupt vector in fiber cable machines */ diff --git a/lib/libstdc/vfont.h b/lib/libstdc/vfont.h index 62dd57c..85b9e7c 100644 --- a/lib/libstdc/vfont.h +++ b/lib/libstdc/vfont.h @@ -1,6 +1,7 @@ #ifndef _VFONT_H_ #define _VFONT_H_ + /* * Copyright (c) 1980 Regents of the University of California. * All rights reserved. The Berkeley software License Agreement -- 2.34.1