Revert include, lib/libc, sys to 0126836 except for conversion scripts n.sh etc
authorNick Downing <downing.nick@gmail.com>
Tue, 24 Jan 2017 07:56:33 +0000 (18:56 +1100)
committerNick Downing <downing.nick@gmail.com>
Tue, 24 Jan 2017 07:56:33 +0000 (18:56 +1100)
566 files changed:
include/Makefile
include/a.out.h
include/ar.h
include/arpa/ftp.h
include/arpa/inet.h
include/arpa/nameser.h
include/arpa/telnet.h
include/arpa/tftp.h
include/assert.h
include/compat-4.1.h [deleted file]
include/compat-sys5.h [deleted file]
include/ctype.h
include/disktab.h
include/fstab.h
include/gen.h
include/grp.h
include/inet.h [deleted file]
include/lastlog.h
include/math.h
include/memory.h
include/mtab.h
include/ndbm.h
include/net.h
include/netdb.h
include/ns.h [deleted file]
include/pcc.h
include/protocols/dumprestore.h
include/protocols/routed.h
include/protocols/rwhod.h
include/protocols/talkd.h
include/protocols/timed.h
include/pwd.h
include/ranlib.h
include/resolv.h
include/setjmp.h
include/sgtty.h
include/stab.h
include/stdio.h
include/string.h
include/strings.h
include/struct.h
include/sys.h [deleted file]
include/syscall.h
include/sysexits.h
include/time.h
include/ttyent.h
include/utmp.h
include/varargs.h
include/vfont.h
lib/libc/Makefile
lib/libc/compat-4.1/Makefile
lib/libc/compat-4.1/ftime.c
lib/libc/compat-4.1/getpw.c
lib/libc/compat-4.1/gtty.c
lib/libc/compat-4.1/nice.c
lib/libc/compat-4.1/pause.c
lib/libc/compat-4.1/rand.c
lib/libc/compat-4.1/stty.c
lib/libc/compat-4.1/tell.c
lib/libc/compat-4.1/times.c
lib/libc/compat-4.1/utime.c
lib/libc/compat-4.1/vlimit.c
lib/libc/compat-4.1/vtimes.c
lib/libc/compat-sys5/Makefile
lib/libc/compat-sys5/getopt.c
lib/libc/compat-sys5/memccpy.c
lib/libc/compat-sys5/memchr.c
lib/libc/compat-sys5/memcmp.c
lib/libc/compat-sys5/memcpy.c
lib/libc/compat-sys5/memset.c
lib/libc/compat-sys5/strcatn.c
lib/libc/compat-sys5/strchr.c
lib/libc/compat-sys5/strcmpn.c
lib/libc/compat-sys5/strcpyn.c
lib/libc/compat-sys5/strcspn.c
lib/libc/compat-sys5/strpbrk.c
lib/libc/compat-sys5/strrchr.c
lib/libc/compat-sys5/strspn.c
lib/libc/compat-sys5/strtok.c
lib/libc/compat-sys5/tmpnam.c
lib/libc/gen/Makefile
lib/libc/gen/_setjmp.c
lib/libc/gen/abort.c
lib/libc/gen/abs.c
lib/libc/gen/alarm.c
lib/libc/gen/atof.c
lib/libc/gen/atoi.c
lib/libc/gen/atol.c
lib/libc/gen/bcmp.c
lib/libc/gen/bcopy.c
lib/libc/gen/bzero.c
lib/libc/gen/calloc.c
lib/libc/gen/closedir.c
lib/libc/gen/crypt.c
lib/libc/gen/ctime.c
lib/libc/gen/ctype_.c
lib/libc/gen/disktab.c
lib/libc/gen/ecvt.c
lib/libc/gen/errlst.c
lib/libc/gen/execvp.c
lib/libc/gen/fakcu.c
lib/libc/gen/ffs.c
lib/libc/gen/frexp.c
lib/libc/gen/fstab.c
lib/libc/gen/gcvt.c
lib/libc/gen/getenv.c
lib/libc/gen/getgrent.c
lib/libc/gen/getgrgid.c
lib/libc/gen/getgrnam.c
lib/libc/gen/getlogin.c
lib/libc/gen/getpass.c
lib/libc/gen/getpwent.c
lib/libc/gen/getpwnamuid.c
lib/libc/gen/getttyent.c
lib/libc/gen/getttynam.c
lib/libc/gen/getusershell.c
lib/libc/gen/getwd.c
lib/libc/gen/index.c
lib/libc/gen/initgroups.c
lib/libc/gen/insque.c
lib/libc/gen/ldexp.c
lib/libc/gen/malloc.c
lib/libc/gen/mkstemp.c
lib/libc/gen/mktemp.c
lib/libc/gen/modf.c
lib/libc/gen/ndbm.c
lib/libc/gen/nlist.c
lib/libc/gen/opendir.c
lib/libc/gen/perror.c
lib/libc/gen/psignal.c
lib/libc/gen/qsort.c
lib/libc/gen/random.c
lib/libc/gen/readdir.c
lib/libc/gen/regex.c
lib/libc/gen/remque.c
lib/libc/gen/rindex.c
lib/libc/gen/scandir.c
lib/libc/gen/seekdir.c
lib/libc/gen/setegid.c
lib/libc/gen/seteuid.c
lib/libc/gen/setgid.c
lib/libc/gen/setjmp.c
lib/libc/gen/setjmperr.c
lib/libc/gen/setrgid.c
lib/libc/gen/setruid.c
lib/libc/gen/setuid.c
lib/libc/gen/siginterrupt.c
lib/libc/gen/siglist.c
lib/libc/gen/signal.c
lib/libc/gen/sleep.c
lib/libc/gen/strcat.c
lib/libc/gen/strcmp.c
lib/libc/gen/strcpy.c
lib/libc/gen/strlen.c
lib/libc/gen/strncat.c
lib/libc/gen/strncmp.c
lib/libc/gen/strncpy.c
lib/libc/gen/swab.c
lib/libc/gen/syslog.c
lib/libc/gen/system.c
lib/libc/gen/telldir.c
lib/libc/gen/time.c
lib/libc/gen/timezone.c
lib/libc/gen/ttyname.c
lib/libc/gen/ttyslot.c
lib/libc/gen/ualarm.c
lib/libc/gen/usleep.c
lib/libc/gen/valloc.c
lib/libc/inet/Makefile
lib/libc/inet/inet_addr.c
lib/libc/inet/inet_lnaof.c
lib/libc/inet/inet_makeaddr.c
lib/libc/inet/inet_netof.c
lib/libc/inet/inet_network.c
lib/libc/inet/inet_ntoa.c
lib/libc/linux/Makefile [deleted file]
lib/libc/linux/csu/Makefile [deleted file]
lib/libc/linux/csu/crt0.c [deleted file]
lib/libc/linux/gen/Makefile [deleted file]
lib/libc/linux/gen/abort.c [deleted file]
lib/libc/linux/gen/modf.c [deleted file]
lib/libc/linux/sys/Makefile [deleted file]
lib/libc/linux/sys/_exit.c [deleted file]
lib/libc/linux/sys/close.c [deleted file]
lib/libc/linux/sys/fstat.c [deleted file]
lib/libc/linux/sys/getpagesize.c [deleted file]
lib/libc/linux/sys/isatty.c [deleted file]
lib/libc/linux/sys/lseek.c [deleted file]
lib/libc/linux/sys/read.c [deleted file]
lib/libc/linux/sys/readv.c [deleted file]
lib/libc/linux/sys/sbrk.c [deleted file]
lib/libc/linux/sys/vopen.c [deleted file]
lib/libc/linux/sys/write.c [deleted file]
lib/libc/linux/sys/writev.c [deleted file]
lib/libc/net/Makefile
lib/libc/net/getnetbyaddr.c
lib/libc/net/getnetbyname.c
lib/libc/net/getnetent.c
lib/libc/net/getproto.c
lib/libc/net/getprotoent.c
lib/libc/net/getprotoname.c
lib/libc/net/getservbyname.c
lib/libc/net/getservbyport.c
lib/libc/net/getservent.c
lib/libc/net/hosttable/Makefile
lib/libc/net/hosttable/gethostent.c
lib/libc/net/hosttable/gethostnamadr.c
lib/libc/net/htonl.c
lib/libc/net/htons.c
lib/libc/net/named/Makefile
lib/libc/net/named/gethostnamadr.c
lib/libc/net/named/sethostent.c
lib/libc/net/ntohl.c
lib/libc/net/ntohs.c
lib/libc/net/rcmd.c
lib/libc/net/res_comp.c
lib/libc/net/res_debug.c
lib/libc/net/res_init.c
lib/libc/net/res_mkquery.c
lib/libc/net/res_send.c
lib/libc/net/rexec.c
lib/libc/net/ruserpass.c
lib/libc/ns/Makefile
lib/libc/ns/ns_addr.c
lib/libc/ns/ns_ntoa.c
lib/libc/stdio/Makefile
lib/libc/stdio/clrerr.c
lib/libc/stdio/doprnt.c
lib/libc/stdio/doscan.c
lib/libc/stdio/exit.c
lib/libc/stdio/fdopen.c
lib/libc/stdio/fgetc.c
lib/libc/stdio/fgets.c
lib/libc/stdio/filbuf.c
lib/libc/stdio/findiop.c
lib/libc/stdio/flsbuf.c
lib/libc/stdio/fopen.c
lib/libc/stdio/fprintf.c
lib/libc/stdio/fputc.c
lib/libc/stdio/fputs.c
lib/libc/stdio/fread.c
lib/libc/stdio/freopen.c
lib/libc/stdio/fseek.c
lib/libc/stdio/ftell.c
lib/libc/stdio/fwrite.c
lib/libc/stdio/getchar.c
lib/libc/stdio/gets.c
lib/libc/stdio/getw.c
lib/libc/stdio/popen.c
lib/libc/stdio/printf.c
lib/libc/stdio/putchar.c
lib/libc/stdio/puts.c
lib/libc/stdio/putw.c
lib/libc/stdio/rew.c
lib/libc/stdio/scanf.c
lib/libc/stdio/setbuf.c
lib/libc/stdio/setbuffer.c
lib/libc/stdio/sibuf.c
lib/libc/stdio/sobuf.c
lib/libc/stdio/sprintf.c
lib/libc/stdio/strout.c
lib/libc/stdio/ungetc.c
lib/libc/stdio/vfprintf.c
lib/libc/stdio/vprintf.c
lib/libc/stdio/vsprintf.c
lib/libc/sys/Makefile
lib/libc/sys/_exit.c
lib/libc/sys/accept.c
lib/libc/sys/access.c
lib/libc/sys/acct.c
lib/libc/sys/adjtime.c
lib/libc/sys/bind.c
lib/libc/sys/brk.c
lib/libc/sys/chdir.c
lib/libc/sys/chmod.c
lib/libc/sys/chown.c
lib/libc/sys/chroot.c
lib/libc/sys/close.c
lib/libc/sys/connect.c
lib/libc/sys/creat.c
lib/libc/sys/dup.c
lib/libc/sys/dup2.c
lib/libc/sys/execl.c
lib/libc/sys/execle.c
lib/libc/sys/exect.c
lib/libc/sys/execv.c
lib/libc/sys/execve.c
lib/libc/sys/fchmod.c
lib/libc/sys/fchown.c
lib/libc/sys/fcntl.c
lib/libc/sys/flock.c
lib/libc/sys/fork.c
lib/libc/sys/fstat.c
lib/libc/sys/fsync.c
lib/libc/sys/ftruncate.c
lib/libc/sys/getdtablesize.c
lib/libc/sys/getegid.c
lib/libc/sys/geteuid.c
lib/libc/sys/getgid.c
lib/libc/sys/getgroups.c
lib/libc/sys/gethostid.c
lib/libc/sys/gethostname.c
lib/libc/sys/getitimer.c
lib/libc/sys/getpagesize.c
lib/libc/sys/getpeername.c
lib/libc/sys/getpgrp.c
lib/libc/sys/getpid.c
lib/libc/sys/getppid.c
lib/libc/sys/getpriority.c
lib/libc/sys/getrlimit.c
lib/libc/sys/getrusage.c
lib/libc/sys/getsockname.c
lib/libc/sys/getsockopt.c
lib/libc/sys/gettimeofday.c
lib/libc/sys/getuid.c
lib/libc/sys/ioctl.c
lib/libc/sys/isatty.c
lib/libc/sys/kill.c
lib/libc/sys/killpg.c
lib/libc/sys/link.c
lib/libc/sys/listen.c
lib/libc/sys/lseek.c
lib/libc/sys/lstat.c
lib/libc/sys/mkdir.c
lib/libc/sys/mknod.c
lib/libc/sys/mount.c
lib/libc/sys/open.c
lib/libc/sys/pipe.c
lib/libc/sys/profil.c
lib/libc/sys/ptrace.c
lib/libc/sys/quota.c
lib/libc/sys/read.c
lib/libc/sys/readlink.c
lib/libc/sys/readv.c
lib/libc/sys/reboot.c
lib/libc/sys/recv.c
lib/libc/sys/recvfrom.c
lib/libc/sys/recvmsg.c
lib/libc/sys/rename.c
lib/libc/sys/rmdir.c
lib/libc/sys/sbrk.c
lib/libc/sys/select.c
lib/libc/sys/send.c
lib/libc/sys/sendmsg.c
lib/libc/sys/sendto.c
lib/libc/sys/setgroups.c
lib/libc/sys/sethostid.c
lib/libc/sys/sethostname.c
lib/libc/sys/setitimer.c
lib/libc/sys/setpgrp.c
lib/libc/sys/setpriority.c
lib/libc/sys/setquota.c
lib/libc/sys/setregid.c
lib/libc/sys/setreuid.c
lib/libc/sys/setrlimit.c
lib/libc/sys/setsockopt.c
lib/libc/sys/settimeofday.c
lib/libc/sys/shutdown.c
lib/libc/sys/sigblock.c
lib/libc/sys/sigpause.c
lib/libc/sys/sigreturn.c
lib/libc/sys/sigsetmask.c
lib/libc/sys/sigstack.c
lib/libc/sys/sigvec.c
lib/libc/sys/socket.c
lib/libc/sys/socketpair.c
lib/libc/sys/stat.c
lib/libc/sys/swapon.c
lib/libc/sys/symlink.c
lib/libc/sys/sync.c
lib/libc/sys/truncate.c
lib/libc/sys/umask.c
lib/libc/sys/umount.c
lib/libc/sys/unlink.c
lib/libc/sys/utimes.c
lib/libc/sys/vfork.c
lib/libc/sys/vhangup.c
lib/libc/sys/vopen.c
lib/libc/sys/wait.c
lib/libc/sys/wait3.c
lib/libc/sys/write.c
lib/libc/sys/writev.c
lib/libc/vax/compat-4.1/Makefile
lib/libc/vax/csu/Makefile
lib/libc/vax/gen/Makefile
lib/libc/vax/net/Makefile
lib/libc/vax/stdio/Makefile
lib/libc/vax/sys/Makefile
sys/h/acct.h
sys/h/bkmac.h
sys/h/buf.h
sys/h/callout.h
sys/h/clist.h
sys/h/cmap.h
sys/h/conf.h
sys/h/dir.h
sys/h/dk.h
sys/h/dkbad.h
sys/h/dmap.h
sys/h/domain.h
sys/h/errno.h
sys/h/exec.h
sys/h/file.h
sys/h/fs.h
sys/h/gprof.h
sys/h/inode.h
sys/h/ioctl.h
sys/h/kernel.h
sys/h/map.h
sys/h/mbuf.h
sys/h/mman.h
sys/h/mount.h
sys/h/msgbuf.h
sys/h/mtio.h
sys/h/namei.h
sys/h/param.h
sys/h/proc.h
sys/h/protosw.h
sys/h/ptrace.h
sys/h/quota.h
sys/h/reboot.h
sys/h/resource.h
sys/h/seg.h
sys/h/select.h
sys/h/signal.h
sys/h/socket.h
sys/h/socketvar.h
sys/h/stat.h
sys/h/syslog.h
sys/h/systm.h
sys/h/tablet.h
sys/h/text.h
sys/h/time.h
sys/h/timeb.h
sys/h/times.h
sys/h/trace.h
sys/h/tty.h
sys/h/ttychars.h
sys/h/ttydev.h
sys/h/types.h
sys/h/uio.h
sys/h/un.h
sys/h/unpcb.h
sys/h/user.h
sys/h/vadvise.h
sys/h/vcmd.h
sys/h/vlimit.h
sys/h/vm.h
sys/h/vmmac.h
sys/h/vmmeter.h
sys/h/vmparam.h
sys/h/vmsystm.h
sys/h/vsio.h
sys/h/vtimes.h
sys/h/wait.h
sys/net/af.h
sys/net/if.h
sys/net/if_arp.h
sys/net/netisr.h
sys/net/raw_cb.h
sys/net/route.h
sys/netimp/if_imp.h
sys/netimp/if_imphost.h
sys/netinet/icmp_var.h
sys/netinet/if_ether.h
sys/netinet/in.h
sys/netinet/in_pcb.h
sys/netinet/in_systm.h
sys/netinet/in_var.h
sys/netinet/ip.h
sys/netinet/ip_icmp.h
sys/netinet/ip_var.h
sys/netinet/tcp.h
sys/netinet/tcp_debug.h
sys/netinet/tcp_fsm.h
sys/netinet/tcp_seq.h
sys/netinet/tcp_timer.h
sys/netinet/tcp_var.h
sys/netinet/tcpip.h
sys/netinet/udp.h
sys/netinet/udp_var.h
sys/netns/idp.h
sys/netns/idp_var.h
sys/netns/ns.h
sys/netns/ns_error.h
sys/netns/ns_if.h
sys/netns/ns_pcb.h
sys/netns/sp.h
sys/netns/spidp.h
sys/netns/spp_debug.h
sys/netns/spp_var.h
sys/vax/clock.h
sys/vax/cons.h
sys/vax/cpu.h
sys/vax/crl.h
sys/vax/dkio.h
sys/vax/flp.h
sys/vax/frame.h
sys/vax/ioa.h
sys/vax/ka630.h
sys/vax/machparam.h
sys/vax/mem.h
sys/vax/mscp.h
sys/vax/mtpr.h
sys/vax/nexus.h
sys/vax/pcb.h
sys/vax/psl.h
sys/vax/pte.h
sys/vax/reg.h
sys/vax/rpb.h
sys/vax/rsp.h
sys/vax/scb.h
sys/vax/tmscp.h
sys/vax/trap.h
sys/vax/vmparam.h
sys/vaxif/if_accreg.h
sys/vaxif/if_cssreg.h
sys/vaxif/if_ddnreg.h
sys/vaxif/if_ddnvar.h
sys/vaxif/if_dereg.h
sys/vaxif/if_dmc.h
sys/vaxif/if_ecreg.h
sys/vaxif/if_en.h
sys/vaxif/if_enreg.h
sys/vaxif/if_exreg.h
sys/vaxif/if_hdhreg.h
sys/vaxif/if_hy.h
sys/vaxif/if_hyreg.h
sys/vaxif/if_il.h
sys/vaxif/if_ilreg.h
sys/vaxif/if_ix.h
sys/vaxif/if_pclreg.h
sys/vaxif/if_qereg.h
sys/vaxif/if_uba.h
sys/vaxif/if_vv.h
sys/vaxmba/hpreg.h
sys/vaxmba/htreg.h
sys/vaxmba/mbareg.h
sys/vaxmba/mbavar.h
sys/vaxmba/mtreg.h
sys/vaxuba/adreg.h
sys/vaxuba/dhreg.h
sys/vaxuba/dhureg.h
sys/vaxuba/dmfreg.h
sys/vaxuba/dmreg.h
sys/vaxuba/dmzreg.h
sys/vaxuba/dzreg.h
sys/vaxuba/idcreg.h
sys/vaxuba/ikreg.h
sys/vaxuba/npreg.h
sys/vaxuba/pdma.h
sys/vaxuba/psreg.h
sys/vaxuba/rkreg.h
sys/vaxuba/rlreg.h
sys/vaxuba/rxreg.h
sys/vaxuba/tmreg.h
sys/vaxuba/tmscpreg.h
sys/vaxuba/tsreg.h
sys/vaxuba/ubareg.h
sys/vaxuba/ubavar.h
sys/vaxuba/udareg.h
sys/vaxuba/upreg.h
sys/vaxuba/utreg.h
sys/vaxuba/uureg.h
sys/vaxuba/vpreg.h
sys/vaxuba/vsreg.h

index 21bbf71..d74d9e7 100644 (file)
 #
 DESTDIR=
 SUBDIRS=arpa pascal protocols
-STD=   a.out.h ar.h assert.h compat-4.1.h compat-sys5.h ctype.h disktab.h \
-       fstab.h gen.h grp.h inet.h lastlog.h math.h memory.h mtab.h ndbm.h \
-       netdb.h net.h ns.h pcc.h pwd.h ranlib.h resolv.h setjmp.h sgtty.h \
-       stab.h stdio.h string.h strings.h struct.h syscall.h sysexits.h sys.h \
-       time.h ttyent.h utmp.h varargs.h vfont.h
+STD=   a.out.h ar.h assert.h ctype.h disktab.h fstab.h gen.h grp.h lastlog.h \
+       math.h memory.h mtab.h ndbm.h net.h netdb.h pcc.h pwd.h ranlib.h \
+       resolv.h setjmp.h sgtty.h stab.h stdio.h string.h strings.h struct.h \
+       syscall.h sysexits.h time.h ttyent.h utmp.h varargs.h vfont.h
 LINKS= errno.h signal.h syslog.h
 MACHINE=vax
 MACHDEP=${MACHINE} vaxif vaxmba vaxuba
index ad3166f..91d4fcd 100644 (file)
@@ -1,8 +1,3 @@
-#ifndef _A_OUT_H_
-#define _A_OUT_H_
-
-#include <sys/exec.h>
-
 /*
  * Copyright (c) 1980 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -16,7 +11,7 @@
  * and magic numbers are shared with
  * the kernel.
  */
-/*#include <sys/exec.h>*/
+#include <sys/exec.h>
 
 /*
  * Macros which take exec structures as arguments and tell whether
@@ -85,18 +80,3 @@ unsigned long        n_value;        /* value of this symbol (or sdb offset) */
  * Format for namelist values.
  */
 #define        N_FORMAT        "%08x"
-
-#ifndef KERNEL
-#ifndef __P
-#ifdef __STDC__
-#define __P(args) args
-#else
-#define __P(args) ()
-#endif
-#endif
-
-/* gen/nlist.c */
-int nlist __P((char *name, struct nlist *list));
-#endif
-
-#endif
index 19fa478..8780c1f 100644 (file)
@@ -1,6 +1,3 @@
-#ifndef _AR_H_
-#define _AR_H_
-
 /*
  * Copyright (c) 1980 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -23,5 +20,3 @@ struct ar_hdr {
        char    ar_size[10];
        char    ar_fmag[2];
 };
-
-#endif
index 852fcf9..187a875 100644 (file)
@@ -1,6 +1,3 @@
-#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
@@ -68,5 +65,3 @@
 #define        BLK_RESTART     0x10    /* Block is Restart Marker */
 
 #define        BLK_BYTECOUNT   2       /* Bytes in this block */
-
-#endif
index 65a2370..af957ca 100644 (file)
@@ -1,9 +1,3 @@
-#ifndef _ARPA_INET_H_
-#define _ARPA_INET_H_
-
-#include <netinet/in.h>
-/*#include <sys/types.h> netinet/in.h*/
-
 /*
  * Copyright (c) 1983 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
  * External definitions for
  * functions in inet(3N)
  */
-/*unsigned long inet_addr();*/
-/*char *inet_ntoa();*/
-/*struct       in_addr inet_makeaddr();*/
-/*unsigned long inet_network();*/
-
-#ifndef KERNEL
-#ifndef __P
-#ifdef __STDC__
-#define __P(args) args
-#else
-#define __P(args) ()
-#endif
-#endif
-
-/* inet/inet_addr.c */
-u_long inet_addr __P((register char *cp));
-
-/* inet/inet_lnaof.c */
-int inet_lnaof __P((struct in_addr in));
-
-/* inet/inet_makeaddr.c */
-struct in_addr inet_makeaddr __P((int net, int host));
-
-/* inet/inet_netof.c */
-int inet_netof __P((struct in_addr in));
-
-/* inet/inet_network.c */
-u_long inet_network __P((register char *cp));
-
-/* inet/inet_ntoa.c */
-char *inet_ntoa __P((struct in_addr in));
-#endif
-
-#endif
+unsigned long inet_addr();
+char   *inet_ntoa();
+struct in_addr inet_makeaddr();
+unsigned long inet_network();
index 9c7207a..2b85ac3 100644 (file)
@@ -1,9 +1,3 @@
-#ifndef _ARPA_NAMESER_H_
-#define _ARPA_NAMESER_H_
-
-#include <stdio.h>
-/*#include <sys/types.h> stdio.h*/
-
 /*
  * Copyright (c) 1983 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -158,45 +152,5 @@ struct rrec {
        char    *r_data;                /* pointer to data */
 };
 
-/*extern       u_short getshort();*/
-/*extern       u_long  getlong();*/
-
-#ifndef KERNEL
-#ifndef __P
-#ifdef __STDC__
-#define __P(args) args
-#else
-#define __P(args) ()
-#endif
-#endif
-
-/* 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));
-int dn_skip __P((char *comp_dn));
-int dn_find __P((char *exp_dn, char *msg, char **dnptrs, char **lastdnptr));
-u_short getshort __P((char *msgp));
-u_long getlong __P((char *msgp));
-int putshort __P((int s, register char *msgp));
-int putlong __P((register u_long l, register char *msgp));
-
-/* net/res_debug.c */
-int p_query __P((char *msg));
-int fp_query __P((char *msg, FILE *file));
-char *p_cdname __P((char *cp, char *msg, FILE *file));
-char *p_rr __P((char *cp, char *msg, FILE *file));
-char *p_type __P((int type));
-char *p_class __P((int class));
-
-/* net/res_init.c */
-int res_init __P((void));
-
-/* net/res_mkquery.c */
-int res_mkquery __P((int op, char *dname, int class, int type, char *data, int datalen, struct rrec *newrr, char *buf, int buflen));
-
-/* net/res_send.c */
-int res_send __P((char *buf, int buflen, char *answer, int anslen));
-int _res_close __P((void));
-#endif
-
-#endif
+extern u_short getshort();
+extern u_long  getlong();
index 01b7a0c..1c5b435 100644 (file)
@@ -1,6 +1,3 @@
-#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
@@ -83,5 +80,3 @@ char *telopts[NTELOPTS] = {
 /* sub-option qualifiers */
 #define        TELQUAL_IS      0       /* option is... */
 #define        TELQUAL_SEND    1       /* send option */
-
-#endif
index 6fed9fc..73c536c 100644 (file)
@@ -1,6 +1,3 @@
-#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
@@ -49,5 +46,3 @@ struct        tftphdr {
 #define        EBADID          5               /* unknown transfer ID */
 #define        EEXISTS         6               /* file already exists */
 #define        ENOUSER         7               /* no such user */
-
-#endif
index 89072b1..1529b79 100644 (file)
@@ -1,16 +1,9 @@
-#ifndef _ASSERT_H_
-#define _ASSERT_H_
-
-#include <stdio.h>
-
 /*     assert.h        4.2     85/01/21        */
 
-/*# ifndef NDEBUG*/
+# ifndef NDEBUG
 # define _assert(ex)   {if (!(ex)){fprintf(stderr,"Assertion failed: file \"%s\", line %d\n", __FILE__, __LINE__);exit(1);}}
 # define assert(ex)    _assert(ex)
 # else
 # define _assert(ex)
 # define assert(ex)
-/*# endif*/
-
-#endif
+# endif
diff --git a/include/compat-4.1.h b/include/compat-4.1.h
deleted file mode 100644 (file)
index d546509..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-#ifndef _COMPAT_4_1_H_
-#define _COMPAT_4_1_H_
-
-#include <sys/ioctl.h>
-#include <sys/resource.h>
-/*#include <sys/time.h> sys/resource.h*/
-#include <sys/timeb.h>
-#include <sys/times.h>
-#include <sys/vlimit.h>
-#include <sys/vtimes.h>
-
-#ifndef KERNEL
-#ifndef __P
-#ifdef __STDC__
-#define __P(args) args
-#else
-#define __P(args) ()
-#endif
-#endif
-
-/* compat-4.1/getpw.c */
-int getpw __P((int uid, char buf[]));
-
-/* compat-4.1/pause.c */
-int pause __P((void));
-
-/* compat-4.1/rand.c */
-int srand __P((unsigned x));
-int rand __P((void));
-
-/* compat-4.1/tell.c */
-long tell __P((int f));
-#endif
-
-#endif
diff --git a/include/compat-sys5.h b/include/compat-sys5.h
deleted file mode 100644 (file)
index 39dd615..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-#ifndef _COMPAT_SYS5_H_
-#define _COMPAT_SYS5_H_
-
-#include <memory.h>
-#include <string.h>
-
-#ifndef KERNEL
-#ifndef __P
-#ifdef __STDC__
-#define __P(args) args
-#else
-#define __P(args) ()
-#endif
-#endif
-
-/* compat-sys5/getopt.c */
-int getopt __P((int nargc, char **nargv, char *ostr));
-
-/* compat-sys5/tmpnam.c */
-char *tmpnam __P((char *s));
-#endif
-
-#endif
index 1142fde..83d853b 100644 (file)
@@ -1,6 +1,3 @@
-#ifndef _CTYPE_H_
-#define _CTYPE_H_
-
 /*     ctype.h 4.2     85/09/04        */
 
 #define        _U      01
@@ -29,5 +26,3 @@ extern        char    _ctype_[];
 #define toupper(c)     ((c)-'a'+'A')
 #define tolower(c)     ((c)-'A'+'a')
 #define toascii(c)     ((c)&0177)
-
-#endif
index 531770f..060d15f 100644 (file)
@@ -1,6 +1,3 @@
-#ifndef _DISKTAB_H_
-#define _DISKTAB_H_
-
 /*
  * Copyright (c) 1983 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -31,19 +28,4 @@ struct       disktab {
        } d_partitions[8];
 };
 
-/*struct       disktab *getdiskbyname();*/
-
-#ifndef KERNEL
-#ifndef __P
-#ifdef __STDC__
-#define __P(args) args
-#else
-#define __P(args) ()
-#endif
-#endif
-
-/* gen/disktab.c */
-struct disktab *getdiskbyname __P((char *name));
-#endif
-
-#endif
+struct disktab *getdiskbyname();
index e42a66f..c595c82 100644 (file)
@@ -1,6 +1,3 @@
-#ifndef _FSTAB_H_
-#define _FSTAB_H_
-
 /*
  * Copyright (c) 1980 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -37,29 +34,9 @@ struct       fstab{
        int     fs_passno;              /* pass number on parallel dump */
 };
 
-/*struct       fstab *getfsent();*/
-/*struct       fstab *getfsspec();*/
-/*struct       fstab *getfsfile();*/
-/*struct       fstab *getfstype();*/
-/*int  setfsent();*/
-/*int  endfsent();*/
-
-#ifndef KERNEL
-#ifndef __P
-#ifdef __STDC__
-#define __P(args) args
-#else
-#define __P(args) ()
-#endif
-#endif
-
-/* gen/fstab.c */
-int setfsent __P((void));
-int endfsent __P((void));
-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
+struct fstab *getfsent();
+struct fstab *getfsspec();
+struct fstab *getfsfile();
+struct fstab *getfstype();
+int    setfsent();
+int    endfsent();
index f4dc4e5..c0a77d9 100644 (file)
@@ -1,129 +1,5 @@
-#ifndef _GEN_H_
-#define _GEN_H_
-
-#include <a.out.h>
-#include <ctype.h>
-#include <disktab.h>
-#include <fstab.h>
-#include <grp.h>
-#include <math.h>
-#include <ndbm.h>
-#include <pwd.h>
-#include <setjmp.h>
-#include <strings.h>
-#include <sys/dir.h>
-#include <sys/errno.h>
-/*#include <sys/exec.h> a.out.h*/
-#include <sys/proc.h>
-#include <sys/signal.h>
-#include <sys/syslog.h>
-/*#include <sys/time.h> sys/proc.h*/
-/*#include <time.h> sys/proc.h*/
-#include <ttyent.h>
-#include <utmp.h>
-
 /* formerly duplicated in gen/insque.c and gen/remque.c */
 struct vaxque {                /* queue format expected by VAX queue instructions */
        struct vaxque   *vq_next;
        struct vaxque   *vq_prev;
 };
-
-#ifndef KERNEL
-#ifndef __P
-#ifdef __STDC__
-#define __P(args) args
-#else
-#define __P(args) ()
-#endif
-#endif
-
-/* gen/abort.c */
-int abort __P((void));
-
-/* gen/abs.c */
-int abs __P((int i));
-
-/* gen/atoi.c */
-int atoi __P((register char *p));
-
-/* gen/atol.c */
-long atol __P((register char *p));
-
-/* gen/calloc.c */
-void *calloc __P((register unsigned num, register unsigned size));
-int cfree __P((void *p/*, unsigned num, unsigned size*/));
-
-/* gen/crypt.c */
-int setkey __P((char *key));
-int encrypt __P((char *block, int edflag));
-char *crypt __P((char *pw, char *salt));
-
-/* gen/ecvt.c */
-char *ecvt __P((double arg, int ndigits, int *decpt, int *sign));
-char *fcvt __P((double arg, int ndigits, int *decpt, int *sign));
-
-/* gen/fakcu.c */
-void _cleanup __P((void));
-
-/* gen/ffs.c */
-int ffs __P((register long mask));
-
-/* gen/gcvt.c */
-char *gcvt __P((double number, int ndigit, char *buf));
-
-/* gen/getenv.c */
-char *getenv __P((register char *name));
-
-/* gen/getpass.c */
-char *getpass __P((char *prompt));
-
-/* gen/getusershell.c */
-char *getusershell __P((void));
-int endusershell __P((void));
-int setusershell __P((void));
-
-/* gen/insque.c */
-int insque __P((register struct vaxque *e, register struct vaxque *prev));
-
-/* gen/malloc.c */
-void *malloc __P((unsigned nbytes));
-void morecore __P((int bucket));
-void free __P((void *cp));
-void *realloc __P((void *cp, unsigned nbytes));
-void mstats __P((char *s));
-
-/* gen/mkstemp.c */
-int mkstemp __P((char *as));
-
-/* gen/mktemp.c */
-char *mktemp __P((char *as));
-
-/* gen/qsort.c */
-void qsort __P((void *_base, int n, int size, int (*compar)(void *p0, void *p1)));
-
-/* gen/random.c */
-int srandom __P((unsigned x));
-char *initstate __P((unsigned seed, char *arg_state, int n));
-char *setstate __P((char *arg_state));
-long random __P((void));
-
-/* gen/regex.c */
-char *re_comp __P((register char *sp));
-int re_exec __P((register char *p1));
-int backref __P((register int i, register char *lp));
-int cclass __P((register char *set, int c, int af));
-
-/* gen/remque.c */
-int remque __P((register struct vaxque *e));
-
-/* gen/swab.c */
-int swab __P((register char *from, register char *to, register int n));
-
-/* gen/timezone.c */
-char *timezone __P((int zone, int dst));
-
-/* gen/valloc.c */
-void *valloc __P((int i));
-#endif
-
-#endif
index 7197fbf..f053f22 100644 (file)
@@ -1,6 +1,3 @@
-#ifndef _GRP_H_
-#define _GRP_H_
-
 /*     grp.h   4.1     83/05/03        */
 
 struct group { /* see getgrent(3) */
@@ -10,30 +7,4 @@ struct        group { /* see getgrent(3) */
        char    **gr_mem;
 };
 
-/*struct group *getgrent(), *getgrgid(), *getgrnam();*/
-
-#ifndef KERNEL
-#ifndef __P
-#ifdef __STDC__
-#define __P(args) args
-#else
-#define __P(args) ()
-#endif
-#endif
-
-/* gen/getgrent.c */
-int setgrent __P((void));
-int endgrent __P((void));
-struct group *getgrent __P((void));
-
-/* gen/getgrgid.c */
-struct group *getgrgid __P((register gid));
-
-/* gen/getgrnam.c */
-struct group *getgrnam __P((register char *name));
-
-/* gen/initgroups.c */
-int initgroups __P((char *uname, int agroup));
-#endif
-
-#endif
+struct group *getgrent(), *getgrgid(), *getgrnam();
diff --git a/include/inet.h b/include/inet.h
deleted file mode 100644 (file)
index be7a8b0..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-#ifndef _INET_H_
-#define _INET_H_
-
-#include <arpa/inet.h>
-
-#endif
index 65c514f..3686a91 100644 (file)
@@ -1,8 +1,3 @@
-#ifndef _LASTLOG_H_
-#define _LASTLOG_H_
-
-#include <sys/types.h>
-
 /*
  * Copyright (c) 1980 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -16,5 +11,3 @@ struct lastlog {
        char    ll_line[8];
        char    ll_host[16];            /* same as in utmp */
 };
-
-#endif
index 1f968be..6b874d6 100644 (file)
@@ -1,47 +1,20 @@
-#ifndef _MATH_H_
-#define _MATH_H_
-
 /*     math.h  4.6     9/11/85 */
 
-/*extern double asinh(), acosh(), atanh();*/
-/*extern double erf(), erfc();*/
-/*extern double exp(), expm1(), log(), log10(), log1p(), pow();*/
-/*extern double fabs(), floor(), ceil(), rint();*/
-/*extern double lgamma();*/
-/*extern double hypot(), cabs();*/
-/*extern double copysign(), drem(), logb(), scalb();*/
-/*extern int finite();*/
+extern double asinh(), acosh(), atanh();
+extern double erf(), erfc();
+extern double exp(), expm1(), log(), log10(), log1p(), pow();
+extern double fabs(), floor(), ceil(), rint();
+extern double lgamma();
+extern double hypot(), cabs();
+extern double copysign(), drem(), logb(), scalb();
+extern int finite();
 #ifdef vax
-/*extern double infnan();*/
+extern double infnan();
 #endif
-/*extern double j0(), j1(), jn(), y0(), y1(), yn();*/
-/*extern double sin(), cos(), tan(), asin(), acos(), atan(), atan2();*/
-/*extern double sinh(), cosh(), tanh();*/
-/*extern double cbrt(), sqrt();*/
-/*extern double modf(), ldexp(), frexp(), atof();*/
+extern double j0(), j1(), jn(), y0(), y1(), yn();
+extern double sin(), cos(), tan(), asin(), acos(), atan(), atan2();
+extern double sinh(), cosh(), tanh();
+extern double cbrt(), sqrt();
+extern double modf(), ldexp(), frexp(), atof();
 
 #define HUGE   1.701411733192644270e38
-
-#ifndef KERNEL
-#ifndef __P
-#ifdef __STDC__
-#define __P(args) args
-#else
-#define __P(args) ()
-#endif
-#endif
-
-/* gen/atof.c */
-double atof __P((char *s));
-
-/* gen/frexp.c */
-double frexp __P((double x, int *i));
-
-/* gen/ldexp.c */
-double ldexp __P((double v, int e));
-
-/* gen/modf.c */
-double modf __P((double v, double *p));
-#endif
-
-#endif
index 391cd52..532c8df 100644 (file)
@@ -1,6 +1,3 @@
-#ifndef _MEMORY_H_
-#define _MEMORY_H_
-
 /*
  * Copyright (c) 1985 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
  * Definitions of the Sys5 compat memory manipulation routines
  */
 
-/*extern char *memccpy();*/
-/*extern char *memchr();*/
-/*extern int memcmp();*/
-/*extern char *memcpy();*/
-/*extern char *memset();*/
-
-#ifndef KERNEL
-#ifndef __P
-#ifdef __STDC__
-#define __P(args) args
-#else
-#define __P(args) ()
-#endif
-#endif
-
-/* compat-sys5/memccpy.c */
-char *memccpy __P((void *_t, void *_f, register c, register n));
-
-/* compat-sys5/memchr.c */
-void *memchr __P((void *_s, register c, register n));
-
-/* compat-sys5/memcmp.c */
-int memcmp __P((void *_s1, void *_s2, register n));
-
-/* compat-sys5/memcpy.c */
-void *memcpy __P((void *_t, void *_f, register n));
-
-/* compat-sys5/memset.c */
-void *memset __P((void *_s, register c, register n));
-#endif
-
-#endif
+extern char *memccpy();
+extern char *memchr();
+extern int memcmp();
+extern char *memcpy();
+extern char *memset();
index 18179d7..bfe07ce 100644 (file)
@@ -1,6 +1,3 @@
-#ifndef _MTAB_H_
-#define _MTAB_H_
-
 /*
  * Copyright (c) 1980 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -17,5 +14,3 @@ struct mtab {
        char    m_dname[32];            /* block device pathname */
        char    m_type[4];              /* read-only, quotas */
 };
-
-#endif
index c45aa3a..57a8bf1 100644 (file)
@@ -1,6 +1,3 @@
-#ifndef _NDBM_H_
-#define _NDBM_H_
-
 /*
  * Copyright (c) 1983 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -55,33 +52,11 @@ typedef struct {
 #define DBM_INSERT     0
 #define DBM_REPLACE    1
 
-/*DBM  *dbm_open();*/
-/*void dbm_close();*/
-/*datum        dbm_fetch();*/
-/*datum        dbm_firstkey();*/
-/*datum        dbm_nextkey();*/
-/*long dbm_forder();*/
-/*int  dbm_delete();*/
-/*int  dbm_store();*/
-
-#ifndef KERNEL
-#ifndef __P
-#ifdef __STDC__
-#define __P(args) args
-#else
-#define __P(args) ()
-#endif
-#endif
-
-/* gen/ndbm.c */
-DBM *dbm_open __P((char *file, int flags, ...));
-void dbm_close __P((DBM *db));
-long dbm_forder __P((register DBM *db, datum key));
-datum dbm_fetch __P((register DBM *db, datum key));
-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
+DBM    *dbm_open();
+void   dbm_close();
+datum  dbm_fetch();
+datum  dbm_firstkey();
+datum  dbm_nextkey();
+long   dbm_forder();
+int    dbm_delete();
+int    dbm_store();
index 337cc5a..7c94432 100644 (file)
@@ -1,53 +1,6 @@
-#ifndef _NET_H_
-#define _NET_H_
-
-#include <arpa/nameser.h>
-#include <netdb.h>
-/*#include <stdio.h> arpa/nameser.h*/
-/*#include <sys/types.h> arpa/nameser.h*/
-
 /*
  * Functions for number representation conversion.
  */
 /* formerly duplicated in netinet/in.h and netns/ns.h */
-/*u_short      ntohs(), htons();*/
-/*u_long       ntohl(), htonl();*/
-
-#ifndef KERNEL
-#ifndef __P
-#ifdef __STDC__
-#define __P(args) args
-#else
-#define __P(args) ()
-#endif
-#endif
-
-/* net/htonl.c */
-u_long htonl __P((u_long hostlong));
-
-/* net/htons.c */
-u_short htons __P((int hostshort));
-
-/* net/ntohl.c */
-u_long ntohl __P((u_long netlong));
-
-/* net/ntohs.c */
-u_short ntohs __P((int netshort));
-
-/* net/rcmd.c */
-int rcmd __P((char **ahost, int rport, char *locuser, char *remuser, char *cmd, int *fd2p));
-int rresvport __P((int *alport));
-int ruserok __P((char *rhost, int superuser, char *ruser, char *luser));
-int _validuser __P((FILE *hostf, char *rhost, char *luser, char *ruser, int baselen));
-int _checkhost __P((char *rhost, char *lhost, int len));
-
-/* net/rexec.c */
-int rexec __P((char **ahost, int rport, char *name, char *pass, char *cmd, int *fd2p));
-
-/* net/ruserpass.c */
-void ruserpass __P((char *host, char **aname, char **apass));
-void mkpwunclear __P((char *spasswd, int mch, char *sencpasswd));
-void mkpwclear __P((char *sencpasswd, int mch, char *spasswd));
-#endif
-
-#endif
+u_short        ntohs(), htons();
+u_long ntohl(), htonl();
index 4e8813d..762e4a5 100644 (file)
@@ -1,6 +1,3 @@
-#ifndef _NETDB_H_
-#define _NETDB_H_
-
 /*
  * Copyright (c) 1980 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -49,10 +46,10 @@ struct      protoent {
        int     p_proto;        /* protocol # */
 };
 
-/*struct hostent       *gethostbyname(), *gethostbyaddr(), *gethostent();*/
-/*struct netent        *getnetbyname(), *getnetbyaddr(), *getnetent();*/
-/*struct servent       *getservbyname(), *getservbyport(), *getservent();*/
-/*struct protoent      *getprotobyname(), *getprotobynumber(), *getprotoent();*/
+struct hostent *gethostbyname(), *gethostbyaddr(), *gethostent();
+struct netent  *getnetbyname(), *getnetbyaddr(), *getnetent();
+struct servent *getservbyname(), *getservbyport(), *getservent();
+struct protoent        *getprotobyname(), *getprotobynumber(), *getprotoent();
 
 /*
  * Error return codes from gethostbyname() and gethostbyaddr()
@@ -64,72 +61,3 @@ extern  int h_errno;
 #define        TRY_AGAIN       2 /* Non-Authoritive Host not found, or SERVERFAIL */
 #define        NO_RECOVERY     3 /* Non recoverable errors, FORMERR, REFUSED, NOTIMP */
 #define NO_ADDRESS     4 /* Valid host name, no address, look for MX record */
-
-#ifndef KERNEL
-#ifndef __P
-#ifdef __STDC__
-#define __P(args) args
-#else
-#define __P(args) ()
-#endif
-#endif
-
-/* net/getnetbyaddr.c */
-struct netent *getnetbyaddr __P((register int net, register int type));
-
-/* net/getnetbyname.c */
-struct netent *getnetbyname __P((register char *name));
-
-/* net/getnetent.c */
-int setnetent __P((int f));
-int endnetent __P((void));
-struct netent *getnetent __P((void));
-
-/* net/getproto.c */
-struct protoent *getprotobynumber __P((register int proto));
-
-/* net/getprotoent.c */
-int setprotoent __P((int f));
-int endprotoent __P((void));
-struct protoent *getprotoent __P((void));
-
-/* net/getprotoname.c */
-struct protoent *getprotobyname __P((register char *name));
-
-/* net/getservbyname.c */
-struct servent *getservbyname __P((char *name, char *proto));
-
-/* net/getservbyport.c */
-struct servent *getservbyport __P((int port, char *proto));
-
-/* net/getservent.c */
-int setservent __P((int f));
-int endservent __P((void));
-struct servent *getservent __P((void));
-
-/* net/hosttable/gethostent.c */
-int sethostent __P((int f));
-int endhostent __P((void));
-struct hostent *gethostent __P((void));
-int sethostfile __P((char *file));
-
-/* net/hosttable/gethostnamadr.c */
-struct hostent *gethostbyname __P((register char *nam));
-struct hostent *gethostbyaddr __P((char *addr, register int length, register int type));
-
-/* net/named/gethostnamadr.c */
-struct hostent *gethostbyname __P((char *name));
-struct hostent *gethostbyaddr __P((char *addr, int len, int type));
-int _sethtent __P((int f));
-int _endhtent __P((void));
-struct hostent *_gethtent __P((void));
-struct hostent *_gethtbyname __P((char *name));
-struct hostent *_gethtbyaddr __P((char *addr, int len, int type));
-
-/* net/named/sethostent.c */
-int sethostent __P((int stayopen));
-int endhostent __P((void));
-int sethostfile __P((char *name));
-#endif
-
-#endif
diff --git a/include/ns.h b/include/ns.h
deleted file mode 100644 (file)
index 953afdf..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-#ifndef _NS_H_
-#define _NS_H_
-
-#include <netns/ns.h>
-
-#endif
index 7e3e2f3..efc6da5 100644 (file)
@@ -1,8 +1,3 @@
-#ifndef _PCC_H_
-#define _PCC_H_
-
-#include <strings.h>
-
 /*
  * Copyright (c) 1983 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
 # define       PCC_INLINE      61      /* inline function */
 /* no ASG */
 # define       PCC_UINLINE     63      /* inline with no arguments */
-# endif
+# endif INLINE
 
 /*
  * Referencing and dereferencing.
 # define       PCCF_FARIF      156     /* not implemented */
 # define       PCCF_FLABEL     157     /* an f77 label */
 
-# endif
+# endif        PCC_TOKENS
+
 
 /*
  * Types, as encoded in intermediate file cookies.
 # define       PCCTM_BASETYPE  017
 # define       PCCTM_TYPESHIFT 2
 
+
 /*
  * Useful macros.  'PCCOM' macros apply to ops.
  */
 # define       PCCM_ADDTYPE(t, m)              \
        ((((t) &~ PCCTM_BASETYPE) << PCCTM_TYPESHIFT) | \
        (m) | ((t) & PCCTM_BASETYPE))
-
-#endif
index faafd45..fc576ec 100644 (file)
@@ -1,9 +1,3 @@
-#ifndef _PROTOCOLS_DUMPRESTORE_H_
-#define _PROTOCOLS_DUMPRESTORE_H_
-
-#include <sys/inode.h>
-/*#include <sys/types.h> sys/inode.h*/
-
 /*
  * Copyright (c) 1980 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -61,5 +55,3 @@ union u_spcl {
 #define        DUMPOUTFMT      "%-16s %c %s"           /* for printf */
                                                /* name, incno, ctime(date) */
 #define        DUMPINFMT       "%16s %c %[^\n]\n"      /* inverse for scanf */
-
-#endif
index 57facfe..ad7a61c 100644 (file)
@@ -1,9 +1,3 @@
-#ifndef _PROTOCOLS_ROUTED_H_
-#define _PROTOCOLS_ROUTED_H_
-
-#include <sys/socket.h>
-/*#include <sys/types.h> sys/socket.h*/
-
 /*
  * Copyright (c) 1983 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -68,5 +62,3 @@ char *ripcmds[RIPCMD_MAX] =
 
 #define        EXPIRE_TIME             180     /* time to mark entry invalid */
 #define        GARBAGE_TIME            240     /* time to garbage collect */
-
-#endif
index 0bc2dc8..745c4b1 100644 (file)
@@ -1,6 +1,3 @@
-#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
@@ -35,5 +32,3 @@ struct        whod {
 
 #define        WHODVERSION     1
 #define        WHODTYPE_STATUS 1               /* host status */
-
-#endif
index 3936c31..b932862 100644 (file)
@@ -1,9 +1,3 @@
-#ifndef _PROTOCOLS_TALKD_H_
-#define _PROTOCOLS_TALKD_H_
-
-#include <sys/socket.h>
-/*#include <sys/types.h> sys/socket.h*/
-
 /*
  * Copyright (c) 1983 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -12,8 +6,8 @@
  *     @(#)talkd.h     5.2 (Berkeley) 3/13/86
  */
 
-/*#include <sys/types.h>*/
-/*#include <sys/socket.h>*/
+#include <sys/types.h>
+#include <sys/socket.h>
 /*
  * This describes the protocol used by the talk server and clients.
  *
@@ -88,5 +82,3 @@ typedef struct {
 #define MAX_LIFE       60      /* max time daemon saves invitations */
 /* RING_WAIT should be 10's of seconds less than MAX_LIFE */
 #define RING_WAIT      30      /* time to wait before resending invitation */
-
-#endif
index 1177f92..786d9d8 100644 (file)
@@ -1,10 +1,3 @@
-#ifndef _PROTOCOLS_TIMED_H_
-#define _PROTOCOLS_TIMED_H_
-
-#include <sys/param.h>
-#include <sys/time.h>
-/*#include <sys/types.h> sys/param.h*/
-
 /*
  * Copyright (c) 1983 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -72,5 +65,3 @@ char *tsptype[TSPTYPENUMBER] =
   "DATE", "DATEREQ", "DATEACK", "TRACEON", "TRACEOFF", "MSITE", "MSITEREQ",
   "TEST", "SETDATE", "SETDATEREQ", "LOOP" };
 #endif
-
-#endif
index 5ae146d..6954fd7 100644 (file)
@@ -1,6 +1,3 @@
-#ifndef _PWD_H_
-#define _PWD_H_
-
 /*     pwd.h   4.1     83/05/03        */
 
 struct passwd { /* see getpwent(3) */
@@ -15,26 +12,4 @@ struct       passwd { /* see getpwent(3) */
        char    *pw_shell;
 };
 
-/*struct passwd *getpwent(), *getpwuid(), *getpwnam();*/
-
-#ifndef KERNEL
-#ifndef __P
-#ifdef __STDC__
-#define __P(args) args
-#else
-#define __P(args) ()
-#endif
-#endif
-
-/* gen/getpwent.c */
-int setpwent __P((void));
-int endpwent __P((void));
-struct passwd *getpwent __P((void));
-int setpwfile __P((char *file));
-
-/* gen/getpwnamuid.c */
-struct passwd *getpwnam __P((char *nam));
-struct passwd *getpwuid __P((int uid));
-#endif
-
-#endif
+struct passwd *getpwent(), *getpwuid(), *getpwnam();
index 7ea58a1..936ba34 100644 (file)
@@ -1,8 +1,3 @@
-#ifndef _RANLIB_H_
-#define _RANLIB_H_
-
-#include <sys/types.h>
-
 /*     ranlib.h        4.1     83/05/03        */
 
 /*
@@ -20,5 +15,3 @@ struct        ranlib {
        } ran_un;
        off_t   ran_off;                /* library member at this offset */
 };
-
-#endif
index ab44739..ec5ff75 100644 (file)
@@ -1,9 +1,3 @@
-#ifndef _RESOLV_H_
-#define _RESOLV_H_
-
-#include <arpa/nameser.h>
-#include <netinet/in.h>
-/*#include <sys/types.h> arpa/nameser.h*/
 
 /*
  * Copyright (c) 1983 Regents of the University of California.
  * 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 */
@@ -44,6 +40,4 @@ struct state {
 #define RES_STAYOPEN   0x0100          /* Keep TCP socket open */
 
 extern struct state _res;
-/*extern char *p_cdname(), *p_rr(), *p_type(), *p_class();*/
-
-#endif
+extern char *p_cdname(), *p_rr(), *p_type(), *p_class();
index 200fc3a..a8c173c 100644 (file)
@@ -1,29 +1,3 @@
-#ifndef _SETJMP_H_
-#define _SETJMP_H_
-
 /*     setjmp.h        4.1     83/05/03        */
 
 typedef int jmp_buf[10];
-
-#ifndef KERNEL
-#ifndef __P
-#ifdef __STDC__
-#define __P(args) args
-#else
-#define __P(args) ()
-#endif
-#endif
-
-/* gen/_setjmp.c */
-int _setjmp __P((jmp_buf e));
-void _longjmp __P((jmp_buf e, int v));
-
-/* gen/setjmp.c */
-int setjmp __P((jmp_buf e));
-void longjmp __P((jmp_buf e, int v));
-
-/* gen/setjmperr.c */
-int longjmperror __P((void));
-#endif
-
-#endif
index cc1d2da..e1186ca 100644 (file)
@@ -1,12 +1,5 @@
-#ifndef _SGTTY_H_
-#define _SGTTY_H_
-
-#include <sys/ioctl.h>
-
 /*     sgtty.h 4.2     85/01/03        */
 
-/*#ifndef      _IOCTL_*/
-/*#include <sys/ioctl.h>*/
-/*#endif*/
-
+#ifndef        _IOCTL_
+#include <sys/ioctl.h>
 #endif
index 8eeac29..d7547d4 100644 (file)
@@ -1,6 +1,3 @@
-#ifndef _STAB_H_
-#define _STAB_H_
-
 /*
  * Copyright (c) 1980 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -43,5 +40,3 @@
  * for the berkeley pascal compiler, pc(1):
  */
 #define        N_PC    0x30            /* global pascal symbol: name,,0,subtype,line */
-
-#endif
index 3c12925..ca9648c 100644 (file)
@@ -1,11 +1,3 @@
-#ifndef _STDIO_H_
-#define _STDIO_H_
-
-#include <sys/types.h>
-#ifdef __STDC__
-#include <stdarg.h>
-#endif
-
 /*
  * Copyright (c) 1980 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -14,7 +6,7 @@
  *     @(#)stdio.h     5.3 (Berkeley) 3/15/86
  */
 
-/*# ifndef FILE*/
+# ifndef FILE
 #define        BUFSIZ  1024
 extern struct  _iobuf {
        int     _cnt;
@@ -43,7 +35,7 @@ extern        struct  _iobuf {
 #define        stderr  (&_iob[2])
 #ifndef lint
 #define        getc(p)         (--(p)->_cnt>=0? (int)(*(unsigned char *)(p)->_ptr++):_filbuf(p))
-#endif
+#endif not lint
 #define        getchar()       getc(stdin)
 #ifndef lint
 #define putc(x, p)     (--(p)->_cnt >= 0 ?\
@@ -53,154 +45,21 @@ extern     struct  _iobuf {
                        (int)(*(unsigned char *)(p)->_ptr++) :\
                        _flsbuf(*(unsigned char *)(p)->_ptr, p)) :\
                _flsbuf((unsigned char)(x), p)))
-#endif
+#endif not lint
 #define        putchar(x)      putc(x,stdout)
 #define        feof(p)         (((p)->_flag&_IOEOF)!=0)
 #define        ferror(p)       (((p)->_flag&_IOERR)!=0)
 #define        fileno(p)       ((p)->_file)
 #define        clearerr(p)     ((p)->_flag &= ~(_IOERR|_IOEOF))
 
-/*FILE *fopen();*/
-/*FILE *fdopen();*/
-/*FILE *freopen();*/
-/*FILE *popen();*/
-/*long ftell();*/
-/*char *fgets();*/
-/*char *gets();*/
+FILE   *fopen();
+FILE   *fdopen();
+FILE   *freopen();
+FILE   *popen();
+long   ftell();
+char   *fgets();
+char   *gets();
 #if 0 /*def vax*/
-/*char *sprintf();*/           /* too painful to do right */
-#endif
-/*# endif*/
-
-#ifndef KERNEL
-#ifndef __P
-#ifdef __STDC__
-#define __P(args) args
-#else
-#define __P(args) ()
-#endif
-#endif
-
-/* stdio/clrerr.c */
-/*int clearerr __P((register FILE *iop));*/
-
-/* stdio/doprnt.c */
-int _doprnt __P((u_char *fmt0, va_list argp, register FILE *fp));
-
-/* stdio/doscan.c */
-int _doscan __P((FILE *iop, register char *fmt, register va_list argp));
-
-/* stdio/exit.c */
-int exit __P((int code));
-
-/* stdio/fdopen.c */
-FILE *fdopen __P((int fd, register char *mode));
-
-/* stdio/fgetc.c */
-/*int fgetc __P((FILE *fp));*/
-
-/* stdio/fgets.c */
-char *fgets __P((char *s, int n, register FILE *iop));
-
-/* stdio/filbuf.c */
-int _filbuf __P((register FILE *iop));
-
-/* stdio/findiop.c */
-FILE *_findiop __P((void));
-int _f_morefiles __P((void));
-void f_prealloc __P((void));
-void _fwalk __P((register int (*function) __P((FILE *iop))));
-void _cleanup __P((void));
-
-/* stdio/flsbuf.c */
-int _flsbuf __P((int c, register FILE *iop));
-int fflush __P((register FILE *iop));
-int fclose __P((register FILE *iop));
-
-/* stdio/fopen.c */
-FILE *fopen __P((char *file, register char *mode));
-
-/* stdio/fprintf.c */
-int fprintf __P((register FILE *iop, char *fmt, ...));
-
-/* stdio/fputc.c */
-/*int fputc __P((int c, register FILE *fp));*/
-
-/* stdio/fputs.c */
-int fputs __P((register char *s, register FILE *iop));
-
-/* stdio/fread.c */
-int fread __P((void *_ptr, unsigned size, unsigned count, register FILE *iop));
-
-/* stdio/freopen.c */
-FILE *freopen __P((char *file, register char *mode, register FILE *iop));
-
-/* stdio/fseek.c */
-int fseek __P((register FILE *iop, long offset, int ptrname));
-
-/* stdio/ftell.c */
-long ftell __P((register FILE *iop));
-
-/* stdio/fwrite.c */
-int fwrite __P((void *_ptr, unsigned size, unsigned count, register FILE *iop));
-
-/* stdio/getchar.c */
-/*int getchar __P((void));*/
-
-/* stdio/gets.c */
-char *gets __P((char *s));
-
-/* stdio/getw.c */
-int getw __P((register FILE *iop));
-
-/* stdio/popen.c */
-FILE *popen __P((char *cmd, char *mode));
-int pclose __P((FILE *ptr));
-
-/* stdio/printf.c */
-int printf __P((char *fmt, ...));
-
-/* stdio/putchar.c */
-/*int putchar __P((register c));*/
-
-/* stdio/puts.c */
-int puts __P((register char *s));
-
-/* stdio/putw.c */
-int putw __P((int w, register FILE *iop));
-
-/* stdio/rew.c */
-int rewind __P((register FILE *iop));
-
-/* stdio/scanf.c */
-int scanf __P((char *fmt, ...));
-int fscanf __P((FILE *iop, char *fmt, ...));
-int sscanf __P((register char *str, char *fmt, ...));
-
-/* stdio/setbuf.c */
-int setbuf __P((register FILE *iop, char *buf));
-
-/* stdio/setbuffer.c */
-int setbuffer __P((register FILE *iop, char *buf, int size));
-int setlinebuf __P((register FILE *iop));
-
-/* stdio/sprintf.c */
-int sprintf __P((char *str, char *fmt, ...));
-
-/* stdio/strout.c */
-int _strout __P((register count, register char *string, int adjust, register FILE *file, int fillch));
-
-/* stdio/ungetc.c */
-int ungetc __P((int c, register FILE *iop));
-
-/* stdio/vfprintf.c */
-int vfprintf __P((FILE *iop, char *fmt, va_list argp));
-
-/* stdio/vprintf.c */
-int vprintf __P((char *fmt, va_list argp));
-
-/* stdio/vsprintf.c */
-int vsprintf __P((char *str, char *fmt, va_list argp));
-#endif
-
+char   *sprintf();             /* too painful to do right */
 #endif
+# endif
index c52e47b..b9e5c45 100644 (file)
@@ -1,6 +1,3 @@
-#ifndef _STRING_H_
-#define _STRING_H_
-
 /*
  * Copyright (c) 1985 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -9,64 +6,24 @@
  *     @(#)string.h    5.1 (Berkeley) 85/08/05
  */
 
-#include <memory.h>
 #include <strings.h>
 
 /*
  * these next few are obsolete trash
  */
 
-/*extern char *strcpyn();*/
-/*extern char *strcatn();*/
-/*extern int strcmpn();*/
+extern char *strcpyn();
+extern char *strcatn();
+extern int strcmpn();
 
 /*
  * and the rest are Sys5 functions supported just so
  * Sys5 progs will compile easily.
  */
 
-/*extern char *strchr();*/
-/*extern char *strrchr();*/
-/*extern char *strpbrk();*/
-/*extern int strspn();*/
-/*extern int strcspn();*/
-/*extern char *strtok();*/
-
-#ifndef KERNEL
-#ifndef __P
-#ifdef __STDC__
-#define __P(args) args
-#else
-#define __P(args) ()
-#endif
-#endif
-
-/* compat-sys5/strcatn.c */
-char *strcatn __P((register char *s1, register char *s2, register n));
-
-/* compat-sys5/strchr.c */
-char *strchr __P((register char *sp, int c));
-
-/* compat-sys5/strcmpn.c */
-int strcmpn __P((register char *s1, register char *s2, register n));
-
-/* compat-sys5/strcpyn.c */
-char *strcpyn __P((register char *s1, register char *s2, int n));
-
-/* compat-sys5/strcspn.c */
-int strcspn __P((register char *s, register char *set));
-
-/* compat-sys5/strpbrk.c */
-char *strpbrk __P((register char *s, register char *brk));
-
-/* compat-sys5/strrchr.c */
-char *strrchr __P((register char *sp, int c));
-
-/* compat-sys5/strspn.c */
-int strspn __P((register char *s, register char *set));
-
-/* compat-sys5/strtok.c */
-char *strtok __P((register char *s, register char *sep));
-#endif
-
-#endif
+extern char *strchr();
+extern char *strrchr();
+extern char *strpbrk();
+extern int strspn();
+extern int strcspn();
+extern char *strtok();
index 139103e..2b69a31 100644 (file)
@@ -1,6 +1,3 @@
-#ifndef _STRINGS_H_
-#define _STRINGS_H_
-
 /*
  * Copyright (c) 1980 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
  * External function definitions
  * for routines described in string(3).
  */
-/*char *strcat();*/
-/*char *strncat();*/
-/*int  strcmp();*/
-/*int  strncmp();*/
-/*char *strcpy();*/
-/*char *strncpy();*/
-/*int  strlen();*/
-/*char *index();*/
-/*char *rindex();*/
-
-#ifndef KERNEL
-#ifndef __P
-#ifdef __STDC__
-#define __P(args) args
-#else
-#define __P(args) ()
-#endif
-#endif
-
-/* gen/bcmp.c */
-int bcmp __P((void *_b1, void *_b2, register int length));
-
-/* gen/bcopy.c */
-int bcopy __P((void *_src, void *_dst, register int length));
-
-/* gen/bzero.c */
-int bzero __P((void *_b, register int length));
-
-/* gen/index.c */
-char *index __P((register char *sp, int c));
-
-/* gen/rindex.c */
-char *rindex __P((register char *sp, int c));
-
-/* gen/strcat.c */
-char *strcat __P((register char *s1, register char *s2));
-
-/* gen/strcmp.c */
-int strcmp __P((register char *s1, register char *s2));
-
-/* gen/strcpy.c */
-char *strcpy __P((register char *s1, register char *s2));
-
-/* gen/strlen.c */
-int strlen __P((register char *s));
-
-/* gen/strncat.c */
-char *strncat __P((register char *s1, register char *s2, register n));
-
-/* gen/strncmp.c */
-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
+char   *strcat();
+char   *strncat();
+int    strcmp();
+int    strncmp();
+char   *strcpy();
+char   *strncpy();
+int    strlen();
+char   *index();
+char   *rindex();
index 044352d..2486388 100644 (file)
@@ -1,6 +1,3 @@
-#ifndef _STRUCT_H_
-#define _STRUCT_H_
-
 /*     struct.h        4.1     83/05/03        */
 
 /*
@@ -10,5 +7,3 @@
 #define        fldoff(str, fld)        ((int)&(((struct str *)0)->fld))
 #define        fldsiz(str, fld)        (sizeof(((struct str *)0)->fld))
 #define        strbase(str, ptr, fld)  ((struct str *)((char *)(ptr)-fldoff(str, fld)))
-
-#endif
diff --git a/include/sys.h b/include/sys.h
deleted file mode 100644 (file)
index b077031..0000000
+++ /dev/null
@@ -1,62 +0,0 @@
-#ifndef _SYS_H_
-#define _SYS_H_
-
-#include <sys/acct.h>
-#include <sys/dir.h>
-#include <sys/exec.h>
-#include <sys/file.h>
-#include <sys/ioctl.h>
-#include <sys/mount.h>
-#include <sys/proc.h>
-#include <sys/ptrace.h>
-#include <sys/quota.h>
-/*#include <sys/resource.h> sys/wait.h*/
-#include <sys/select.h>
-#include <sys/signal.h>
-/*#include <sys/socket.h> sys/ioctl.h*/
-#include <sys/stat.h>
-/*#include <sys/time.h> sys/proc.h*/
-#include <sys/uio.h>
-#include <sys/wait.h>
-
-#ifndef KERNEL
-#ifndef __P
-#ifdef __STDC__
-#define __P(args) args
-#else
-#define __P(args) ()
-#endif
-#endif
-
-/* sys/gethostid.c */
-long gethostid __P((void));
-
-/* sys/gethostname.c */
-int gethostname __P((char *n, int l));
-
-/* sys/getpagesize.c */
-int getpagesize __P((void));
-
-/* sys/profil.c */
-void profil __P((char *b, int s, int o, int i));
-
-/* sys/reboot.c */
-void reboot __P((int h));
-
-/* sys/sethostid.c */
-int sethostid __P((long h));
-
-/* sys/sethostname.c */
-int sethostname __P((char *n, int l));
-
-/* sys/shutdown.c */
-int shutdown __P((int s, int h));
-
-/* sys/swapon.c */
-int swapon __P((char *s));
-
-/* sys/vhangup.c */
-void vhangup __P((void));
-#endif
-
-#endif
index 7e99388..89ceabe 100644 (file)
@@ -1,6 +1,3 @@
-#ifndef _SYSCALL_H_
-#define _SYSCALL_H_
-
 /*
  * Copyright (c) 1980 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
 #define        SYS_setquota    148
 #define        SYS_quota       149
 #define        SYS_getsockname 150
-
-#endif
index 9382f44..dc4a9ff 100644 (file)
@@ -1,6 +1,3 @@
-#ifndef _SYSEXITS_H_
-#define _SYSEXITS_H_
-
 /*
 **  SYSEXITS.H -- Exit status codes for system programs.
 **
@@ -83,5 +80,3 @@
 # define EX_TEMPFAIL   75      /* temp failure; user is invited to retry */
 # define EX_PROTOCOL   76      /* remote error in protocol */
 # define EX_NOPERM     77      /* permission denied */
-
-#endif
index 921e9bb..8eb62c0 100644 (file)
@@ -1,8 +1,3 @@
-#ifndef _TIME_H_
-#define _TIME_H_
-
-#include <sys/types.h>
-
 /*     time.h  1.1     85/03/13        */
 
 /*
@@ -20,24 +15,5 @@ struct tm {
        int     tm_isdst;
 };
 
-/*extern       struct tm *gmtime(), *localtime();*/
-/*extern       char *asctime(), *ctime();*/
-
-#ifndef KERNEL
-#ifndef __P
-#ifdef __STDC__
-#define __P(args) args
-#else
-#define __P(args) ()
-#endif
-#endif
-
-/* 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
+extern struct tm *gmtime(), *localtime();
+extern char *asctime(), *ctime();
index 9556424..f7e0835 100644 (file)
@@ -1,6 +1,3 @@
-#ifndef _TTYENT_H_
-#define _TTYENT_H_
-
 /*
  * Copyright (c) 1983 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -21,25 +18,5 @@ struct       ttyent { /* see getttyent(3) */
 #define TTY_ON         0x1     /* enable logins (startup getty) */
 #define TTY_SECURE     0x2     /* allow root to login */
 
-/*extern struct ttyent *getttyent();*/
-/*extern struct ttyent *getttynam();*/
-
-#ifndef KERNEL
-#ifndef __P
-#ifdef __STDC__
-#define __P(args) args
-#else
-#define __P(args) ()
-#endif
-#endif
-
-/* gen/getttyent.c */
-int setttyent __P((void));
-int endttyent __P((void));
-struct ttyent *getttyent __P((void));
-
-/* gen/getttynam.c */
-struct ttyent *getttynam __P((char *tty));
-#endif
-
-#endif
+extern struct ttyent *getttyent();
+extern struct ttyent *getttynam();
index c52ed0c..c45b1f2 100644 (file)
@@ -1,6 +1,3 @@
-#ifndef _UTMP_H_
-#define _UTMP_H_
-
 /*
  * Copyright (c) 1980 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -20,24 +17,3 @@ struct utmp {
        char    ut_host[16];            /* host name, if remote */
        long    ut_time;                /* time on */
 };
-
-#ifndef KERNEL
-#ifndef __P
-#ifdef __STDC__
-#define __P(args) args
-#else
-#define __P(args) ()
-#endif
-#endif
-
-/* gen/getlogin.c */
-char *getlogin __P((void));
-
-/* gen/ttyname.c */
-char *ttyname __P((int f));
-
-/* gen/ttyslot.c */
-int ttyslot __P((void));
-#endif
-
-#endif
index fe57a5d..3a081f5 100644 (file)
@@ -1,6 +1,3 @@
-#ifndef _VARARGS_H_
-#define _VARARGS_H_
-
 /*     varargs.h       4.1     83/05/03        */
 
 typedef char *va_list;
@@ -8,5 +5,3 @@ typedef char *va_list;
 # define va_start(list) list = (char *) &va_alist
 # define va_end(list)
 # define va_arg(list,mode) ((mode *)(list += sizeof(mode)))[-1]
-
-#endif
index 62dd57c..b2104df 100644 (file)
@@ -1,6 +1,3 @@
-#ifndef _VFONT_H_
-#define _VFONT_H_
-
 /*
  * Copyright (c) 1980 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -28,5 +25,3 @@ struct dispatch {
        char up,down,left,right;
        short width;
 };
-
-#endif
index cbb7f07..15fb840 100644 (file)
@@ -42,8 +42,7 @@ HOSTLOOKUP=   named
 DESTDIR=
 INSTALL=install -m 644
 DFLMON=        mon.o
-MACHINE=linux
-#vax
+MACHINE=vax
 DEFS=
 COMPAT=        compat-4.1 compat-sys5
 ALL=   gen inet net ns stdio sys ${COMPAT} ${MACHINE}
@@ -54,19 +53,15 @@ libc.a libc_p.a: ${MACHINE}/csu ${ALL} net/${HOSTLOOKUP}
        -mkdir tmp
        for i in ${ALL}; do (cd tmp; ar x ../$$i/$${i}lib); done
        cd tmp; ar x ../net/${HOSTLOOKUP}/hostlib
-#      ls tmp/*.o | sort -t/ +1 > t1
-       ls tmp/*.o | LC_ALL=C sort -t/ > t1
-       ar cr libc.a `lorder \`cat t1\` | tsort`
-# ${MACHINE}/csu/${DFLMON}
+       ls tmp/*.o | sort -t/ +1 > t1
+       ar cr libc.a `lorder \`cat t1\` | tsort` ${MACHINE}/csu/${DFLMON}
        ar ma findiop.o libc.a exit.o
        ar ma exit.o libc.a fakcu.o
        rm -f t1 tmp/*
        for i in ${ALL}; do (cd tmp; ar x ../$$i/$${i}lib_p); done
        cd tmp; ar x ../net/${HOSTLOOKUP}/hostlib_p
-#      ls tmp/*.o | sort -t/ +1 > t1
-       ls tmp/*.o | LC_ALL=C sort -t/ > t1
-       ar cr libc_p.a `lorder \`cat t1\` | tsort`
-# ${MACHINE}/csu/${DFLMON}
+       ls tmp/*.o | sort -t/ +1 > t1
+       ar cr libc_p.a `lorder \`cat t1\` | tsort` ${MACHINE}/csu/${DFLMON}
        ar ma findiop.o libc_p.a exit.o
        ar ma exit.o libc_p.a fakcu.o
        rm -rf t1 tmp
@@ -76,34 +71,6 @@ ${MACHINE}/csu ${ALL} net/${HOSTLOOKUP}: FRC
 
 FRC:
 
-install-headers:
-       rm -rf ${DESTDIR}/usr/include
-       for i in `find . -name '*.h' -print`; \
-       do \
-               mkdir -p ${DESTDIR}/usr/include/`dirname $$i`; \
-               cp $$i ${DESTDIR}/usr/include/$$i; \
-       done
-       cd ${DESTDIR}/usr/include; \
-       ln -s vax machine; \
-       ln -s machine/frame.h frame.h; \
-       ln -s sys/errno.h errno.h; \
-       ln -s sys/file.h fcntl.h; \
-       ln -s a.out.h nlist.h; \
-       ln -s sys/signal.h signal.h; \
-       ln -s gen.h stdlib.h; \
-       ln -s sys/syslog.h syslog.h; \
-       ln -s sys.h unistd.h
-#      for i in \
-#`find . -name '*.h' -print` \
-#frame.h errno.h fcntl.h nlist.h signal.h stdlib.h syslog.h unistd.h; \
-#      do \
-#              mkdir -p ${DESTDIR}/usr/include/`dirname $$i`/.xify; \
-#              ${ROOT}/cross/lib/xify \
-#$$i \
-#${DESTDIR}/usr/include/`dirname $$i`/.xify/x_`basename $$i` \
-#${DESTDIR}/usr/include/`dirname $$i`/.xify/x_`basename $$i`.deps; \
-#      done
-
 install: 
        ${INSTALL} libc.a ${DESTDIR}/lib/libc.a
        ranlib ${DESTDIR}/lib/libc.a
index d521d09..4080fd5 100644 (file)
@@ -1,4 +1,3 @@
-LD=ld
 #
 # Copyright (c) 1980 Regents of the University of California.
 # All rights reserved.  The Berkeley software License Agreement
@@ -20,10 +19,10 @@ TAGSFILE=tags
 
 .c.o:
        ${CC} -p ${CFLAGS} -c $*.c
-       -${LD} -X -r $*.o
+       -ld -X -r $*.o
        mv a.out profiled/$*.o
        ${CC} ${CFLAGS} -c $*.c
-       -${LD} -x -r $*.o
+       -ld -x -r $*.o
        mv a.out $*.o
 
 compat-4.1lib compat-4.1lib_p: ${OBJS}
index 87c49e1..ec24405 100644 (file)
@@ -1,6 +1,3 @@
-#include <sys/time.h>
-#include <sys/timeb.h>
-
 /*
  * Copyright (c) 1980 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -9,11 +6,11 @@
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)ftime.c    5.2 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
-/*#include <sys/types.h>*/
-/*#include <sys/time.h>*/
-/*#include <sys/timeb.h>*/
+#include <sys/types.h>
+#include <sys/time.h>
+#include <sys/timeb.h>
 
 /*
  * Backwards compatible ftime.
@@ -28,7 +25,9 @@ static char sccsid[] = "@(#)ftime.c   5.2 (Berkeley) 3/9/86";
 /*     short   dstflag;*/
 /*};*/
 
-int ftime(tp) register struct timeb *tp; {
+ftime(tp)
+       register struct timeb *tp;
+{
        struct timeval t;
        struct timezone tz;
 
index e8f29d8..67a9bd3 100644 (file)
@@ -1,6 +1,3 @@
-#include <compat-4.1.h>
-#include <stdio.h>
-
 /*
  * Copyright (c) 1980 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -9,11 +6,14 @@
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)getpw.c    5.2 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
-/*#include     <stdio.h>*/
+#include       <stdio.h>
 
-int getpw(uid, buf) int uid; char buf[]; {
+getpw(uid, buf)
+int uid;
+char buf[];
+{
        static FILE *pwf;
        register n, c;
        register char *bp;
index 8ebc24e..7c4372c 100644 (file)
@@ -1,5 +1,3 @@
-#include <sys/ioctl.h>
-
 /*
  * Copyright (c) 1980 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -8,14 +6,16 @@
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)gtty.c     5.2 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
 /*
  * Writearound to old gtty system call.
  */
 
-/*#include <sgtty.h>*/
+#include <sgtty.h>
 
-int gtty(fd, ap) int fd; struct sgttyb *ap; {
+gtty(fd, ap)
+       struct sgttyb *ap;
+{
        return(ioctl(fd, TIOCGETP, ap));
 }
index 20b16d9..9a2fa22 100644 (file)
@@ -1,5 +1,3 @@
-#include <sys/resource.h>
-
 /*
  * Copyright (c) 1980 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -8,15 +6,17 @@
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)nice.c     5.2 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
-/*#include <sys/time.h>*/
-/*#include <sys/resource.h>*/
+#include <sys/time.h>
+#include <sys/resource.h>
 
 /*
  * Backwards compatible nice.
  */
-int nice(incr) int incr; {
+nice(incr)
+       int incr;
+{
        int prio;
        extern int errno;
 
index 6143b01..24d80cf 100644 (file)
@@ -1,6 +1,3 @@
-#include <compat-4.1.h>
-#include <sys/signal.h>
-
 /*
  * Copyright (c) 1980 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -9,12 +6,13 @@
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)pause.c    5.2 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
 /*
  * Backwards compatible pause.
  */
-int pause() {
+pause()
+{
 
        sigpause(sigblock(0));
 }
index c4494e5..009914c 100644 (file)
@@ -1,5 +1,3 @@
-#include <compat-4.1.h>
-
 /*
  * Copyright (c) 1980 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -8,14 +6,17 @@
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)rand.c     5.2 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
 static long    randx = 1;
 
-int srand(x) unsigned x; {
+srand(x)
+unsigned x;
+{
        randx = x;
 }
 
-int rand() {
+rand()
+{
        return((randx = randx * 1103515245 + 12345) & 0x7fffffff);
 }
index 1cc6458..beb475a 100644 (file)
@@ -1,5 +1,3 @@
-#include <sys/ioctl.h>
-
 /*
  * Copyright (c) 1980 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -8,14 +6,16 @@
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)stty.c     5.2 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
 /*
  * Writearound to old stty system call.
  */
 
-/*#include <sgtty.h>*/
+#include <sgtty.h>
 
-int stty(fd, ap) int fd; struct sgttyb *ap; {
+stty(fd, ap)
+       struct sgttyb *ap;
+{
        return(ioctl(fd, TIOCSETP, ap));
 }
index b1d95b2..68a4ba1 100644 (file)
@@ -1,6 +1,3 @@
-#include <compat-4.1.h>
-#include <sys/file.h>
-
 /*
  * Copyright (c) 1980 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -9,14 +6,15 @@
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)tell.c     5.2 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
 /*
  * return offset in file.
  */
 
-/*long lseek();*/
+long   lseek();
 
-long tell(f) int f; {
+long tell(f)
+{
        return(lseek(f, 0L, 1));
 }
index d831125..8293649 100644 (file)
@@ -1,7 +1,3 @@
-#include <sys/resource.h>
-/*#include <sys/time.h> sys/resource.h*/
-#include <sys/times.h>
-
 /*
  * Copyright (c) 1980 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)times.c    5.2 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
-/*#include <sys/time.h>*/
-/*#include <sys/resource.h>*/
-/*#include <sys/times.h>*/
+#include <sys/time.h>
+#include <sys/resource.h>
+#include <sys/times.h>
 
 /*
  * Backwards compatible times.
@@ -27,9 +23,9 @@ static char sccsid[] = "@(#)times.c   5.2 (Berkeley) 3/9/86";
 /*     int     tms_cstime;*/           /* system time, children */
 /*};*/
 
-static scale60 __P((register struct timeval *tvp));
-
-int times(tmsp) register struct tms *tmsp; {
+times(tmsp)
+       register struct tms *tmsp;
+{
        struct rusage ru;
 
        if (getrusage(RUSAGE_SELF, &ru) < 0)
@@ -43,7 +39,10 @@ int times(tmsp) register struct tms *tmsp; {
        return (0);
 }
 
-static scale60(tvp) register struct timeval *tvp; {
+static
+scale60(tvp)
+       register struct timeval *tvp;
+{
 
        return (tvp->tv_sec * 60 + tvp->tv_usec / 16667);
 }
index 8f80564..3e0b150 100644 (file)
@@ -1,5 +1,3 @@
-#include <sys/time.h>
-
 /*
  * Copyright (c) 1980 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -8,14 +6,17 @@
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)utime.c    5.2 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
-/*#include <sys/time.h>*/
+#include <sys/time.h>
 /*
  * Backwards compatible utime.
  */
 
-int utime(name, otv) char *name; int otv[]; {
+utime(name, otv)
+       char *name;
+       int otv[];
+{
        struct timeval tv[2];
 
        tv[0].tv_sec = otv[0]; tv[0].tv_usec = 0;
index 52aafa3..df8d0ff 100644 (file)
@@ -1,7 +1,3 @@
-#include <sys/errno.h>
-#include <sys/resource.h>
-#include <sys/vlimit.h>
-
 /*
  * Copyright (c) 1980 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)vlimit.c   5.2 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
 /*
  * (Almost) backwards compatible vlimit.
  */
-/*#include <sys/time.h>*/
-/*#include <sys/resource.h>*/
-/*#include <errno.h>*/
+#include <sys/time.h>
+#include <sys/resource.h>
+#include <errno.h>
 
 /* LIM_NORAISE is not emulated */
 #define        LIM_NORAISE     0       /* if <> 0, can't raise limits */
@@ -30,7 +26,9 @@ static char sccsid[] = "@(#)vlimit.c  5.2 (Berkeley) 3/9/86";
 
 #define        NLIMITS         6
 
-int vlimit(limit, value) int limit; int value; {
+vlimit(limit, value)
+       int limit, value;
+{
        struct rlimit rlim;
 
        if (limit <= 0 || limit > NLIMITS)
index 13d4cb3..cb3b61b 100644 (file)
@@ -1,7 +1,3 @@
-#include <sys/resource.h>
-/*#include <sys/time.h> sys/resource.h*/
-#include <sys/vtimes.h>
-
 /*
  * Copyright (c) 1980 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)vtimes.c   5.2 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
-/*#include <sys/time.h>*/
-/*#include <sys/resource.h>*/
-/*#include <sys/vtimes.h>*/
+#include <sys/time.h>
+#include <sys/resource.h>
+#include <sys/vtimes.h>
 
 /*
  * Backwards compatible vtimes.
@@ -34,10 +30,9 @@ static char sccsid[] = "@(#)vtimes.c 5.2 (Berkeley) 3/9/86";
 /*     int     vm_oublk;*/             /* block writes */
 /*};*/
 
-static getvtimes __P((register struct rusage *aru, register struct vtimes *avt));
-static scale60 __P((register struct timeval *tvp));
-
-int vtimes(par, chi) register struct vtimes *par; register struct vtimes *chi; {
+vtimes(par, chi)
+       register struct vtimes *par, *chi;
+{
        struct rusage ru;
 
        if (par) {
@@ -53,7 +48,11 @@ int vtimes(par, chi) register struct vtimes *par; register struct vtimes *chi; {
        return (0);
 }
 
-static getvtimes(aru, avt) register struct rusage *aru; register struct vtimes *avt; {
+static
+getvtimes(aru, avt)
+       register struct rusage *aru;
+       register struct vtimes *avt;
+{
 
        avt->vm_utime = scale60(&aru->ru_utime);
        avt->vm_stime = scale60(&aru->ru_stime);
@@ -67,7 +66,10 @@ static getvtimes(aru, avt) register struct rusage *aru; register struct vtimes *
        avt->vm_oublk = aru->ru_oublock;
 }
 
-static scale60(tvp) register struct timeval *tvp; {
+static
+scale60(tvp)
+       register struct timeval *tvp;
+{
 
        return (tvp->tv_sec * 60 + tvp->tv_usec / 16667);
 }
index 3b7c7db..4af68bc 100644 (file)
@@ -1,4 +1,3 @@
-LD=ld
 #      Makefile        1.5     85/09/05
 #
 CFLAGS=        -O ${DEFS}
@@ -12,10 +11,10 @@ TAGSFILE=tags
 
 .c.o:
        ${CC} -p ${CFLAGS} -c $*.c
-       -${LD} -X -r $*.o
+       -ld -X -r $*.o
        mv a.out profiled/$*.o
        ${CC} ${CFLAGS} -c $*.c
-       -${LD} -x -r $*.o
+       -ld -x -r $*.o
        mv a.out $*.o
 
 compat-sys5lib compat-sys5lib_p: ${OBJS}
index d671494..6905a61 100644 (file)
@@ -1,7 +1,3 @@
-#include <compat-sys5.h>
-#include <stdio.h>
-#include <strings.h>
-
 /*
  * Copyright (c) 1985 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -10,9 +6,9 @@
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)getopt.c   4.3 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
-/*#include <stdio.h>*/
+#include <stdio.h>
 
 /*
  * get option letter from argument vector
@@ -27,7 +23,11 @@ char *optarg;                /* argument associated with option */
 #define tell(s)        if (opterr) {fputs(*nargv,stderr);fputs(s,stderr); \
                fputc(optopt,stderr);fputc('\n',stderr);return(BADCH);}
 
-int getopt(nargc, nargv, ostr) int nargc; char **nargv; char *ostr; {
+getopt(nargc,nargv,ostr)
+int    nargc;
+char   **nargv,
+       *ostr;
+{
        static char     *place = EMSG;  /* option letter processing */
        register char   *oli;           /* option letter list index */
        char    *index();
index 46437e0..9bed847 100644 (file)
@@ -1,5 +1,3 @@
-#include <memory.h>
-
 /*
  * Copyright (c) 1985 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
 static char sccsid[] = "@(#)memccpy.c  5.2 (Berkeley) 86/03/09";
 #endif
 
-char *memccpy(_t, _f, c, n) void *_t; void *_f; register c; register n; {
+char *
+memccpy(_t, _f, c, n)
+       void *_t, *_f;
+       register c, n;
+{
 #define t (*(char **)&_t)
 #define f (*(char **)&_f)
        while (--n >= 0)
index 5f81202..14fb81c 100644 (file)
@@ -1,5 +1,3 @@
-#include <memory.h>
-
 /*
  * Copyright (c) 1985 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
 static char sccsid[] = "@(#)memchr.c   5.2 (Berkeley) 86/03/09";
 #endif
 
-void *memchr(_s, c, n) void *_s; register c; register n; {
+void *
+memchr(_s, c, n)
+       void *_s;
+       register c, n;
+{
 #define s (*(char **)&_s)
        while (--n >= 0)
                if (*s++ == c)
index 7f88d7f..f2cd066 100644 (file)
@@ -1,5 +1,3 @@
-#include <memory.h>
-
 /*
  * Copyright (c) 1985 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
 static char sccsid[] = "@(#)memcmp.c   5.2 (Berkeley) 86/03/09";
 #endif
 
-int memcmp(_s1, _s2, n) void *_s1; void *_s2; register n; {
+memcmp(_s1, _s2, n)
+       void *_s1, *_s2;
+       register n;
+{
 #define s1 (*(char **)&_s1)
 #define s2 (*(char **)&_s2)
        while (--n >= 0)
index 5ba956e..29e06af 100644 (file)
@@ -1,5 +1,3 @@
-#include <memory.h>
-
 /*
  * Copyright (c) 1985 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
 static char sccsid[] = "@(#)memcpy.c   5.2 (Berkeley) 86/03/09";
 #endif
 
-void *memcpy(_t, _f, n) void *_t; void *_f; register n; {
+void *
+memcpy(_t, _f, n)
+       void *_t, *_f;
+       register n;
+{
 #define t (*(char **)&_t)
 #define f (*(char **)&_f)
        register char *p = t;
index 4024a8c..7769840 100644 (file)
@@ -1,5 +1,3 @@
-#include <memory.h>
-
 /*
  * Copyright (c) 1985 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
 static char sccsid[] = "@(#)memset.c   5.2 (Berkeley) 86/03/09";
 #endif
 
-void *memset(_s, c, n) void *_s; register c; register n; {
+void *
+memset(_s, c, n)
+       void *_s;
+       register c, n;
+{
 #define s (*(char **)&_s)
        register char *p = s;
 
index 56120c1..8db783b 100644 (file)
@@ -1,5 +1,3 @@
-#include <string.h>
-
 /*
  * Copyright (c) 1980 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -8,7 +6,7 @@
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)strcatn.c  4.3 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
 /*
  * Concatenate s2 on the end of s1.  S1's space must be large enough.
@@ -16,7 +14,11 @@ static char sccsid[] = "@(#)strcatn.c        4.3 (Berkeley) 3/9/86";
  * Return s1.
  */
 
-char *strcatn(s1, s2, n) register char *s1; register char *s2; register n; {
+char *
+strcatn(s1, s2, n)
+register char *s1, *s2;
+register n;
+{
        register char *os1;
 
        os1 = s1;
index 5fc2672..24c9b31 100644 (file)
@@ -1,8 +1,6 @@
-#include <string.h>
-
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)strchr.c   5.2 (Berkeley) 86/03/09";
-#endif
+#endif LIBC_SCCS and not lint
 
 /*
  * Return the ptr in sp at which the character c appears;
@@ -13,7 +11,10 @@ static char sccsid[] = "@(#)strchr.c 5.2 (Berkeley) 86/03/09";
 
 #define        NULL    0
 
-char *strchr(sp, c) register char *sp; int c; {
+char *
+strchr(sp, c)
+register char *sp, c;
+{
        do {
                if (*sp == c)
                        return(sp);
index 182ad22..5e5d4f7 100644 (file)
@@ -1,5 +1,3 @@
-#include <string.h>
-
 /*
  * Copyright (c) 1980 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -8,13 +6,16 @@
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)strcmpn.c  4.3 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
 /*
  * Compare strings (at most n bytes):  s1>s2: >0  s1==s2: 0  s1<s2: <0
  */
 
-int strcmpn(s1, s2, n) register char *s1; register char *s2; register n; {
+strcmpn(s1, s2, n)
+register char *s1, *s2;
+register n;
+{
 
        while (--n >= 0 && *s1 == *s2++)
                if (*s1++ == '\0')
index 83134b8..f791647 100644 (file)
@@ -1,5 +1,3 @@
-#include <string.h>
-
 /*
  * Copyright (c) 1980 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -8,14 +6,17 @@
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)strcpyn.c  4.3 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
 /*
  * Copy s2 to s1, truncating or null-padding to always copy n bytes
  * return s1
  */
 
-char *strcpyn(s1, s2, n) register char *s1; register char *s2; int n; {
+char *
+strcpyn(s1, s2, n)
+register char *s1, *s2;
+{
        register i;
        register char *os1;
 
index 60867ff..f32fa1a 100644 (file)
@@ -1,5 +1,3 @@
-#include <string.h>
-
 /*
  * Copyright (c) 1985 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -14,7 +12,9 @@
 static char sccsid[] = "@(#)strcspn.c  5.2 (Berkeley) 86/03/09";
 #endif
 
-int strcspn(s, set) register char *s; register char *set; {
+strcspn(s, set)
+       register char *s, *set;
+{
        register n = 0;
        register char *p;
        register c;
index 5d2462f..b1a2727 100644 (file)
@@ -1,5 +1,3 @@
-#include <string.h>
-
 /*
  * Copyright (c) 1985 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
 static char sccsid[] = "@(#)strpbrk.c  5.2 (Berkeley) 86/03/09";
 #endif
 
-char *strpbrk(s, brk) register char *s; register char *brk; {
+char *
+strpbrk(s, brk)
+       register char *s, *brk;
+{
        register char *p;
        register c;
 
index 07e8f05..ec71ac6 100644 (file)
@@ -1,8 +1,6 @@
-#include <string.h>
-
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)strrchr.c  5.2 (berkeley) 86/03/09";
-#endif
+#endif LIBC_SCCS and not lint
 
 /*
  * Return the ptr in sp at which the character c last
@@ -13,7 +11,10 @@ static char sccsid[] = "@(#)strrchr.c        5.2 (berkeley) 86/03/09";
 
 #define NULL 0
 
-char *strrchr(sp, c) register char *sp; int c; {
+char *
+strrchr(sp, c)
+register char *sp, c;
+{
        register char *r;
 
        r = NULL;
index af60b4a..8185083 100644 (file)
@@ -1,5 +1,3 @@
-#include <string.h>
-
 /*
  * Copyright (c) 1985 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -14,7 +12,9 @@
 static char sccsid[] = "@(#)strspn.c   5.2 (Berkeley) 86/03/09";
 #endif
 
-int strspn(s, set) register char *s; register char *set; {
+strspn(s, set)
+       register char *s, *set;
+{
        register n = 0;
        register char *p;
        register c;
index 444e9d2..e378a0a 100644 (file)
@@ -1,6 +1,3 @@
-#include <string.h>
-#include <strings.h>
-
 /*
  * Copyright (c) 1980 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
 static char sccsid[] = "@(#)strtok.c   5.2 (Berkeley) 86/03/09";
 #endif
 
-char *strtok(s, sep) register char *s; register char *sep; {
+char *
+strtok(s, sep)
+       register char *s, *sep;
+{
        register char *p;
        register c;
        static char *lasts;
index 5b26914..7b42ba7 100644 (file)
@@ -1,7 +1,3 @@
-#include <compat-sys5.h>
-#include <stdio.h>
-#include <sys/proc.h>
-
 /*
  * Copyright (c) 1980 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -10,9 +6,11 @@
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)tmpnam.c   4.3 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
-char *tmpnam(s) char *s; {
+char *tmpnam(s)
+char *s;
+{
        static seed;
 
        sprintf(s, "temp.%d.%d", getpid(), seed++);
index 094e001..9415798 100644 (file)
@@ -1,4 +1,3 @@
-LD=ld
 #
 # Copyright (c) 1980 Regents of the University of California.
 # All rights reserved.  The Berkeley software License Agreement
@@ -38,10 +37,10 @@ TAGSFILE=tags
 
 .c.o:
        ${CC} -p ${CFLAGS} -c $*.c
-       -${LD} -X -r $*.o
+       -ld -X -r $*.o
        mv a.out profiled/$*.o
        ${CC} ${CFLAGS} -c $*.c
-       -${LD} -x -r $*.o
+       -ld -x -r $*.o
        mv a.out $*.o
 
 genlib genlib_p: ${OBJS}
@@ -50,12 +49,12 @@ genlib genlib_p: ${OBJS}
        @echo "buiding normal genlib"
        @ar cru genlib ${OBJS}
 
-#errlst.o: errlst.c
-#      cc -S ${DEFS} errlst.c
-#      ed - <:errfix errlst.s
-#      as -o errlst.o errlst.s
-#      cp errlst.o profiled/errlst.o
-#      rm errlst.s
+errlst.o: errlst.c
+       cc -S ${DEFS} errlst.c
+       ed - <:errfix errlst.s
+       as -o errlst.o errlst.s
+       cp errlst.o profiled/errlst.o
+       rm errlst.s
 
 tags:
        cwd=`pwd`; \
index 1a59583..f4be53d 100644 (file)
@@ -1,14 +1,10 @@
-#include <gen.h>
-/*#include <setjmp.h> gen.h*/
-#include <sys/file.h>
-
-/*#include <setjmp.h>*/
+#include <setjmp.h>
 
 int _setjmp(e) jmp_buf e; {
        write(2, "_setjmp()\n", 10);
        abort();
 }
-void _longjmp(e, v) jmp_buf e; int v; {
+void _longjmp(e, v) jmp_buf e; {
        write(2, "_longjmp()\n", 11);
        abort();
 }
index 5412dc8..7bb45b6 100644 (file)
@@ -1,7 +1,3 @@
-#include <gen.h>
-/*#include <sys/proc.h> gen.h*/
-/*#include <sys/signal.h> gen.h*/
-
 /*
  * Copyright (c) 1985 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)abort.c    5.3 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
 /* C library -- abort */
 
 #include "signal.h"
 
-int abort() {
+abort()
+{
        sigblock(~0);
        signal(SIGILL, SIG_DFL);
        sigsetmask(~sigmask(SIGILL));
index 5a7d93a..0988e86 100644 (file)
@@ -1,6 +1,3 @@
-#include <gen.h>
-#include <sys/file.h>
-
 int abs(i) int i; {
        write(2, "abs()\n", 6);
        abort();
index 2163d4c..81ed615 100644 (file)
@@ -1,5 +1,3 @@
-#include <sys/time.h>
-
 /*
  * Copyright (c) 1983 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -8,14 +6,16 @@
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)alarm.c    5.2 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
 /*
  * Backwards compatible alarm.
  */
-/*#include <sys/time.h>*/
+#include <sys/time.h>
 
-int alarm(secs) int secs; {
+alarm(secs)
+       int secs;
+{
        struct itimerval it, oitv;
        register struct itimerval *itp = &it;
 
index a653918..1516cf5 100644 (file)
@@ -1,7 +1,3 @@
-#include <gen.h>
-/*#include <math.h> gen.h*/
-#include <sys/file.h>
-
 double atof(s) char *s; {
        write(2, "atof()\n", 7);
        abort();
index e4f968f..e6f7be2 100644 (file)
@@ -1,10 +1,10 @@
-#include <gen.h>
-
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)atoi.c     5.2 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
-int atoi(p) register char *p; {
+atoi(p)
+register char *p;
+{
        register int n;
        register int f;
 
index 8259ae1..bbfab95 100644 (file)
@@ -1,10 +1,11 @@
-#include <gen.h>
-
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)atol.c     5.2 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
-long atol(p) register char *p; {
+long
+atol(p)
+register char *p;
+{
        long n;
        register int f;
 
index 97cfb75..c98c535 100644 (file)
@@ -1,5 +1,3 @@
-#include <strings.h>
-
 /*
  * Copyright (c) 1987 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -8,12 +6,15 @@
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)bcmp.c     5.1 (Berkeley) 1/27/87";
-#endif
+#endif LIBC_SCCS and not lint
 
 /*
  * bcmp -- vax cmpc3 instruction
  */
-int bcmp(_b1, _b2, length) void *_b1; void *_b2; register int length; {
+bcmp(_b1, _b2, length)
+       void *_b1, *_b2;
+       register int length;
+{
 #define b1 (*(char **)&_b1)
 #define b2 (*(char **)&_b2)
        if (length == 0)
index 338e7ef..503440f 100644 (file)
@@ -1,12 +1,3 @@
-#include <strings.h>
-#include <sys/types.h>
-
-#ifdef __STDC__
-#include <stdint.h>
-#else
-typedef int intptr_t;
-#endif
-
 /*
  * Copyright (c) 1987 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -15,17 +6,20 @@ typedef int intptr_t;
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)bcopy.c    5.1 (Berkeley) 1/27/87";
-#endif
+#endif LIBC_SCCS and not lint
 
 /*
  * bcopy -- vax movc3 instruction
  */
-int bcopy(_src, _dst, length) void *_src; void *_dst; register int length; {
+bcopy(_src, _dst, length)
+       void *_src, *_dst;
+       register int length;
+{
 #define src (*(char **)&_src)
 #define dst (*(char **)&_dst)
        if (length && src != dst)
-               if (/*(u_int)*/dst < /*(u_int)*/src)
-                       if (((intptr_t)src | (intptr_t)dst | length) & 3)
+               if ((u_int)dst < (u_int)src)
+                       if (((int)src | (int)dst | length) & 3)
                                do      /* copy by bytes */
                                        *dst++ = *src++;
                                while (--length);
@@ -38,7 +32,7 @@ int bcopy(_src, _dst, length) void *_src; void *_dst; register int length; {
                else {                  /* copy backwards */
                        src += length;
                        dst += length;
-                       if (((intptr_t)src | (intptr_t)dst | length) & 3)
+                       if (((int)src | (int)dst | length) & 3)
                                do      /* copy by bytes */
                                        *--dst = *--src;
                                while (--length);
index 2de2cdf..6a7c786 100644 (file)
@@ -1,5 +1,3 @@
-#include <strings.h>
-
 /*
  * Copyright (c) 1987 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -8,12 +6,15 @@
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)bzero.c    5.1 (Berkeley) 1/27/87";
-#endif
+#endif LIBC_SCCS and not lint
 
 /*
  * bzero -- vax movc5 instruction
  */
-int bzero(_b, length) void *_b; register int length; {
+bzero(_b, length)
+       void *_b;
+       register int length;
+{
 #define b (*(char **)&_b)
        if (length)
                do
index a3965ab..5c5ac2a 100644 (file)
@@ -1,14 +1,14 @@
-#include <gen.h>
-/*#include <strings.h> gen.h*/
-
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)calloc.c   5.2 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
 /*
  * Calloc - allocate and clear memory block
  */
-void *calloc(num, size) register unsigned num; register unsigned size; {
+void *
+calloc(num, size)
+       register unsigned num, size;
+{
        extern void *malloc();
        register void *p;
 
@@ -18,6 +18,10 @@ void *calloc(num, size) register unsigned num; register unsigned size; {
        return (p);
 }
 
-int cfree(p/*, num, size*/) void *p; /*unsigned num; unsigned size;*/ {
+cfree(p, num, size)
+       void *p;
+       unsigned num;
+       unsigned size;
+{
        free(p);
 }
index 3510711..5b15e4d 100644 (file)
@@ -1,7 +1,3 @@
-#include <gen.h>
-/*#include <sys/dir.h> gen.h*/
-#include <sys/file.h>
-
 /*
  * Copyright (c) 1983 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)closedir.c 5.2 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
-/*#include <sys/param.h>*/
-/*#include <sys/dir.h>*/
+#include <sys/param.h>
+#include <sys/dir.h>
 
 /*
  * close a directory.
  */
-void closedir(dirp) register DIR *dirp; {
+void
+closedir(dirp)
+       register DIR *dirp;
+{
        close(dirp->dd_fd);
        dirp->dd_fd = -1;
        dirp->dd_loc = 0;
index 3ea5f87..6c17b88 100644 (file)
@@ -1,8 +1,6 @@
-#include <gen.h>
-
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)crypt.c    5.2 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
 /*
  * This program implements the
@@ -115,7 +113,9 @@ static      char    e[] = {
  * Set up the key schedule from the key.
  */
 
-int setkey(key) char *key; {
+setkey(key)
+char *key;
+{
        register i, j, k;
        int t;
 
@@ -239,7 +239,9 @@ static      char    preS[48];
  * The payoff: encrypt a block.
  */
 
-int encrypt(block, edflag) char *block; int edflag; {
+encrypt(block, edflag)
+char *block;
+{
        int i, ii;
        register t, j, k;
 
@@ -325,7 +327,11 @@ int encrypt(block, edflag) char *block; int edflag; {
                block[j] = L[FP[j]-1];
 }
 
-char *crypt(pw, salt) char *pw; char *salt; {
+char *
+crypt(pw,salt)
+char *pw;
+char *salt;
+{
        register i, j, c;
        int temp;
        static char block[66], iobuf[16];
index 3b87964..3473435 100644 (file)
@@ -1,7 +1,3 @@
-#include <sys/time.h>
-/*#include <sys/types.h> sys/time.h*/
-/*#include <time.h> sys/time.h*/
-
 /*
  * Copyright (c) 1980 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -10,7 +6,7 @@
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)ctime.c    5.5 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
 /*
  * This routine converts time as follows.
@@ -46,12 +42,13 @@ static char sccsid[] = "@(#)ctime.c 5.5 (Berkeley) 3/9/86";
  * ctime(t) just calls localtime, then asctime.
  */
 
-/*#include <sys/time.h>*/
-/*#include <sys/types.h>*/
-/*#include <sys/timeb.h>*/
+#include <sys/time.h>
+#include <sys/types.h>
+#include <sys/timeb.h>
 
 static char    cbuf[26];
-static int     dmsize[12] = {
+static int     dmsize[12] =
+{
        31,
        28,
        31,
@@ -136,21 +133,24 @@ static struct dayrules {
        -1,
 };
 
-/*struct tm    *gmtime();*/
-/*char         *ct_numb();*/
-/*struct tm    *localtime();*/
-/*char *ctime();*/
-/*char *ct_num();*/
-/*char *asctime();*/
-
-static sunday __P((register struct tm *t, register int d));
-static char *ct_numb __P((register char *cp, int n));
+struct tm      *gmtime();
+char           *ct_numb();
+struct tm      *localtime();
+char   *ctime();
+char   *ct_num();
+char   *asctime();
 
-char *ctime(t) time_t *t; {
+char *
+ctime(t)
+time_t *t;
+{
        return(asctime(localtime(t)));
 }
 
-struct tm *localtime(tim) time_t *tim; {
+struct tm *
+localtime(tim)
+time_t *tim;
+{
        register int dayno;
        register struct tm *ct;
        register dalybeg, daylend;
@@ -211,13 +211,20 @@ struct tm *localtime(tim) time_t *tim; {
  * The value is the day number of the last
  * Sunday on or before the day.
  */
-static sunday(t, d) register struct tm *t; register int d; {
+static
+sunday(t, d)
+register struct tm *t;
+register int d;
+{
        if (d >= 58)
                d += dysize(t->tm_year) - 365;
        return(d - (d - t->tm_yday + t->tm_wday + 700) % 7);
 }
 
-struct tm *gmtime(tim) time_t *tim; {
+struct tm *
+gmtime(tim)
+time_t *tim;
+{
        register int d0, d1;
        long hms, day;
        register int *tp;
@@ -276,7 +283,10 @@ struct tm *gmtime(tim) time_t *tim; {
        return(&xtime);
 }
 
-char *asctime(t) struct tm *t; {
+char *
+asctime(t)
+struct tm *t;
+{
        register char *cp, *ncp;
        register int *tp;
 
@@ -306,13 +316,17 @@ char *asctime(t) struct tm *t; {
        return(cbuf);
 }
 
-int dysize(y) int y; {
+dysize(y)
+{
        if((y%4) == 0)
                return(366);
        return(365);
 }
 
-static char *ct_numb(cp, n) register char *cp; int n; {
+static char *
+ct_numb(cp, n)
+register char *cp;
+{
        cp++;
        if (n>=10)
                *cp++ = (n/10)%10 + '0';
index e981d94..c64d586 100644 (file)
@@ -1,10 +1,8 @@
-#include <ctype.h>
-
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)ctype_.c   5.4 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
-/*#include     <ctype.h>*/
+#include       <ctype.h>
 
 char _ctype_[1 + 256] = {
        0,
index 8978ce4..4546c53 100644 (file)
@@ -1,9 +1,3 @@
-#include <ctype.h>
-#include <disktab.h>
-#include <stdio.h>
-#include <strings.h>
-#include <sys/file.h>
-
 /*
  * Copyright (c) 1983 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)disktab.c  5.3 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
-/*#include <disktab.h>*/
-/*#include <stdio.h>*/
-
-/*static       char *dgetstr();*/
+#include <disktab.h>
+#include <stdio.h>
 
-static dgetent __P((char *bp, char *name));
-static dnamatch __P((char *np));
-static char *dskip __P((register char *bp));
-static dgetnum __P((char *id));
-static dgetflag __P((char *id));
-static char *dgetstr __P((char *id, char **area));
-static char *ddecode __P((register char *str, char **area));
+static char *dgetstr();
 
-struct disktab *getdiskbyname(name) char *name; {
+struct disktab *
+getdiskbyname(name)
+       char *name;
+{
        static struct disktab disk;
        static char localbuf[100], *cp = localbuf;
        register struct disktab *dp = &disk;
@@ -65,18 +54,21 @@ struct disktab *getdiskbyname(name) char *name; {
        return (dp);
 }
 
-/*#include <ctype.h>*/
+#include <ctype.h>
 
 static char *tbuf;
-/*static       char *dskip();*/
-/*static       char *ddecode();*/
+static char *dskip();
+static char *ddecode();
 
 /*
  * Get an entry for disk name in buffer bp,
  * from the diskcap file.  Parse is very rudimentary;
  * we just notice escaped newlines.
  */
-static dgetent(bp, name) char *bp; char *name; {
+static
+dgetent(bp, name)
+       char *bp, *name;
+{
        register char *cp;
        register int c;
        register int i = 0, cnt = 0;
@@ -130,7 +122,10 @@ static dgetent(bp, name) char *bp; char *name; {
  * against each such name.  The normal : terminator after the last
  * name (before the first field) stops us.
  */
-static dnamatch(np) char *np; {
+static
+dnamatch(np)
+       char *np;
+{
        register char *Np, *Bp;
 
        Bp = tbuf;
@@ -154,7 +149,10 @@ static dnamatch(np) char *np; {
  * knowing about \: escapes or any such.  If necessary, :'s can be put
  * into the diskcap file in octal.
  */
-static char *dskip(bp) register char *bp; {
+static char *
+dskip(bp)
+       register char *bp;
+{
 
        while (*bp && *bp != ':')
                bp++;
@@ -171,7 +169,10 @@ static char *dskip(bp) register char *bp; {
  * a # character.  If the option is not found we return -1.
  * Note that we handle octal numbers beginning with 0.
  */
-static dgetnum(id) char *id; {
+static
+dgetnum(id)
+       char *id;
+{
        register int i, base;
        register char *bp = tbuf;
 
@@ -202,7 +203,10 @@ static dgetnum(id) char *id; {
  * of the buffer.  Return 1 if we find the option, or 0 if it is
  * not given.
  */
-static dgetflag(id) char *id; {
+static
+dgetflag(id)
+       char *id;
+{
        register char *bp = tbuf;
 
        for (;;) {
@@ -226,7 +230,10 @@ static dgetflag(id) char *id; {
  * placed in area, which is a ref parameter which is updated.
  * No checking on area overflow.
  */
-static char *dgetstr(id, area) char *id; char **area; {
+static char *
+dgetstr(id, area)
+       char *id, **area;
+{
        register char *bp = tbuf;
 
        for (;;) {
@@ -248,7 +255,11 @@ static char *dgetstr(id, area) char *id; char **area; {
  * Tdecode does the grung work to decode the
  * string capability escapes.
  */
-static char *ddecode(str, area) register char *str; char **area; {
+static char *
+ddecode(str, area)
+       register char *str;
+       char **area;
+{
        register char *cp;
        register int c;
        register char *dp;
index 6eaf580..fd84d3b 100644 (file)
@@ -1,9 +1,6 @@
-#include <gen.h>
-/*#include <math.h> gen.h*/
-
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)ecvt.c     5.1 (Berkeley) 3/15/86";
-#endif
+#endif LIBC_SCCS and not lint
 
 /*
  *     ecvt converts to decimal
@@ -12,20 +9,30 @@ static char sccsid[] = "@(#)ecvt.c   5.1 (Berkeley) 3/15/86";
  *     sign is set to 0 for positive, 1 for negative
  */
 
-/*char *cvt();*/
+char   *cvt();
 
 #define        NDIG    80
-static char *cvt __P((double arg, int ndigits, int *decpt, int *sign, int eflag));
-
-char *ecvt(arg, ndigits, decpt, sign) double arg; int ndigits; int *decpt; int *sign; {
+char*
+ecvt(arg, ndigits, decpt, sign)
+double arg;
+int ndigits, *decpt, *sign;
+{
        return(cvt(arg, ndigits, decpt, sign, 1));
 }
 
-char *fcvt(arg, ndigits, decpt, sign) double arg; int ndigits; int *decpt; int *sign; {
+char*
+fcvt(arg, ndigits, decpt, sign)
+double arg;
+int ndigits, *decpt, *sign;
+{
        return(cvt(arg, ndigits, decpt, sign, 0));
 }
 
-static char *cvt(arg, ndigits, decpt, sign, eflag) double arg; int ndigits; int *decpt; int *sign; int eflag; {
+static char*
+cvt(arg, ndigits, decpt, sign, eflag)
+double arg;
+int ndigits, *decpt, *sign;
+{
        register int r2;
        double fi, fj;
        register char *p, *p1;
index 0e8a39f..405d2c0 100644 (file)
@@ -6,7 +6,7 @@
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)errlst.c   5.2 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
 char   *sys_errlist[] = {
        "Error 0",
index 2d01687..fdd4d69 100644 (file)
@@ -1,31 +1,27 @@
-#include <gen.h>
-/*#include <strings.h> gen.h*/
-/*#include <sys/errno.h> gen.h*/
-/*#include <sys/exec.h> gen.h*/
-/*#include <sys/time.h> gen.h*/
-
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)execvp.c   5.2 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
 /*
  *     execlp(name, arg,...,0) (like execl, but does path search)
  *     execvp(name, argv)      (like execv, but does path search)
  */
-/*#include <errno.h>*/
+#include <errno.h>
 #define        NULL    0
 
 static char shell[] =  "/bin/sh";
-/*char *execat(), *getenv();*/
+char   *execat(), *getenv();
 extern errno;
 
-static char *execat __P((register char *s1, register char *s2, char *si));
-
-int execlp(name, argv) char *name; char *argv; {
+execlp(name, argv)
+char *name, *argv;
+{
        return(execvp(name, &argv));
 }
 
-int execvp(name, argv) char *name; char **argv; {
+execvp(name, argv)
+char *name, **argv;
+{
        char *pathstr;
        register char *cp;
        char fname[128];
@@ -72,7 +68,11 @@ int execvp(name, argv) char *name; char **argv; {
        return(-1);
 }
 
-static char *execat(s1, s2, si) register char *s1; register char *s2; char *si; {
+static char *
+execat(s1, s2, si)
+register char *s1, *s2;
+char *si;
+{
        register char *s;
 
        s = si;
index c0c3eed..e737ba2 100644 (file)
@@ -1,13 +1,12 @@
-#include <gen.h>
-#include <stdio.h>
-
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)fakcu.c    5.2 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
 /*
  * Null cleanup routine to resolve reference in exit() 
  * if not using stdio.
  */
-void _cleanup() {
+void
+_cleanup()
+{
 }
index e18dca5..9cdd64b 100644 (file)
@@ -1,5 +1,3 @@
-#include <gen.h>
-
 /*
  * Copyright (c) 1987 Regents of the University of California.
  * All rights reserved.
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)ffs.c      5.2 (Berkeley) 6/27/88";
-#endif
+#endif /* LIBC_SCCS and not lint */
 
 /*
  * ffs -- vax ffs instruction
  */
-int ffs(mask) register long mask; {
+ffs(mask)
+       register long mask;
+{
        register int cnt;
 
        if (mask == 0)
index dd9a21a..c1c727f 100644 (file)
@@ -1,8 +1,6 @@
-#include <math.h>
-
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)frexp.c    5.2 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
 /*
  *     the call
@@ -14,7 +12,11 @@ static char sccsid[] = "@(#)frexp.c  5.2 (Berkeley) 3/9/86";
  *     if the argument is 0.0, return 0.0 mantissa and 0 exponent.
  */
 
-double frexp(x, i) double x; int *i; {
+double
+frexp(x,i)
+double x;
+int *i;
+{
        int neg;
        int j;
        j = 0;
index 9d49213..fab4d13 100644 (file)
@@ -1,8 +1,3 @@
-#include <ctype.h>
-#include <fstab.h>
-#include <stdio.h>
-#include <strings.h>
-
 /*
  * Copyright (c) 1980 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)fstab.c    5.2 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
-/*#include <fstab.h>*/
-/*#include <stdio.h>*/
-/*#include <ctype.h>*/
+#include <fstab.h>
+#include <stdio.h>
+#include <ctype.h>
 
 static struct fstab fs;
 static char line[BUFSIZ+1];
 static FILE *fs_file = 0;
 
-static char *fsskip __P((register char *p));
-static char *fsdigit __P((int *backp, char *string, int end));
-static fstabscan __P((struct fstab *fs));
-
-static char *fsskip(p) register char *p; {
+static char *
+fsskip(p)
+       register char *p;
+{
 
        while (*p && *p != ':')
                ++p;
@@ -34,7 +28,11 @@ static char *fsskip(p) register char *p; {
        return (p);
 }
 
-static char *fsdigit(backp, string, end) int *backp; char *string; int end; {
+static char *
+fsdigit(backp, string, end)
+       int *backp;
+       char *string, end;
+{
        register int value = 0;
        register char *cp;
 
@@ -52,7 +50,10 @@ static char *fsdigit(backp, string, end) int *backp; char *string; int end; {
        return (cp+1);
 }
 
-static fstabscan(fs) struct fstab *fs; {
+static
+fstabscan(fs)
+       struct fstab *fs;
+{
        register char *cp;
 
        cp = fgets(line, 256, fs_file);
@@ -73,7 +74,8 @@ static fstabscan(fs) struct fstab *fs; {
        return (5);
 }
        
-int setfsent() {
+setfsent()
+{
 
        if (fs_file)
                endfsent();
@@ -84,7 +86,8 @@ int setfsent() {
        return (1);
 }
 
-int endfsent() {
+endfsent()
+{
 
        if (fs_file) {
                fclose(fs_file);
@@ -93,7 +96,9 @@ int endfsent() {
        return (1);
 }
 
-struct fstab *getfsent() {
+struct fstab *
+getfsent()
+{
        int nfields;
 
        if ((fs_file == 0) && (setfsent() == 0))
@@ -104,7 +109,10 @@ struct fstab *getfsent() {
        return (&fs);
 }
 
-struct fstab *getfsspec(name) char *name; {
+struct fstab *
+getfsspec(name)
+       char *name;
+{
        register struct fstab *fsp;
 
        if (setfsent() == 0)    /* start from the beginning */
@@ -115,7 +123,10 @@ struct fstab *getfsspec(name) char *name; {
        return ((struct fstab *)0);
 }
 
-struct fstab *getfsfile(name) char *name; {
+struct fstab *
+getfsfile(name)
+       char *name;
+{
        register struct fstab *fsp;
 
        if (setfsent() == 0)    /* start from the beginning */
@@ -126,7 +137,10 @@ struct fstab *getfsfile(name) char *name; {
        return ((struct fstab *)0);
 }
 
-struct fstab *getfstype(type) char *type; {
+struct fstab *
+getfstype(type)
+       char *type;
+{
        register struct fstab *fs;
 
        if (setfsent() == 0)
index a2693be..e78925d 100644 (file)
@@ -1,17 +1,19 @@
-#include <gen.h>
-
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)gcvt.c     5.2 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
 /*
  * gcvt  - Floating output conversion to
  * minimal length string
  */
 
-/*char *ecvt();*/
+char   *ecvt();
 
-char *gcvt(number, ndigit, buf) double number; int ndigit; char *buf; {
+char *
+gcvt(number, ndigit, buf)
+double number;
+char *buf;
+{
        int sign, decpt;
        register char *p1, *p2;
        register i;
index f92d294..7da3627 100644 (file)
@@ -1,8 +1,6 @@
-#include <gen.h>
-
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)getenv.c   5.2 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
 /*
  *     getenv(name)
@@ -10,11 +8,12 @@ static char sccsid[] = "@(#)getenv.c 5.2 (Berkeley) 3/9/86";
  */
 #define NULL   0
 extern char **environ;
-/*char *nvmatch();*/
-
-static char *nvmatch __P((register char *s1, register char *s2));
+char   *nvmatch();
 
-char *getenv(name) register char *name; {
+char *
+getenv(name)
+register char *name;
+{
        register char **p = environ;
        register char *v;
 
@@ -31,7 +30,10 @@ char *getenv(name) register char *name; {
  *     used for environment searching: see getenv
  */
 
-static char *nvmatch(s1, s2) register char *s1; register char *s2; {
+static char *
+nvmatch(s1, s2)
+register char *s1, *s2;
+{
 
        while (*s1 == *s2++)
                if (*s1++ == '=')
index 35e644c..dbd487c 100644 (file)
@@ -1,13 +1,9 @@
-#include <gen.h>
-/*#include <grp.h> gen.h*/
-#include <stdio.h>
-
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)getgrent.c 5.2 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
-/*#include <stdio.h>*/
-/*#include <grp.h>*/
+#include <stdio.h>
+#include <grp.h>
 
 #define        MAXGRP  200
 
@@ -17,29 +13,35 @@ static char line[BUFSIZ+1];
 static struct group group;
 static char *gr_mem[MAXGRP];
 
-static char *grskip __P((register char *p, register c));
-
-int setgrent() {
+setgrent()
+{
        if( !grf )
                grf = fopen( GROUP, "r" );
        else
                rewind( grf );
 }
 
-int endgrent() {
+endgrent()
+{
        if( grf ){
                fclose( grf );
                grf = NULL;
        }
 }
 
-static char *grskip(p, c) register char *p; register c; {
+static char *
+grskip(p,c)
+register char *p;
+register c;
+{
        while( *p && *p != c ) ++p;
        if( *p ) *p++ = 0;
        return( p );
 }
 
-struct group *getgrent() {
+struct group *
+getgrent()
+{
        register char *p, **q;
 
        if( !grf && !(grf = fopen( GROUP, "r" )) )
index ed5e853..d7c07fe 100644 (file)
@@ -1,12 +1,13 @@
-#include <grp.h>
-
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)getgrgid.c 5.2 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
-/*#include <grp.h>*/
+#include <grp.h>
 
-struct group *getgrgid(gid) register gid; {
+struct group *
+getgrgid(gid)
+register gid;
+{
        register struct group *p;
        struct group *getgrent();
 
index 65c1b9f..5e12284 100644 (file)
@@ -1,13 +1,13 @@
-#include <grp.h>
-#include <strings.h>
-
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)getgrnam.c 5.2 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
-/*#include <grp.h>*/
+#include <grp.h>
 
-struct group *getgrnam(name) register char *name; {
+struct group *
+getgrnam(name)
+register char *name;
+{
        register struct group *p;
        struct group *getgrent();
 
index 2cc87f3..6988fba 100644 (file)
@@ -1,16 +1,15 @@
-#include <sys/file.h>
-#include <utmp.h>
-
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)getlogin.c 5.3 (Berkeley) 5/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
-/*#include <utmp.h>*/
+#include <utmp.h>
 
 static char UTMP[]     = "/etc/utmp";
 static struct utmp ubuf;
 
-char *getlogin() {
+char *
+getlogin()
+{
        register int me, uf;
        register char *cp;
 
index 5c21ee4..a782812 100644 (file)
@@ -1,18 +1,15 @@
-#include <gen.h>
-#include <stdio.h>
-#include <sys/file.h>
-#include <sys/ioctl.h>
-/*#include <sys/signal.h> gen.h*/
-
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)getpass.c  5.2 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
-/*#include <stdio.h>*/
-/*#include <signal.h>*/
-/*#include <sgtty.h>*/
+#include <stdio.h>
+#include <signal.h>
+#include <sgtty.h>
 
-char *getpass(prompt) char *prompt; {
+char *
+getpass(prompt)
+char *prompt;
+{
        struct sgttyb ttyb;
        int flags;
        register char *p;
@@ -20,7 +17,7 @@ char *getpass(prompt) char *prompt; {
        FILE *fi;
        static char pbuf[9];
        void (*signal())();
-       void (*sig) __P((int sig));
+       void (*sig)();
 
        if ((fi = fdopen(open("/dev/tty", 2), "r")) == NULL)
                fi = stdin;
index 2425072..6ac2c73 100644 (file)
@@ -1,8 +1,3 @@
-#include <gen.h>
-/*#include <ndbm.h> gen.h*/
-/*#include <pwd.h> gen.h*/
-#include <stdio.h>
-
 /*
  * Copyright (c) 1984 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)getpwent.c 5.2 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
-/*#include <stdio.h>*/
-/*#include <pwd.h>*/
-/*#include <ndbm.h>*/
+#include <stdio.h>
+#include <pwd.h>
+#include <ndbm.h>
 
 static char EMPTY[] = "";
 static FILE *pwf = NULL;
@@ -29,16 +24,16 @@ char        *_pw_file = "/etc/passwd";
 DBM    *_pw_db;
 int    _pw_stayopen;
 
-static char *pwskip __P((register char *p));
-
-int setpwent() {
+setpwent()
+{
        if (pwf == NULL)
                pwf = fopen(_pw_file, "r");
        else
                rewind(pwf);
 }
 
-int endpwent() {
+endpwent()
+{
        if (pwf != NULL) {
                fclose(pwf);
                pwf = NULL;
@@ -50,7 +45,10 @@ int endpwent() {
        }
 }
 
-static char *pwskip(p) register char *p; {
+static char *
+pwskip(p)
+register char *p;
+{
        while (*p && *p != ':' && *p != '\n')
                ++p;
        if (*p)
@@ -58,7 +56,9 @@ static char *pwskip(p) register char *p; {
        return(p);
 }
 
-struct passwd *getpwent() {
+struct passwd *
+getpwent()
+{
        register char *p;
 
        if (pwf == NULL) {
@@ -89,6 +89,8 @@ struct passwd *getpwent() {
        return(&passwd);
 }
 
-int setpwfile(file) char *file; {
+setpwfile(file)
+       char *file;
+{
        _pw_file = file;
 }
index 6d2ab2f..44865b8 100644 (file)
@@ -1,9 +1,3 @@
-#include <ndbm.h>
-#include <pwd.h>
-#include <stdio.h>
-#include <strings.h>
-#include <sys/file.h>
-
 /*
  * Copyright (c) 1983 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)getpwnamuid.c      5.2 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
-/*#include <stdio.h>*/
-/*#include <pwd.h>*/
-/*#include <ndbm.h>*/
+#include <stdio.h>
+#include <pwd.h>
+#include <ndbm.h>
 
-/*#include <sys/file.h>*/
+#include <sys/file.h>
 
 static char line[BUFSIZ+1];
 static struct passwd passwd;
@@ -30,9 +24,10 @@ extern       char *_pw_file;
 DBM    *_pw_db;
 int    _pw_stayopen;
 
-static struct passwd *fetchpw __P((datum key));
-
-static struct passwd *fetchpw(key) datum key; {
+static struct passwd *
+fetchpw(key)
+       datum key;
+{
         register char *cp, *tp;
 
         if (key.dptr == 0)
@@ -43,41 +38,26 @@ static struct passwd *fetchpw(key) datum key; {
         cp = key.dptr;
        tp = line;
 
-#ifdef __STDC__
-#define        EXPAND(e)       passwd.pw_ ## e = tp; while (*tp++ = *cp++);
-#else
 #define        EXPAND(e)       passwd.pw_/**/e = tp; while (*tp++ = *cp++);
-#endif
-#ifdef X_
-/* without this adjustment it tries to access x_passwd.x_pw_x_name etc */
-       EXPAND(nox_name);
-       EXPAND(nox_passwd);
-#else
        EXPAND(name);
        EXPAND(passwd);
-#endif
        bcopy(cp, (char *)&passwd.pw_uid, sizeof (int));
        cp += sizeof (int);
        bcopy(cp, (char *)&passwd.pw_gid, sizeof (int));
        cp += sizeof (int);
        bcopy(cp, (char *)&passwd.pw_quota, sizeof (int));
        cp += sizeof (int);
-#ifdef X_
-/* without this adjustment it tries to access x_passwd.x_pw_x_name etc */
-       EXPAND(nox_comment);
-       EXPAND(nox_gecos);
-       EXPAND(nox_dir);
-       EXPAND(nox_shell);
-#else
        EXPAND(comment);
        EXPAND(gecos);
        EXPAND(dir);
        EXPAND(shell);
-#endif
         return (&passwd);
 }
 
-struct passwd *getpwnam(nam) char *nam; {
+struct passwd *
+getpwnam(nam)
+       char *nam;
+{
         datum key;
        register struct passwd *pw;
 
@@ -107,7 +87,10 @@ struct passwd *getpwnam(nam) char *nam; {
         return (pw);
 }
 
-struct passwd *getpwuid(uid) int uid; {
+struct passwd *
+getpwuid(uid)
+       int uid;
+{
         datum key;
        register struct passwd *pw;
 
index 1a01c5d..164c6b3 100644 (file)
@@ -1,7 +1,3 @@
-#include <stdio.h>
-#include <strings.h>
-#include <ttyent.h>
-
 /*
  * Copyright (c) 1985 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)getttyent.c        5.4 (Berkeley) 5/19/86";
-#endif
+#endif LIBC_SCCS and not lint
 
-/*#include <stdio.h>*/
-/*#include <strings.h>*/
-/*#include <ttyent.h>*/
+#include <stdio.h>
+#include <strings.h>
+#include <ttyent.h>
 
 static char TTYFILE[] = "/etc/ttys";
 static char zapchar;
@@ -23,17 +19,16 @@ static FILE *tf = NULL;
 static char line[LINE];
 static struct ttyent tty;
 
-static char *skip __P((register char *p));
-static char *value __P((register char *p));
-
-int setttyent() {
+setttyent()
+{
        if (tf == NULL)
                tf = fopen(TTYFILE, "r");
        else
                rewind(tf);
 }
 
-int endttyent() {
+endttyent()
+{
        if (tf != NULL) {
                (void) fclose(tf);
                tf = NULL;
@@ -46,7 +41,10 @@ int endttyent() {
  * Skip over the current field, removing quotes,
  * and return a pointer to the next field.
  */
-static char *skip(p) register char *p; {
+static char *
+skip(p)
+       register char *p;
+{
        register char *t = p;
        register int c;
        register int q = 0;
@@ -78,14 +76,19 @@ static char *skip(p) register char *p; {
        return (p);
 }
 
-static char *value(p) register char *p; {
+static char *
+value(p)
+       register char *p;
+{
        if ((p = index(p,'=')) == 0)
                return(NULL);
        p++;                    /* get past the = sign */
        return(p);
 }
 
-struct ttyent *getttyent() {
+struct ttyent *
+getttyent()
+{
        register char *p;
        register int c;
 
index 2e499d0..f947abd 100644 (file)
@@ -1,6 +1,3 @@
-#include <strings.h>
-#include <ttyent.h>
-
 /*
  * Copyright (c) 1983 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -9,11 +6,14 @@
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)getttynam.c        5.2 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
-/*#include <ttyent.h>*/
+#include <ttyent.h>
 
-struct ttyent *getttynam(tty) char *tty; {
+struct ttyent *
+getttynam(tty)
+       char *tty;
+{
        register struct ttyent *t;
 
        setttyent();
index 054a7a0..24258e7 100644 (file)
@@ -1,9 +1,3 @@
-/*#include <ctype.h> gen.h*/
-#include <gen.h>
-#include <stdio.h>
-/*#include <sys/param.h> gen.h*/
-#include <sys/stat.h>
-
 /*
  * Copyright (c) 1985 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)getusershell.c     5.4 (Berkeley) 7/25/86";
-#endif
+#endif LIBC_SCCS and not lint
 
-/*#include <sys/param.h>*/
-/*#include <sys/file.h>*/
-/*#include <sys/stat.h>*/
-/*#include <ctype.h>*/
-/*#include <stdio.h>*/
+#include <sys/param.h>
+#include <sys/file.h>
+#include <sys/stat.h>
+#include <ctype.h>
+#include <stdio.h>
 
 #define SHELLS "/etc/shells"
 
@@ -30,14 +24,14 @@ static char *okshells[] =
 
 static char **shells, *strings;
 static char **curshell = NULL;
-/*extern char **initshells();*/
+extern char **initshells();
 
 /*
  * Get a list of shells from SHELLS, if it exists.
  */
-static char **initshells __P((void));
-
-char *getusershell() {
+char *
+getusershell()
+{
        char *ret;
 
        if (curshell == NULL)
@@ -48,7 +42,8 @@ char *getusershell() {
        return (ret);
 }
 
-int endusershell() {
+endusershell()
+{
        
        if (shells != NULL)
                free((char *)shells);
@@ -59,12 +54,15 @@ int endusershell() {
        curshell = NULL;
 }
 
-int setusershell() {
+setusershell()
+{
 
        curshell = initshells();
 }
 
-static char **initshells() {
+static char **
+initshells()
+{
        register char **sp, *cp;
        register FILE *fp;
        struct stat statb;
index 85a92dd..ac4005a 100644 (file)
@@ -1,9 +1,3 @@
-#include <strings.h>
-#include <sys/dir.h>
-/*#include <sys/param.h> sys/dir.h*/
-#include <sys/stat.h>
-/*#include <sys/types.h> sys/dir.h*/
-
 /*
  * Copyright (c) 1980 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)getwd.c    5.2 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
 /*
  * getwd() returns the pathname of the current working directory. On error
  * an error message is copied to pathname and null pointer is returned.
  */
-/*#include <sys/param.h>*/
-/*#include <sys/stat.h>*/
-/*#include <sys/dir.h>*/
+#include <sys/param.h>
+#include <sys/stat.h>
+#include <sys/dir.h>
 
 #define GETWDERR(s)    strcpy(pathname, (s));
 
-/*char *strcpy();*/
+char *strcpy();
 static int pathsize;                   /* pathname length */
 
-static char *prepend __P((register char *dirname, register char *pathname));
-
-char *getwd(pathname) char *pathname; {
+char *
+getwd(pathname)
+       char *pathname;
+{
        char pathbuf[MAXPATHLEN];               /* temporary pathname buffer */
        char *pnptr = &pathbuf[(sizeof pathbuf)-1]; /* pathname pointer */
        char curdir[MAXPATHLEN];        /* current directory buffer */
@@ -103,7 +98,11 @@ char *getwd(pathname) char *pathname; {
 /*
  * prepend() tacks a directory name onto the front of a pathname.
  */
-static char *prepend(dirname, pathname) register char *dirname; register char *pathname; {
+static char *
+prepend(dirname, pathname)
+       register char *dirname;
+       register char *pathname;
+{
        register int i;                 /* directory name size counter */
 
        for (i = 0; *dirname != '\0'; i++, dirname++)
index 0720e4f..6a6871c 100644 (file)
@@ -1,8 +1,6 @@
-#include <strings.h>
-
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)index.c    5.2 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
 /*
  * Return the ptr in sp at which the character c appears;
@@ -11,7 +9,10 @@ static char sccsid[] = "@(#)index.c   5.2 (Berkeley) 3/9/86";
 
 #define        NULL    0
 
-char *index(sp, c) register char *sp; int c; {
+char *
+index(sp, c)
+register char *sp, c;
+{
        do {
                if (*sp == c)
                        return(sp);
index fab5ed1..362e3e6 100644 (file)
@@ -1,10 +1,3 @@
-#include <grp.h>
-#include <stdio.h>
-#include <strings.h>
-#include <sys/errno.h>
-#include <sys/param.h>
-#include <sys/proc.h>
-
 /*
  * Copyright (c) 1983 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)initgroups.c       5.3 (Berkeley) 4/27/86";
-#endif
+#endif LIBC_SCCS and not lint
 
 /*
  * initgroups
  */
-/*#include <stdio.h>*/
-/*#include <sys/param.h>*/
-/*#include <grp.h>*/
+#include <stdio.h>
+#include <sys/param.h>
+#include <grp.h>
 
-/*struct group *getgrent();*/
+struct group *getgrent();
 
-int initgroups(uname, agroup) char *uname; int agroup; {
+initgroups(uname, agroup)
+       char *uname;
+       int agroup;
+{
        int groups[NGROUPS], ngroups = 0;
        register struct group *grp;
        register int i;
index 23d9a38..9ea7b25 100644 (file)
@@ -1,5 +1,3 @@
-#include <gen.h>
-
 /*
  * Copyright (c) 1987 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -8,9 +6,9 @@
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)insque.c   5.1 (Berkeley) 1/27/87";
-#endif
+#endif LIBC_SCCS and not lint
 
-/*#include <gen.h>*/
+#include <gen.h>
 
 /*
  * insque -- vax insque instruction
@@ -24,7 +22,9 @@ static char sccsid[] = "@(#)insque.c  5.1 (Berkeley) 1/27/87";
 /*     struct vaxque   *vq_prev;*/
 /*};*/
 
-int insque(e, prev) register struct vaxque *e; register struct vaxque *prev; {
+insque(e, prev)
+       register struct vaxque *e, *prev;
+{
        e->vq_prev = prev;
        e->vq_next = prev->vq_next;
        prev->vq_next->vq_prev = e;
index e58008b..c94cfdf 100644 (file)
@@ -1,8 +1,4 @@
-#include <gen.h>
-/*#include <math.h> gen.h*/
-#include <sys/file.h>
-
-double ldexp(v, e) double v; int e; {
+double ldexp(v, e) double v; {
        write(2, "ldexp()\n", 8);
        abort();
 }
index 5731d0c..27bb9b4 100644 (file)
@@ -1,16 +1,3 @@
-#include <gen.h>
-#include <stdio.h>
-/*#include <strings.h> gen.h*/
-#include <sys.h>
-/*#include <sys/proc.h> gen.h*/
-/*#include <sys/types.h> gen.h*/
-
-#ifdef __STDC__
-#include <stdint.h>
-#else
-typedef int intptr_t;
-#endif
-
 /*
  * Copyright (c) 1983 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -19,7 +6,7 @@ typedef int intptr_t;
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)malloc.c   5.6 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
 /*
  * malloc.c (Caltech) 2/21/82
@@ -32,7 +19,7 @@ static char sccsid[] = "@(#)malloc.c  5.6 (Berkeley) 3/9/86";
  * This is designed for use in a virtual memory environment.
  */
 
-/*#include <sys/types.h>*/
+#include <sys/types.h>
 
 #define        NULL 0
 
@@ -78,7 +65,7 @@ union overhead {
  */
 #define        NBUCKETS 30
 static union overhead *nextf[NBUCKETS];
-/*extern       char *sbrk();*/
+extern char *sbrk();
 
 static int pagesz;                     /* page size */
 static int pagebucket;                 /* page size bucket */
@@ -89,13 +76,16 @@ static      int pagebucket;                 /* page size bucket */
  * for a given block size.
  */
 static u_int nmalloc[NBUCKETS];
-/*#include <stdio.h>*/
+#include <stdio.h>
 #endif
 
 #if defined(DEBUG) || defined(RCHECK)
 #define        ASSERT(p)   if (!(p)) botch("p")
-/*#include <stdio.h>*/
-static void botch(s) char *s; {
+#include <stdio.h>
+static void
+botch(s)
+       char *s;
+{
        fprintf(stderr, "\r\nassertion botched: %s\r\n", s);
        (void) fflush(stderr);          /* just in case user buffered it */
        abort();
@@ -104,9 +94,10 @@ static void botch(s) char *s; {
 #define        ASSERT(p)
 #endif
 
-static findbucket __P((union overhead *freep, int srchlen));
-
-void *malloc(nbytes) unsigned nbytes; {
+void *
+malloc(nbytes)
+       unsigned nbytes;
+{
        register union overhead *op;
        register int bucket;
        register unsigned amt, n;
@@ -118,7 +109,7 @@ void *malloc(nbytes) unsigned nbytes; {
        if (pagesz == 0) {
                pagesz = n = getpagesize();
                op = (union overhead *)sbrk(0);
-               n = n - sizeof (*op) - ((intptr_t)op & (n - 1));
+               n = n - sizeof (*op) - ((int)op & (n - 1));
                if (n < 0)
                        n += pagesz;
                if (n) {
@@ -146,7 +137,7 @@ void *malloc(nbytes) unsigned nbytes; {
                amt = 16;       /* size of first bucket */
                bucket = 1;
 #endif
-               n = -(intptr_t)(sizeof (*op) + RSLOP);
+               n = -(sizeof (*op) + RSLOP);
        } else {
                amt = pagesz;
                bucket = pagebucket;
@@ -188,7 +179,10 @@ void *malloc(nbytes) unsigned nbytes; {
 /*
  * Allocate more memory to the indicated bucket.
  */
-void morecore(bucket) int bucket; {
+void
+morecore(bucket)
+       int bucket;
+{
        register union overhead *op;
        register int sz;                /* size of desired block */
        int amt;                        /* amount to allocate */
@@ -214,7 +208,7 @@ void morecore(bucket) int bucket; {
        }
        op = (union overhead *)sbrk(amt);
        /* no more room! */
-       if ((intptr_t)op == -1)
+       if ((int)op == -1)
                return;
        /*
         * Add new memory allocated to that on
@@ -227,7 +221,10 @@ void morecore(bucket) int bucket; {
        }
 }
 
-void free(cp) void *cp; {
+void
+free(cp)
+       void *cp;
+{
        register int size;
        register union overhead *op;
 
@@ -266,7 +263,11 @@ void free(cp) void *cp; {
  */
 int realloc_srchlen = 4;       /* 4 should be plenty, -1 =>'s whole list */
 
-void *realloc(cp, nbytes) void *cp; unsigned nbytes; {
+void *
+realloc(cp, nbytes)
+       void *cp; 
+       unsigned nbytes;
+{
        register u_int onb, i;
        union overhead *op;
        char *res;
@@ -332,7 +333,11 @@ void *realloc(cp, nbytes) void *cp; unsigned nbytes; {
  * header starts at ``freep''.  If srchlen is -1 search the whole list.
  * Return bucket number, or -1 if not found.
  */
-static findbucket(freep, srchlen) union overhead *freep; int srchlen; {
+static
+findbucket(freep, srchlen)
+       union overhead *freep;
+       int srchlen;
+{
        register union overhead *p;
        register int i, j;
 
@@ -355,7 +360,10 @@ static findbucket(freep, srchlen) union overhead *freep; int srchlen; {
  * for each size category, the second showing the number of mallocs -
  * frees for each size category.
  */
-void mstats(s) char *s; {
+void
+mstats(s)
+       char *s;
+{
        register int i, j;
        register union overhead *p;
        int totfree = 0,
index 335204c..bbd68e2 100644 (file)
@@ -1,7 +1,3 @@
-#include <gen.h>
-#include <sys/file.h>
-/*#include <sys/proc.h> gen.h*/
-
 /*
  * Copyright (c) 1983 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)mkstemp.c  5.2 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
-/*#include <sys/file.h>*/
+#include <sys/file.h>
 
-int mkstemp(as) char *as; {
+mkstemp(as)
+       char *as;
+{
        register char *s;
        register unsigned int pid;
        register int fd, i;
index c2149f1..c3e2712 100644 (file)
@@ -1,12 +1,11 @@
-#include <gen.h>
-#include <sys/file.h>
-/*#include <sys/proc.h> gen.h*/
-
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)mktemp.c   5.2 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
-char *mktemp(as) char *as; {
+char *
+mktemp(as)
+char *as;
+{
        register char *s;
        register unsigned pid;
        register i;
index 8b424f6..babd583 100644 (file)
@@ -1,8 +1,4 @@
-#include <gen.h>
-/*#include <math.h> gen.h*/
-#include <sys/file.h>
-
-double modf(v, p) double v; double *p; {
+double modf(v, p) double v, *p; {
        write(2, "modf()\n", 7);
        abort();
 }
index 056e3c3..4db66f0 100644 (file)
@@ -1,19 +1,3 @@
-#include <gen.h>
-/*#include <ndbm.h> gen.h*/
-#include <stdio.h>
-/*#include <strings.h> gen.h*/
-/*#include <sys/errno.h> gen.h*/
-#include <sys/file.h>
-/*#include <sys/param.h> gen.h*/
-#include <sys/stat.h>
-#ifdef __STDC__
-#include <stdarg.h>
-#define _va_start(argp, arg) va_start(argp, arg)
-#else
-#include <varargs.h>
-#define _va_start(argp, arg) va_start(argp)
-#endif
-
 /*
  * Copyright (c) 1983 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)ndbm.c     5.3 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
-/*#include <sys/types.h>*/
-/*#include <sys/stat.h>*/
-/*#include <sys/file.h>*/
-/*#include <stdio.h>*/
-/*#include <errno.h>*/
-/*#include <ndbm.h>*/
-/*#include <varargs.h>*/
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <sys/file.h>
+#include <stdio.h>
+#include <errno.h>
+#include <ndbm.h>
+#include <varargs.h>
 
 #define BYTESIZ 8
 #undef setbit
 
-/*static  datum makdatum();*/
-/*static  long hashinc();*/
-/*static  long dcalchash();*/
+static  datum makdatum();
+static  long hashinc();
+static  long dcalchash();
 extern  int errno;
 
-#ifdef __STDC__
-static dbm_access __P((register DBM *db, long hash));
-static getbit __P((register DBM *db));
-static setbit __P((register DBM *db));
-static datum makdatum __P((char buf[PBLKSIZ], int n));
-static finddatum __P((char buf[PBLKSIZ], datum item));
-static long hashinc __P((register DBM *db, long hash));
-static long dcalchash __P((datum item));
-static delitem __P((char buf[PBLKSIZ], int n));
-static additem __P((char buf[PBLKSIZ], datum item, datum item1));
-static chkblk __P((char buf[PBLKSIZ]));
-
-DBM *dbm_open(char *file, int flags, ...)
-#else
-DBM *dbm_open(file, flags, va_alist) char *file; int flags; va_dcl
-#endif
+DBM *
+dbm_open(file, flags, va_alist)
+       char *file;
+       int flags;
+       va_dcl
 {
        va_list argp;
        struct stat statb;
@@ -70,14 +43,14 @@ DBM *dbm_open(file, flags, va_alist) char *file; int flags; va_dcl
                flags = (flags & ~03) | O_RDWR;
        strcpy(db->dbm_pagbuf, file);
        strcat(db->dbm_pagbuf, ".pag");
-       _va_start(argp, flags);
+       va_start(argp);
        db->dbm_pagf = vopen(db->dbm_pagbuf, flags, argp);
        va_end(argp);
        if (db->dbm_pagf < 0)
                goto bad;
        strcpy(db->dbm_pagbuf, file);
        strcat(db->dbm_pagbuf, ".dir");
-       _va_start(argp, flags);
+       va_start(argp);
        db->dbm_dirf = vopen(db->dbm_pagbuf, flags, argp);
        va_end(argp);
        if (db->dbm_dirf < 0)
@@ -93,14 +66,21 @@ bad:
        return ((DBM *)0);
 }
 
-void dbm_close(db) DBM *db; {
+void
+dbm_close(db)
+       DBM *db;
+{
 
        (void) close(db->dbm_dirf);
        (void) close(db->dbm_pagf);
        free((char *)db);
 }
 
-long dbm_forder(db, key) register DBM *db; datum key; {
+long
+dbm_forder(db, key)
+       register DBM *db;
+       datum key;
+{
        long hash;
 
        hash = dcalchash(key);
@@ -113,7 +93,11 @@ long dbm_forder(db, key) register DBM *db; datum key; {
        return (db->dbm_blkno);
 }
 
-datum dbm_fetch(db, key) register DBM *db; datum key; {
+datum
+dbm_fetch(db, key)
+       register DBM *db;
+       datum key;
+{
        register i;
        datum item;
 
@@ -131,7 +115,10 @@ err:
        return (item);
 }
 
-int dbm_delete(db, key) register DBM *db; datum key; {
+dbm_delete(db, key)
+       register DBM *db;
+       datum key;
+{
        register i;
        datum item;
 
@@ -156,7 +143,11 @@ int dbm_delete(db, key) register DBM *db; datum key; {
        return (0);
 }
 
-int dbm_store(db, key, dat, replace) register DBM *db; datum key; datum dat; int replace; {
+dbm_store(db, key, dat, replace)
+       register DBM *db;
+       datum key, dat;
+       int replace;
+{
        register i;
        datum item, item1;
        char ovfbuf[PBLKSIZ];
@@ -229,14 +220,20 @@ split:
        goto loop;
 }
 
-datum dbm_firstkey(db) DBM *db; {
+datum
+dbm_firstkey(db)
+       DBM *db;
+{
 
        db->dbm_blkptr = 0L;
        db->dbm_keyptr = 0;
        return (dbm_nextkey(db));
 }
 
-datum dbm_nextkey(db) register DBM *db; {
+datum
+dbm_nextkey(db)
+       register DBM *db;
+{
        struct stat statb;
        datum item;
 
@@ -271,7 +268,11 @@ err:
        return (item);
 }
 
-static dbm_access(db, hash) register DBM *db; long hash; {
+static
+dbm_access(db, hash)
+       register DBM *db;
+       long hash;
+{
 
        for (db->dbm_hmask=0;; db->dbm_hmask=(db->dbm_hmask<<1)+1) {
                db->dbm_blkno = hash & db->dbm_hmask;
@@ -291,7 +292,10 @@ static dbm_access(db, hash) register DBM *db; long hash; {
        }
 }
 
-static getbit(db) register DBM *db; {
+static
+getbit(db)
+       register DBM *db;
+{
        long bn;
        register b, i, n;
        
@@ -311,7 +315,10 @@ static getbit(db) register DBM *db; {
        return (db->dbm_dirbuf[i] & (1<<n));
 }
 
-static setbit(db) register DBM *db; {
+static
+setbit(db)
+       register DBM *db;
+{
        long bn;
        register i, n, b;
 
@@ -334,7 +341,10 @@ static setbit(db) register DBM *db; {
                db->dbm_flags |= _DBM_IOERR;
 }
 
-static datum makdatum(buf, n) char buf[PBLKSIZ]; int n; {
+static datum
+makdatum(buf, n)
+       char buf[PBLKSIZ];
+{
        register short *sp;
        register t;
        datum item;
@@ -353,7 +363,11 @@ static datum makdatum(buf, n) char buf[PBLKSIZ]; int n; {
        return (item);
 }
 
-static finddatum(buf, item) char buf[PBLKSIZ]; datum item; {
+static
+finddatum(buf, item)
+       char buf[PBLKSIZ];
+       datum item;
+{
        register short *sp;
        register int i, n, j;
 
@@ -370,7 +384,8 @@ static finddatum(buf, item) char buf[PBLKSIZ]; datum item; {
 }
 
 static  int hitab[16]
-/* ken's {
+/* ken's
+{
        055,043,036,054,063,014,004,005,
        010,064,077,000,035,027,025,071,
 };
@@ -398,7 +413,11 @@ static  long hltab[64]
        04723077174L,03642763134L,05750130273L,03655541561L,
 };
 
-static long hashinc(db, hash) register DBM *db; long hash; {
+static long
+hashinc(db, hash)
+       register DBM *db;
+       long hash;
+{
        long bit;
 
        hash &= db->dbm_hmask;
@@ -413,7 +432,10 @@ static long hashinc(db, hash) register DBM *db; long hash; {
        }
 }
 
-static long dcalchash(item) datum item; {
+static long
+dcalchash(item)
+       datum item;
+{
        register int s, c, j;
        register char *cp;
        register long hashl;
@@ -435,7 +457,10 @@ static long dcalchash(item) datum item; {
 /*
  * Delete pairs of items (n & n+1).
  */
-static delitem(buf, n) char buf[PBLKSIZ]; int n; {
+static
+delitem(buf, n)
+       char buf[PBLKSIZ];
+{
        register short *sp, *sp1;
        register i1, i2;
 
@@ -464,7 +489,11 @@ static delitem(buf, n) char buf[PBLKSIZ]; int n; {
 /*
  * Add pairs of items (item & item1).
  */
-static additem(buf, item, item1) char buf[PBLKSIZ]; datum item; datum item1; {
+static
+additem(buf, item, item1)
+       char buf[PBLKSIZ];
+       datum item, item1;
+{
        register short *sp;
        register i1, i2;
 
@@ -485,7 +514,10 @@ static additem(buf, item, item1) char buf[PBLKSIZ]; datum item; datum item1; {
 }
 
 #ifdef DEBUG
-static chkblk(buf) char buf[PBLKSIZ]; {
+static
+chkblk(buf)
+       char buf[PBLKSIZ];
+{
        register short *sp;
        register t, i;
 
index 84d857c..4c43b05 100644 (file)
@@ -1,9 +1,3 @@
-#include <a.out.h>
-#include <stdio.h>
-#include <strings.h>
-/*#include <sys/exec.h> a.out.h*/
-/*#include <sys/types.h> stdio.h*/
-
 /*
  * Copyright (c) 1980 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)nlist.c    5.2 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
-/*#include <sys/types.h>*/
-/*#include <a.out.h>*/
-/*#include <stdio.h>*/
+#include <sys/types.h>
+#include <a.out.h>
+#include <stdio.h>
 
 /*
  * nlist - retreive attributes from name list (string table version)
  */
-int nlist(name, list) char *name; struct nlist *list; {
+nlist(name, list)
+       char *name;
+       struct nlist *list;
+{
        register struct nlist *p, *q;
        register char *s1, *s2;
        register n, m;
index 96cbba5..6996007 100644 (file)
@@ -1,7 +1,3 @@
-#include <gen.h>
-/*#include <sys/dir.h> gen.h*/
-#include <sys/file.h>
-
 /*
  * Copyright (c) 1983 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)opendir.c  5.2 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
-/*#include <sys/param.h>*/
-/*#include <sys/dir.h>*/
+#include <sys/param.h>
+#include <sys/dir.h>
 
 /*
  * open a directory.
  */
-DIR *opendir(name) char *name; {
+DIR *
+opendir(name)
+       char *name;
+{
        register DIR *dirp;
        register int fd;
 
index 68e22ca..9742026 100644 (file)
@@ -1,7 +1,3 @@
-#include <strings.h>
-#include <sys/errno.h>
-#include <sys/uio.h>
-
 /*
  * Copyright (c) 1980 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)perror.c   5.2 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
 /*
  * Print the error indicated
  * in the cerror cell.
  */
-/*#include <sys/types.h>*/
-/*#include <sys/uio.h>*/
+#include <sys/types.h>
+#include <sys/uio.h>
 
 int    errno;
 int    sys_nerr;
 extern char    *sys_errlist[];
-int perror(s) char *s; {
+perror(s)
+       char *s;
+{
        struct iovec iov[4];
        register struct iovec *v = iov;
 
index 8d8573a..9929948 100644 (file)
@@ -1,7 +1,3 @@
-#include <strings.h>
-#include <sys/file.h>
-#include <sys/signal.h>
-
 /*
  * Copyright (c) 1980 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)psignal.c  5.2 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
 /*
  * Print the name of the signal indicated
  * along with the supplied message.
  */
-/*#include <signal.h>*/
+#include <signal.h>
 
 extern char *sys_siglist[];
 
-int psignal(sig, s) unsigned sig; char *s; {
+psignal(sig, s)
+       unsigned sig;
+       char *s;
+{
        register char *c;
        register n;
 
index 0ade312..539bc41 100644 (file)
@@ -1,5 +1,3 @@
-#include <gen.h>
-
 /*
  * Copyright (c) 1980 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -8,7 +6,7 @@
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)qsort.c    5.2 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
 /*
  * qsort.c:
@@ -34,9 +32,13 @@ static  int          mthresh;                /* MTHRESHold in chars */
  * It's not...
  */
 
-static void qst __P((char *base, char *max));
-
-void qsort(_base, n, size, compar) void *_base; int n; int size; int (*compar) __P((void *p0, void *p1)); {
+void
+qsort(_base, n, size, compar)
+       void    *_base;
+       int     n;
+       int     size;
+       int     (*compar)();
+{
 #define base ((char *)_base)
        register char c, *i, *j, *lo, *hi;
        char *min, *max;
@@ -108,7 +110,9 @@ void qsort(_base, n, size, compar) void *_base; int n; int size; int (*compar) _
  * (And there are only three places where this is done).
  */
 
-static void qst(base, max) char *base; char *max; {
+static void
+qst(base, max)
+       char *base, *max; {
        register char c, *i, *j, *jj;
        register int ii;
        char *mid, *tmp;
index c78922f..0f3c08a 100644 (file)
@@ -1,6 +1,3 @@
-#include <gen.h>
-#include <stdio.h>
-
 /*
  * Copyright (c) 1983 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -9,9 +6,9 @@
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)random.c   5.2 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
-/*#include     <stdio.h>*/
+#include       <stdio.h>
 
 /*
  * random.c:
@@ -50,6 +47,8 @@ static char sccsid[] = "@(#)random.c  5.2 (Berkeley) 3/9/86";
  * predicted by this formula.
  */
 
+
+
 /*
  * For each of the currently supported random number generators, we have a
  * break value on the amount of state information (you need at least this
@@ -83,6 +82,7 @@ static char sccsid[] = "@(#)random.c  5.2 (Berkeley) 3/9/86";
 #define                DEG_4           63
 #define                SEP_4           1
 
+
 /*
  * Array versions of the above information to make code run faster -- relies
  * on fact that TYPE_i == i.
@@ -96,6 +96,8 @@ static  int           degrees[ MAX_TYPES ]    = { DEG_0, DEG_1, DEG_2,
 static  int            seps[ MAX_TYPES ]       = { SEP_0, SEP_1, SEP_2,
                                                                SEP_3, SEP_4 };
 
+
+
 /*
  * Initially, everything is set up as if from :
  *             initstate( 1, &randtbl, 128 );
@@ -132,6 +134,8 @@ static  long                randtbl[ DEG_3 + 1 ]    = { TYPE_3,
 static  long           *fptr                   = &randtbl[ SEP_3 + 1 ];
 static  long           *rptr                   = &randtbl[ 1 ];
 
+
+
 /*
  * The following things are the pointer to the state information table,
  * the type of the current generator, the degree of the current polynomial
@@ -152,6 +156,8 @@ static  int         rand_sep                = SEP_3;
 
 static  long           *end_ptr                = &randtbl[ DEG_3 + 1 ];
 
+
+
 /*
  * srandom:
  * Initialize the random number generator based on the given seed.  If the
@@ -165,7 +171,10 @@ static  long               *end_ptr                = &randtbl[ DEG_3 + 1 ];
  * values produced by this routine.
  */
 
-int srandom(x) unsigned x; {
+srandom( x )
+
+    unsigned           x;
+{
        register  int           i, j;
 
        if(  rand_type  ==  TYPE_0  )  {
@@ -183,6 +192,8 @@ int srandom(x) unsigned x; {
        }
 }
 
+
+
 /*
  * initstate:
  * Initialize the state information in the given array of n bytes for
@@ -199,7 +210,13 @@ int srandom(x) unsigned x; {
  * Returns a pointer to the old state.
  */
 
-char *initstate(seed, arg_state, n) unsigned seed;                     /* seed for R. N. G. */ char *arg_state;                /* pointer to state array */ int n;                     /* # bytes of state info */ {
+char  *
+initstate( seed, arg_state, n )
+
+    unsigned           seed;                   /* seed for R. N. G. */
+    char               *arg_state;             /* pointer to state array */
+    int                        n;                      /* # bytes of state info */
+{
        register  char          *ostate         = (char *)( &state[ -1 ] );
 
        if(  rand_type  ==  TYPE_0  )  state[ -1 ] = rand_type;
@@ -247,6 +264,8 @@ char *initstate(seed, arg_state, n) unsigned seed;                  /* seed for R. N. G. */ cha
        return( ostate );
 }
 
+
+
 /*
  * setstate:
  * Restore the state from the given state array.
@@ -259,7 +278,11 @@ char *initstate(seed, arg_state, n) unsigned seed;                 /* seed for R. N. G. */ cha
  * Returns a pointer to the old state information.
  */
 
-char *setstate(arg_state) char *arg_state; {
+char  *
+setstate( arg_state )
+
+    char               *arg_state;
+{
        register  long          *new_state      = (long *)arg_state;
        register  int           type            = new_state[0]%MAX_TYPES;
        register  int           rear            = new_state[0]/MAX_TYPES;
@@ -290,6 +313,8 @@ char *setstate(arg_state) char *arg_state; {
        return( ostate );
 }
 
+
+
 /*
  * random:
  * If we are using the trivial TYPE_0 R.N.G., just do the old linear
@@ -305,7 +330,9 @@ char *setstate(arg_state) char *arg_state; {
  * Returns a 31-bit random number.
  */
 
-long random() {
+long
+random()
+{
        long            i;
        
        if(  rand_type  ==  TYPE_0  )  {
@@ -324,3 +351,4 @@ long random() {
        }
        return( i );
 }
+
index a873340..34d43ba 100644 (file)
@@ -1,6 +1,3 @@
-#include <sys/dir.h>
-#include <sys/file.h>
-
 /*
  * Copyright (c) 1983 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -9,15 +6,18 @@
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)readdir.c  5.2 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
-/*#include <sys/param.h>*/
-/*#include <sys/dir.h>*/
+#include <sys/param.h>
+#include <sys/dir.h>
 
 /*
  * get next entry in a directory.
  */
-struct direct *readdir(dirp) register DIR *dirp; {
+struct direct *
+readdir(dirp)
+       register DIR *dirp;
+{
        register struct direct *dp;
 
        for (;;) {
index 0e15415..75c7146 100644 (file)
@@ -1,5 +1,3 @@
-#include <gen.h>
-
 /*
  * Copyright (c) 1980 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -8,7 +6,7 @@
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)regex.c    5.2 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
 /*
  * routines to do regular expression matching
@@ -99,9 +97,10 @@ static       char    circf;
 /*
  * compile the regular expression argument into a dfa
  */
-static int advance __P((register char *lp, register char *ep));
-
-char *re_comp(sp) register char *sp; {
+char *
+re_comp(sp)
+       register char   *sp;
+{
        register int    c;
        register char   *ep = expbuf;
        int     cclcnt, numbra = 0;
@@ -222,7 +221,10 @@ char *re_comp(sp) register char *sp; {
 /* 
  * match the argument string against the compiled re
  */
-int re_exec(p1) register char *p1; {
+int
+re_exec(p1)
+       register char   *p1;
+{
        register char   *p2 = expbuf;
        register int    c;
        int     rv;
@@ -259,7 +261,10 @@ int re_exec(p1) register char *p1; {
 /* 
  * try to match the next thing in the dfa
  */
-static int advance(lp, ep) register char *lp; register char *ep; {
+static int
+advance(lp, ep)
+       register char   *lp, *ep;
+{
        register char   *curlp;
        int     ct, i;
        int     rv;
@@ -364,7 +369,10 @@ static int advance(lp, ep) register char *lp; register char *ep; {
                }
 }
 
-int backref(i, lp) register int i; register char *lp; {
+backref(i, lp)
+       register int    i;
+       register char   *lp;
+{
        register char   *bp;
 
        bp = braslist[i];
@@ -374,7 +382,11 @@ int backref(i, lp) register int i; register char *lp; {
        return(0);
 }
 
-int cclass(set, c, af) register char *set; int c; int af; {
+int
+cclass(set, c, af)
+       register char   *set, c;
+       int     af;
+{
        register int    n;
 
        if (c == 0)
index 372f834..afd76e4 100644 (file)
@@ -1,5 +1,3 @@
-#include <gen.h>
-
 /*
  * Copyright (c) 1987 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -8,9 +6,9 @@
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)remque.c   5.1 (Berkeley) 1/27/87";
-#endif
+#endif LIBC_SCCS and not lint
 
-/*#include <gen.h>*/
+#include <gen.h>
 
 /*
  * remque -- vax remque instruction
@@ -24,7 +22,9 @@ static char sccsid[] = "@(#)remque.c  5.1 (Berkeley) 1/27/87";
 /*     struct vaxque   *vq_prev;*/
 /*};*/
 
-int remque(e) register struct vaxque *e; {
+remque(e)
+       register struct vaxque *e;
+{
        e->vq_prev->vq_next = e->vq_next;
        e->vq_next->vq_prev = e->vq_prev;
 }
index 7ac2bf9..ee93bd3 100644 (file)
@@ -1,8 +1,6 @@
-#include <strings.h>
-
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)rindex.c   5.2 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
 /*
  * Return the ptr in sp at which the character c last
@@ -11,7 +9,10 @@ static char sccsid[] = "@(#)rindex.c  5.2 (Berkeley) 3/9/86";
 
 #define NULL 0
 
-char *rindex(sp, c) register char *sp; int c; {
+char *
+rindex(sp, c)
+register char *sp, c;
+{
        register char *r;
 
        r = NULL;
index cf1d474..1964c80 100644 (file)
@@ -1,8 +1,3 @@
-#include <gen.h>
-/*#include <strings.h> gen.h*/
-/*#include <sys/dir.h> gen.h*/
-#include <sys/stat.h>
-
 /*
  * Copyright (c) 1983 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -11,7 +6,7 @@
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)scandir.c  5.2 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
 /*
  * Scan the directory dirname calling select to make a list of selected
@@ -20,11 +15,15 @@ static char sccsid[] = "@(#)scandir.c       5.2 (Berkeley) 3/9/86";
  * struct direct (through namelist). Returns -1 if there were any errors.
  */
 
-/*#include <sys/types.h>*/
-/*#include <sys/stat.h>*/
-/*#include <sys/dir.h>*/
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <sys/dir.h>
 
-int scandir(dirname, namelist, select, dcomp) char *dirname; struct direct *(*namelist[]); int (*select) __P((struct direct *d)); int (*dcomp) __P((struct direct *d0, struct direct *d1)); {
+scandir(dirname, namelist, select, dcomp)
+       char *dirname;
+       struct direct *(*namelist[]);
+       int (*select)(), (*dcomp)();
+{
        register struct direct *d, *p, **names;
        register int nitems;
        register char *cp1, *cp2;
@@ -77,7 +76,7 @@ int scandir(dirname, namelist, select, dcomp) char *dirname; struct direct *(*na
        }
        closedir(dirp);
        if (nitems && dcomp != NULL)
-               qsort(names, nitems, sizeof(struct direct *), (int (*) __P((void *p0, void *p1)))dcomp);
+               qsort(names, nitems, sizeof(struct direct *), dcomp);
        *namelist = names;
        return(nitems);
 }
@@ -85,6 +84,8 @@ int scandir(dirname, namelist, select, dcomp) char *dirname; struct direct *(*na
 /*
  * Alphabetic order comparison routine for those who want it.
  */
-int alphasort(d1, d2) struct direct **d1; struct direct **d2; {
+alphasort(d1, d2)
+       struct direct **d1, **d2;
+{
        return(strcmp((*d1)->d_name, (*d2)->d_name));
 }
index 342f156..f1bc890 100644 (file)
@@ -1,6 +1,3 @@
-#include <sys/dir.h>
-#include <sys/file.h>
-
 /*
  * Copyright (c) 1983 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -9,16 +6,20 @@
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)seekdir.c  5.2 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
-/*#include <sys/param.h>*/
-/*#include <sys/dir.h>*/
+#include <sys/param.h>
+#include <sys/dir.h>
 
 /*
  * seek to an entry in a directory.
  * Only values returned by "telldir" should be passed to seekdir.
  */
-void seekdir(dirp, loc) register DIR *dirp; long loc; {
+void
+seekdir(dirp, loc)
+       register DIR *dirp;
+       long loc;
+{
        long curloc, base, offset;
        struct direct *dp;
        extern long lseek();
index 0329fc8..cb332d0 100644 (file)
@@ -1,5 +1,3 @@
-#include <sys/proc.h>
-
 /*
  * Copyright (c) 1983 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -8,9 +6,11 @@
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)setegid.c  5.2 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
-int setegid(egid) int egid; {
+setegid(egid)
+       int egid;
+{
 
        return (setregid(-1, egid));
 }
index d2e8164..2c6096c 100644 (file)
@@ -1,5 +1,3 @@
-#include <sys/proc.h>
-
 /*
  * Copyright (c) 1983 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -8,9 +6,11 @@
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)seteuid.c  5.2 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
-int seteuid(euid) int euid; {
+seteuid(euid)
+       int euid;
+{
 
        return (setreuid(-1, euid));
 }
index 29ed6f6..bed8d8a 100644 (file)
@@ -1,5 +1,3 @@
-#include <sys/proc.h>
-
 /*
  * Copyright (c) 1983 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -8,12 +6,14 @@
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)setgid.c   5.2 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
 /*
  * Backwards compatible setgid.
  */
-int setgid(gid) int gid; {
+setgid(gid)
+       int gid;
+{
 
        return (setregid(gid, gid));
 }
index 49cf7c9..7bc584e 100644 (file)
@@ -1,14 +1,10 @@
-#include <gen.h>
-/*#include <setjmp.h> gen.h*/
-#include <sys/file.h>
-
-/*#include <setjmp.h>*/
+#include <setjmp.h>
 
 int setjmp(e) jmp_buf e; {
        write(2, "setjmp()\n", 9);
        abort();
 }
-void longjmp(e, v) jmp_buf e; int v; {
+void longjmp(e, v) jmp_buf e; {
        write(2, "longjmp()\n", 10);
        abort();
 }
index 14a2d5d..d46b7a6 100644 (file)
@@ -1,6 +1,3 @@
-#include <setjmp.h>
-#include <sys/file.h>
-
 /*
  * Copyright (c) 1980 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -9,7 +6,7 @@
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)setjmperr.c        5.2 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
 #define ERRMSG "longjmp botch\n"
 
@@ -19,7 +16,8 @@ static char sccsid[] = "@(#)setjmperr.c       5.2 (Berkeley) 3/9/86";
  * write their own versions.
  * If this routine returns, the program is aborted.
  */
-int longjmperror() {
+longjmperror()
+{
 
        write(2, ERRMSG, sizeof(ERRMSG));
 }
index 0bb3d1c..c5c38cf 100644 (file)
@@ -1,5 +1,3 @@
-#include <sys/proc.h>
-
 /*
  * Copyright (c) 1983 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -8,9 +6,11 @@
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)setrgid.c  5.2 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
-int setrgid(rgid) int rgid; {
+setrgid(rgid)
+       int rgid;
+{
 
        return (setregid(rgid, -1));
 }
index 53c1dba..49a4a79 100644 (file)
@@ -1,5 +1,3 @@
-#include <sys/proc.h>
-
 /*
  * Copyright (c) 1983 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -8,9 +6,11 @@
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)setruid.c  5.2 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
-int setruid(ruid) int ruid; {
+setruid(ruid)
+       int ruid;
+{
 
        return (setreuid(ruid, -1));
 }
index 880b813..3e33294 100644 (file)
@@ -1,5 +1,3 @@
-#include <sys/proc.h>
-
 /*
  * Copyright (c) 1983 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -8,12 +6,14 @@
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)setuid.c   5.2 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
 /*
  * Backwards compatible setuid.
  */
-int setuid(uid) int uid; {
+setuid(uid)
+       int uid;
+{
 
        return (setreuid(uid, uid));
 }
index 67df098..ecbeff5 100644 (file)
@@ -1,5 +1,3 @@
-#include <sys/signal.h>
-
 /*
  * Copyright (c) 1985 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -8,15 +6,17 @@
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)siginterrupt.c     5.2 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
-/*#include <signal.h>*/
+#include <signal.h>
 
 /*
  * Set signal state to prevent restart of system calls
  * after an instance of the indicated signal.
  */
-int siginterrupt(sig, flag) int sig; int flag; {
+siginterrupt(sig, flag)
+       int sig, flag;
+{
        struct sigvec sv;
        int ret;
 
index 102bef6..276e5fc 100644 (file)
@@ -1,5 +1,3 @@
-#include <sys/signal.h>
-
 /*
  * Copyright (c) 1980 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -8,9 +6,9 @@
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)siglist.c  5.2 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
-/*#include <signal.h>*/
+#include <signal.h>
 
 char   *sys_siglist[NSIG] = {
        "Signal 0",
index b633adc..d6bb2cf 100644 (file)
@@ -1,5 +1,3 @@
-#include <sys/signal.h>
-
 /*
  * Copyright (c) 1985 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -8,19 +6,23 @@
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)signal.c   5.2 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
 /*
  * Almost backwards compatible signal.
  */
-/*#include <signal.h>*/
+#include <signal.h>
 
-void (*signal(s, a)) __P((int sig)) int s; void (*a) __P((int sig)); {
+void
+(*signal(s, a))()
+       int s;
+       void (*a)();
+{
        struct sigvec osv, sv;
        static int mask[NSIG];
        static int flags[NSIG];
 
-       sv.sv_handler = (void (*) __P((int sig, int code, struct sigcontext *scp)))a;
+       sv.sv_handler = a;
        sv.sv_mask = mask[s];
        sv.sv_flags = flags[s];
        if (sigvec(s, &sv, &osv) < 0)
@@ -31,5 +33,5 @@ void (*signal(s, a)) __P((int sig)) int s; void (*a) __P((int sig)); {
                if (sigvec(s, &sv, 0) < 0)
                        return (BADSIG);
        }
-       return ((void (*) __P((int sig)))osv.sv_handler);
+       return (osv.sv_handler);
 }
index 5f56799..f5b7d0b 100644 (file)
@@ -1,6 +1,3 @@
-#include <sys/signal.h>
-#include <sys/time.h>
-
 /*
  * Copyright (c) 1980 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -9,19 +6,20 @@
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)sleep.c    5.2 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
-/*#include <sys/time.h>*/
-/*#include <signal.h>*/
+#include <sys/time.h>
+#include <signal.h>
 
 #define        setvec(vec, a) \
-       vec.sv_handler = (void (*) __P((int sig, int code, struct sigcontext *scp)))a; vec.sv_mask = vec.sv_onstack = 0
+       vec.sv_handler = a; vec.sv_mask = vec.sv_onstack = 0
 
 static int ringring;
 
-static void sleepx __P((void));
-
-void sleep(n) unsigned n; {
+void
+sleep(n)
+       unsigned n;
+{
        void sleepx();
        int omask;
        struct itimerval itv, oitv;
@@ -62,6 +60,8 @@ void sleep(n) unsigned n; {
        (void) setitimer(ITIMER_REAL, &oitv, (struct itimerval *)0);
 }
 
-static void sleepx() {
+static void
+sleepx()
+{
        ringring = 1;
 }
index aed1f8d..6030ccc 100644 (file)
@@ -1,15 +1,16 @@
-#include <strings.h>
-
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)strcat.c   5.2 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
 /*
  * Concatenate s2 on the end of s1.  S1's space must be large enough.
  * Return s1.
  */
 
-char *strcat(s1, s2) register char *s1; register char *s2; {
+char *
+strcat(s1, s2)
+register char *s1, *s2;
+{
        register char *os1;
 
        os1 = s1;
index 921f505..cd152f2 100644 (file)
@@ -1,14 +1,14 @@
-#include <strings.h>
-
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)strcmp.c   5.2 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
 /*
  * Compare strings:  s1>s2: >0  s1==s2: 0  s1<s2: <0
  */
 
-int strcmp(s1, s2) register char *s1; register char *s2; {
+strcmp(s1, s2)
+register char *s1, *s2;
+{
 
        while (*s1 == *s2++)
                if (*s1++=='\0')
index 7cca5dc..d5c8172 100644 (file)
@@ -1,15 +1,16 @@
-#include <strings.h>
-
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)strcpy.c   5.2 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
 /*
  * Copy string s2 to s1.  s1 must be large enough.
  * return s1
  */
 
-char *strcpy(s1, s2) register char *s1; register char *s2; {
+char *
+strcpy(s1, s2)
+register char *s1, *s2;
+{
        register char *os1;
 
        os1 = s1;
index d613ea7..55faed8 100644 (file)
@@ -1,15 +1,15 @@
-#include <strings.h>
-
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)strlen.c   5.2 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
 /*
  * Returns the number of
  * non-NULL bytes in string argument.
  */
 
-int strlen(s) register char *s; {
+strlen(s)
+register char *s;
+{
        register n;
 
        n = 0;
index b8e4605..21d75cb 100644 (file)
@@ -1,8 +1,6 @@
-#include <strings.h>
-
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)strncat.c  5.2 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
 /*
  * Concatenate s2 on the end of s1.  S1's space must be large enough.
@@ -10,7 +8,11 @@ static char sccsid[] = "@(#)strncat.c 5.2 (Berkeley) 3/9/86";
  * Return s1.
  */
 
-char *strncat(s1, s2, n) register char *s1; register char *s2; register n; {
+char *
+strncat(s1, s2, n)
+register char *s1, *s2;
+register n;
+{
        register char *os1;
 
        os1 = s1;
index 5fd5beb..9d035e8 100644 (file)
@@ -1,14 +1,15 @@
-#include <strings.h>
-
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)strncmp.c  5.2 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
 /*
  * Compare strings (at most n bytes):  s1>s2: >0  s1==s2: 0  s1<s2: <0
  */
 
-int strncmp(s1, s2, n) register char *s1; register char *s2; register n; {
+strncmp(s1, s2, n)
+register char *s1, *s2;
+register n;
+{
 
        while (--n >= 0 && *s1 == *s2++)
                if (*s1++ == '\0')
index 2f46479..40be252 100644 (file)
@@ -1,15 +1,16 @@
-#include <strings.h>
-
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)strncpy.c  5.2 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
 /*
  * Copy s2 to s1, truncating or null-padding to always copy n bytes
  * return s1
  */
 
-char *strncpy(s1, s2, n) register char *s1; register char *s2; int n; {
+char *
+strncpy(s1, s2, n)
+register char *s1, *s2;
+{
        register i;
        register char *os1;
 
index 289f39d..8085998 100644 (file)
@@ -1,15 +1,16 @@
-#include <gen.h>
-
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)swab.c     5.3 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
 /*
  * Swab bytes
  * Jeffrey Mogul, Stanford
  */
 
-int swab(from, to, n) register char *from; register char *to; register int n; {
+swab(from, to, n)
+       register char *from, *to;
+       register int n;
+{
        register unsigned long temp;
        
        n >>= 1; n++;
index 7bf841c..075eb89 100644 (file)
@@ -1,21 +1,3 @@
-#include <stdio.h>
-#include <strings.h>
-#include <sys/file.h>
-#include <sys/proc.h>
-#include <sys/signal.h>
-#include <sys/socket.h>
-#include <sys/syslog.h>
-/*#include <sys/time.h> sys/proc.h*/
-#include <sys/wait.h>
-/*#include <time.h> sys/proc.h*/
-#ifdef __STDC__
-#include <stdarg.h>
-#define _va_start(argp, arg) va_start(argp, arg)
-#else
-#include <varargs.h>
-#define _va_start(argp, arg) va_start(argp)
-#endif
-
 /*
  * Copyright (c) 1983 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -24,7 +6,7 @@
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)syslog.c   5.9 (Berkeley) 5/7/86";
-#endif
+#endif LIBC_SCCS and not lint
 
 /*
  * SYSLOG -- print message on log file
@@ -43,14 +25,14 @@ static char sccsid[] = "@(#)syslog.c        5.9 (Berkeley) 5/7/86";
  * Modified to use UNIX domain IPC by Ralph Campbell
  */
 
-/*#include <sys/types.h>*/
-/*#include <sys/socket.h>*/
-/*#include <sys/file.h>*/
-/*#include <sys/signal.h>*/
-/*#include <sys/syslog.h>*/
-/*#include <netdb.h>*/
-/*#include <strings.h>*/
-/*#include <varargs.h>*/
+#include <sys/types.h>
+#include <sys/socket.h>
+#include <sys/file.h>
+#include <sys/signal.h>
+#include <sys/syslog.h>
+#include <netdb.h>
+#include <strings.h>
+#include <varargs.h>
 
 #define        MAXLINE 1024                    /* max message size */
 #define NULL   0                       /* manifest */
@@ -73,11 +55,11 @@ static struct sockaddr SyslogAddr;  /* AF_UNIX address of local logger */
 extern int errno, sys_nerr;
 extern char *sys_errlist[];
 
-#ifdef __STDC__
-void syslog(int pri, char *fmt, ...)
-#else
-void syslog(pri, fmt, va_alist) int pri; char *fmt; va_dcl
-#endif
+void
+syslog(pri, fmt, va_alist)
+       int pri;
+       char *fmt;
+       va_dcl
 {
        char buf[MAXLINE + 1], outline[MAXLINE + 1];
        register char *b, *f, *o;
@@ -136,7 +118,7 @@ void syslog(pri, fmt, va_alist) int pri; char *fmt; va_dcl
        }
        *b++ = '\n';
        *b = '\0';
-       _va_start(argp, fmt);
+       va_start(argp);
        vsprintf(o, buf, argp);
        va_end(argp);
        c = strlen(outline);
@@ -176,7 +158,11 @@ void syslog(pri, fmt, va_alist) int pri; char *fmt; va_dcl
  * OPENLOG -- open system log
  */
 
-void openlog(ident, logstat, logfac) char *ident; int logstat; int logfac; {
+void
+openlog(ident, logstat, logfac)
+       char *ident;
+       int logstat, logfac;
+{
        if (ident != NULL)
                LogTag = ident;
        LogStat = logstat;
@@ -196,7 +182,9 @@ void openlog(ident, logstat, logfac) char *ident; int logstat; int logfac; {
  * CLOSELOG -- close the system log
  */
 
-void closelog() {
+void
+closelog()
+{
        (void) close(LogFile);
        LogFile = -1;
 }
@@ -204,7 +192,9 @@ void closelog() {
 /*
  * SETLOGMASK -- set the log mask level
  */
-int setlogmask(pmask) int pmask; {
+setlogmask(pmask)
+       int pmask;
+{
        int omask;
 
        omask = LogMask;
index 6a7be0b..6303403 100644 (file)
@@ -1,17 +1,14 @@
-#include <sys/exec.h>
-#include <sys/proc.h>
-#include <sys/signal.h>
-#include <sys/wait.h>
-
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)system.c   5.2 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
-/*#include     <signal.h>*/
+#include       <signal.h>
 
-int system(s) char *s; {
+system(s)
+char *s;
+{
        int status, pid, w;
-       register void (*istat) __P((int sig)), (*qstat) __P((int sig));
+       register void (*istat)(), (*qstat)();
 
        if ((pid = vfork()) == 0) {
                execl("/bin/sh", "sh", "-c", s, 0);
index 01a2761..2b7af90 100644 (file)
@@ -1,6 +1,3 @@
-#include <sys/dir.h>
-#include <sys/file.h>
-
 /*
  * Copyright (c) 1983 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -9,15 +6,18 @@
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)telldir.c  5.2 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
-/*#include <sys/param.h>*/
-/*#include <sys/dir.h>*/
+#include <sys/param.h>
+#include <sys/dir.h>
 
 /*
  * return a pointer into a directory
  */
-long telldir(dirp) DIR *dirp; {
+long
+telldir(dirp)
+       DIR *dirp;
+{
        extern long lseek();
 
        return (lseek(dirp->dd_fd, 0L, 1) - dirp->dd_size + dirp->dd_loc);
index 917196c..49eeb8d 100644 (file)
@@ -1,6 +1,3 @@
-#include <sys/time.h>
-/*#include <sys/types.h> sys/time.h*/
-
 /*
  * Copyright (c) 1980 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -9,15 +6,18 @@
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)time.c     5.3 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
 /*
  * Backwards compatible time call.
  */
-/*#include <sys/types.h>*/
-/*#include <sys/time.h>*/
+#include <sys/types.h>
+#include <sys/time.h>
 
-long time(t) time_t *t; {
+long
+time(t)
+       time_t *t;
+{
        struct timeval tt;
 
        if (gettimeofday(&tt, (struct timezone *)0) < 0)
index 7ec2bec..644bbd2 100644 (file)
@@ -1,7 +1,3 @@
-#include <gen.h>
-#include <stdio.h>
-/*#include <strings.h> gen.h*/
-
 /*
  * Copyright (c) 1980 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -10,7 +6,7 @@
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)timezone.c 5.2 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
 /*
  * The arguments are the number of minutes of time
@@ -44,7 +40,8 @@ static struct zone {
        -1
 };
 
-char *timezone(zone, dst) int zone; int dst; {
+char *timezone(zone, dst)
+{
        register struct zone *zp;
        static char czone[10];
        char *sign;
index 73cb7be..9fd0c91 100644 (file)
@@ -1,12 +1,6 @@
-#include <strings.h>
-#include <sys/dir.h>
-#include <sys/ioctl.h>
-#include <sys/stat.h>
-#include <utmp.h>
-
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)ttyname.c  5.2 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
 /*
  * ttyname(f): return "/dev/ttyXX" which the the name of the
@@ -15,15 +9,17 @@ static char sccsid[] = "@(#)ttyname.c        5.2 (Berkeley) 3/9/86";
  */
 
 #define        NULL    0
-/*#include <sys/param.h> sys/dir.h*/
-/*#include <sys/dir.h>*/
-/*#include <sys/stat.h>*/
+#include <sys/param.h>
+#include <sys/dir.h>
+#include <sys/stat.h>
 
 static char    dev[]   = "/dev/";
-/*char *strcpy();*/
-/*char *strcat();*/
+char   *strcpy();
+char   *strcat();
 
-char *ttyname(f) int f; {
+char *
+ttyname(f)
+{
        struct stat fsb;
        struct stat tsb;
        register struct direct *db;
index e429f18..e8ba04f 100644 (file)
@@ -1,7 +1,3 @@
-#include <strings.h>
-#include <ttyent.h>
-#include <utmp.h>
-
 /*
  * Copyright (c) 1984 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)ttyslot.c  5.2 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
 /*
  * Return the number of the slot in the utmp file
  * corresponding to the current user: try for file 0, 1, 2.
  * Definition is the line number in the /etc/ttys file.
  */
-/*#include <ttyent.h>*/
+#include <ttyent.h>
 
-/*char *ttyname();*/
-/*char *rindex();*/
+char   *ttyname();
+char   *rindex();
 
 #define        NULL    0
 
-int ttyslot() {
+ttyslot()
+{
        register struct ttyent *ty;
        register char *tp, *p;
        register s;
index 22624f6..6f14494 100644 (file)
@@ -1,5 +1,3 @@
-#include <sys/time.h>
-
 /*
  * Copyright (c) 1985 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -8,9 +6,9 @@
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)ualarm.c   5.2 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
-/*#include <sys/time.h>*/
+#include <sys/time.h>
 
 #define        USPS    1000000         /* # of microseconds in a second */
 
@@ -19,7 +17,11 @@ static char sccsid[] = "@(#)ualarm.c 5.2 (Berkeley) 3/9/86";
  * If ``reload'' is non-zero, keep generating SIGALRM
  * every ``reload'' microseconds after the first signal.
  */
-unsigned ualarm(usecs, reload) register unsigned usecs; register unsigned reload; {
+unsigned
+ualarm(usecs, reload)
+       register unsigned usecs;
+       register unsigned reload;
+{
        struct itimerval new, old;
 
        new.it_interval.tv_usec = reload % USPS;
index eafb631..1e4a431 100644 (file)
@@ -1,6 +1,3 @@
-#include <sys/signal.h>
-#include <sys/time.h>
-
 /*
  * Copyright (c) 1985 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -9,22 +6,23 @@
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)usleep.c   5.2 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
-/*#include <sys/time.h>*/
-/*#include <signal.h>*/
+#include <sys/time.h>
+#include <signal.h>
 
 #define USPS   1000000         /* number of microseconds in a second */
 #define TICK   10000           /* system clock resolution in microseconds */
 
 #define        setvec(vec, a) \
-       vec.sv_handler = (void (*) __P((int sig, int code, struct sigcontext *scp)))a; vec.sv_mask = vec.sv_onstack = 0
+       vec.sv_handler = a; vec.sv_mask = vec.sv_onstack = 0
 
 static int ringring;
 
-static void sleepx __P((void));
-
-void usleep(n) unsigned n; {
+void
+usleep(n)
+       unsigned n;
+{
        void sleepx();
        int omask;
        struct itimerval itv, oitv;
@@ -65,6 +63,7 @@ void usleep(n) unsigned n; {
        (void) setitimer(ITIMER_REAL, &oitv, (struct itimerval *)0);
 }
 
-static void sleepx() {
+static void
+sleepx() {
        ringring = 1;
 }
index 7a088af..ecd3034 100644 (file)
@@ -1,12 +1,3 @@
-#include <gen.h>
-#include <sys.h>
-
-#ifdef __STDC__
-#include <stdint.h>
-#else
-typedef int intptr_t;
-#endif
-
 /*
  * Copyright (c) 1980 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -15,15 +6,17 @@ typedef int intptr_t;
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)valloc.c   5.2 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
-/*void *malloc();*/
+void   *malloc();
 
-void *valloc(i) int i; {
-       int valsiz = getpagesize();
-       intptr_t j;
+void *
+valloc(i)
+       int i;
+{
+       int valsiz = getpagesize(), j;
        char *cp = malloc(i + (valsiz-1));
 
-       j = ((intptr_t)cp + (valsiz-1)) &~ (valsiz-1);
+       j = ((int)cp + (valsiz-1)) &~ (valsiz-1);
        return ((char *)j);
 }
index ebf2b23..34fc6d8 100644 (file)
@@ -1,4 +1,3 @@
-LD=ld
 #
 # Copyright (c) 1980 Regents of the University of California.
 # All rights reserved.  The Berkeley software License Agreement
@@ -18,10 +17,10 @@ TAGSFILE=tags
 
 .c.o:
        ${CC} -p -c ${CFLAGS} $*.c
-       -${LD} -X -r $*.o
+       -ld -X -r $*.o
        mv a.out profiled/$*.o
        ${CC} ${CFLAGS} -c $*.c
-       -${LD} -x -r $*.o
+       -ld -x -r $*.o
        mv a.out $*.o
 
 inetlib inetlib_p: ${OBJS}
index c3ca463..3a1070c 100644 (file)
@@ -1,8 +1,3 @@
-#include <arpa/inet.h>
-#include <ctype.h>
-#include <net.h>
-/*#include <sys/types.h> arpa/inet.h*/
-
 /*
  * Copyright (c) 1983 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)inet_addr.c        5.2 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
-/*#include <sys/types.h>*/
-/*#include <ctype.h>*/
-/*#include <netinet/in.h>*/
+#include <sys/types.h>
+#include <ctype.h>
+#include <netinet/in.h>
 
 /*
  * Internet address interpretation routine.
@@ -24,7 +19,10 @@ static char sccsid[] = "@(#)inet_addr.c      5.2 (Berkeley) 3/9/86";
  * which are expected to be an address.
  * The value returned is in network order.
  */
-u_long inet_addr(cp) register char *cp; {
+u_long
+inet_addr(cp)
+       register char *cp;
+{
        register u_long val, base, n;
        register char c;
        u_long parts[4], *pp = parts;
index 89a4ca7..3451855 100644 (file)
@@ -1,8 +1,3 @@
-#include <arpa/inet.h>
-#include <net.h>
-/*#include <netinet/in.h> arpa/inet.h*/
-/*#include <sys/types.h> arpa/inet.h*/
-
 /*
  * Copyright (c) 1983 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)inet_lnaof.c       5.2 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
-/*#include <sys/types.h>*/
-/*#include <netinet/in.h>*/
+#include <sys/types.h>
+#include <netinet/in.h>
 
 /*
  * Return the local network address portion of an
  * internet address; handles class a/b/c network
  * number formats.
  */
-int inet_lnaof(in) struct in_addr in; {
+inet_lnaof(in)
+       struct in_addr in;
+{
        register u_long i = ntohl(in.s_addr);
 
        if (IN_CLASSA(i))
index 64e4ea8..10b2b28 100644 (file)
@@ -1,8 +1,3 @@
-#include <arpa/inet.h>
-#include <net.h>
-/*#include <netinet/in.h> arpa/inet.h*/
-/*#include <sys/types.h> arpa/inet.h*/
-
 /*
  * Copyright (c) 1983 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)inet_makeaddr.c    5.1 (Berkeley) 3/11/86";
-#endif
+#endif LIBC_SCCS and not lint
 
-/*#include <sys/types.h>*/
-/*#include <netinet/in.h>*/
+#include <sys/types.h>
+#include <netinet/in.h>
 
 /*
  * Formulate an Internet address from network + host.  Used in
  * building addresses stored in the ifnet structure.
  */
-struct in_addr inet_makeaddr(net, host) int net; int host; {
+struct in_addr
+inet_makeaddr(net, host)
+       int net, host;
+{
        u_long addr;
 
        if (net < 128)
index 6a50cf3..a0c9782 100644 (file)
@@ -1,8 +1,3 @@
-#include <arpa/inet.h>
-#include <net.h>
-/*#include <netinet/in.h> arpa/inet.h*/
-/*#include <sys/types.h> arpa/inet.h*/
-
 /*
  * Copyright (c) 1983 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)inet_netof.c       5.2 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
-/*#include <sys/types.h>*/
-/*#include <netinet/in.h>*/
+#include <sys/types.h>
+#include <netinet/in.h>
 
 /*
  * Return the network number from an internet
  * address; handles class a/b/c network #'s.
  */
-int inet_netof(in) struct in_addr in; {
+inet_netof(in)
+       struct in_addr in;
+{
        register u_long i = ntohl(in.s_addr);
 
        if (IN_CLASSA(i))
index ec18ddb..57f0b5f 100644 (file)
@@ -1,7 +1,3 @@
-#include <arpa/inet.h>
-#include <ctype.h>
-/*#include <sys/types.h> arpa/inet.h*/
-
 /*
  * Copyright (c) 1983 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)inet_network.c     5.2 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
-/*#include <sys/types.h>*/
-/*#include <ctype.h>*/
+#include <sys/types.h>
+#include <ctype.h>
 
 /*
  * Internet network address interpretation routine.
  * The library routines call this routine to interpret
  * network numbers.
  */
-u_long inet_network(cp) register char *cp; {
+u_long
+inet_network(cp)
+       register char *cp;
+{
        register u_long val, base, n;
        register char c;
        u_long parts[4], *pp = parts;
index 04aa8dc..98713f4 100644 (file)
@@ -1,7 +1,3 @@
-#include <arpa/inet.h>
-/*#include <netinet/in.h> arpa/inet.h*/
-#include <stdio.h>
-
 /*
  * Copyright (c) 1983 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)inet_ntoa.c        5.2 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
 /*
  * Convert network-format internet address
  * to base 256 d.d.d.d representation.
  */
-/*#include <sys/types.h>*/
-/*#include <netinet/in.h>*/
+#include <sys/types.h>
+#include <netinet/in.h>
 
-char *inet_ntoa(in) struct in_addr in; {
+char *
+inet_ntoa(in)
+       struct in_addr in;
+{
        static char b[18];
        register char *p;
 
diff --git a/lib/libc/linux/Makefile b/lib/libc/linux/Makefile
deleted file mode 100644 (file)
index 59429e2..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-#
-# Copyright (c) 1980 Regents of the University of California.
-# All rights reserved.  The Berkeley software License Agreement
-# specifies the terms and conditions for redistribution.
-#
-#      @(#)Makefile    5.5 (Berkeley) 9/5/85
-#
-# Machine dependent routines for linux hosted are located here
-#
-#COMPAT=       compat-4.1
-ALL=   gen sys
-#gen net stdio sys ${COMPAT}
-TAGSFILE=tags
-
-linuxlib linuxlib_p: ${ALL}
-       -mkdir tmp
-       for i in ${ALL}; do (cd tmp; ar x ../$$i/$${i}lib); done
-#      ar cr linuxlib `ls tmp/*.o | sort -t/ +1`
-       ar cr linuxlib `ls tmp/*.o | LC_ALL=C sort -t/`
-       rm -f tmp/*
-       for i in ${ALL}; do (cd tmp; ar x ../$$i/$${i}lib_p); done
-#      ar cr linuxlib_p `ls tmp/*.o | sort -t/ +1`
-       ar cr linuxlib_p `ls tmp/*.o | LC_ALL=C sort -t/`
-       rm -rf tmp
-
-${ALL}:        FRC
-       cd $@; make ${MFLAGS} DEFS=${DEFS}
-
-FRC:
-
-tags:
-       for i in ${ALL}; do \
-               (cd $$i; make ${MFLAGS} TAGSFILE=../${TAGSFILE} tags); \
-       done
-
-clean:
-       for i in ${ALL}; do (cd $$i; make ${MFLAGS} clean); done
-       rm -f linuxlib linuxlib_p tmp/*.o;
-       -rmdir tmp
-
-depend:
-       for i in ${ALL}; do \
-               (cd $$i; make ${MFLAGS} DEFS=${DEFS} depend); done
diff --git a/lib/libc/linux/csu/Makefile b/lib/libc/linux/csu/Makefile
deleted file mode 100644 (file)
index 1729626..0000000
+++ /dev/null
@@ -1,102 +0,0 @@
-LD=ld
-#
-# Copyright (c) 1980 Regents of the University of California.
-# All rights reserved.  The Berkeley software License Agreement
-# specifies the terms and conditions for redistribution.
-#
-#      @(#)Makefile    5.4 (Berkeley) 9/5/85
-#
-#      crt0    Normal C run time startoff
-#      mcrt0   C run time start off for profiling, ``prof'' conventions
-#      gcrt0   C run time start off for profiling, ``gprof'' conventions
-#
-#DESTDIR=
-SRCS=  crt0.c
-# mon.c gmon.c
-OBJS=  crt0.o mcrt0.o gcrt0.o
-# mon.o gmon.o
-TAGSFILE=tags
-
-all: ${OBJS}
-
-install: ${OBJS}
-       mv crt0.o ${DESTDIR}/lib/crt0.o
-       mv mcrt0.o ${DESTDIR}/lib/mcrt0.o
-       mv gcrt0.o ${DESTDIR}/usr/lib/gcrt0.o
-
-crt0.o: crt0.c
-       ${CC} -DCRT0 -c crt0.c
-
-mcrt0.o: crt0.c
-       ${CC} -DMCRT0 -o $@ -c crt0.c
-
-gcrt0.o: crt0.c
-       ${CC} -DGCRT0 -o $@ -c crt0.c
-
-#crt0.o:       crt0.c
-#      cc -S ${DFLAGS} -DCRT0 crt0.c
-#      /lib/cpp crt0.s > x.s
-#      as -o x.o x.s
-#      ${LD} -x -r -o crt0.o x.o
-#      rm -f x.s x.o crt0.s
-#
-#moncrt0.o: crt0.c
-#      cc -S ${DFLAGS} -DMCRT0 crt0.c
-#      /lib/cpp crt0.s > x.s
-#      as -o x.o x.s
-#      ${LD} -x -r -o moncrt0.o x.o
-#      rm -f x.s x.o crt0.s
-#
-#gcrt0.o: moncrt0.o gmon.o
-#      ${LD} -x -r -o gcrt0.o moncrt0.o gmon.o
-#
-#mcrt0.o: moncrt0.o mon.o
-#      ${LD} -x -r -o mcrt0.o moncrt0.o mon.o
-#
-#mon.o: mon.c mon.ex
-#      cc -S ${DEFS} ${DFLAGS} mon.c
-#      ex - mon.s < mon.ex
-#      as -o x.o mon.s
-#      ${LD} -x -r -o mon.o x.o
-#      rm -f x.o mon.s
-#
-#gmon.o: gmon.c gmon.h gmon.ex
-#      cc -S ${DEFS} ${DFLAGS} gmon.c
-#      ex - gmon.s < gmon.ex
-#      as -o x.o gmon.s
-#      ${LD} -x -r -o gmon.o x.o
-#      rm -f x.o gmon.s
-
-tags:  
-       cwd=`pwd`; \
-       for i in ${SRCS}; do \
-               ctags -a -f ${TAGSFILE} $$cwd/$$i; \
-       done
-
-clean:
-       rm -f ${OBJS} *.o *.s core errs tags Makefile.bak
-
-lint:  crt0.c
-       lint crt0.c -DMCRT0
-       lint crt0.c -DGCRT0
-       lint crt0.c -DCRT0
-
-depend:
-       for i in ${SRCS}; do \
-           cc -M ${DEFS} ${DFLAGS} $$i | awk ' { if ($$1 != prev) \
-               { if (rec != "") print rec; rec = $$0; prev = $$1; } \
-               else { if (length(rec $$2) > 78) { print rec; rec = $$0; } \
-               else rec = rec " " $$2 } } \
-               END { print rec } ' >> makedep; done
-       echo '/^# DO NOT DELETE THIS LINE/+2,$$d' >eddep
-       echo '$$r makedep' >>eddep
-       echo 'w' >>eddep
-       cp Makefile Makefile.bak
-       ed - Makefile < eddep
-       rm eddep makedep
-       echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile
-       echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile
-       echo '# see make depend above' >> Makefile
-
-# DO NOT DELETE THIS LINE -- make depend uses it
-
diff --git a/lib/libc/linux/csu/crt0.c b/lib/libc/linux/csu/crt0.c
deleted file mode 100644 (file)
index 5640b92..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-#include <stdio.h>
-
-extern char **nox_environ;
-char **environ;
-
-#ifndef __P
-#ifdef __STDC__
-#define __P(args) args
-#else
-#define __P(args) ()
-#endif
-#endif
-
-int main __P((int argc, char **argv));
-
-nox_int nox_main(argc, argv) nox_int argc; char **argv; {
-       environ = nox_environ;
-       exit(main(argc, argv));
-}
diff --git a/lib/libc/linux/gen/Makefile b/lib/libc/linux/gen/Makefile
deleted file mode 100644 (file)
index dadc9b6..0000000
+++ /dev/null
@@ -1,51 +0,0 @@
-LD=ld
-#
-# Copyright (c) 1980 Regents of the University of California.
-# All rights reserved.  The Berkeley software License Agreement
-# specifies the terms and conditions for redistribution.
-#
-#      @(#)Makefile    5.4 (Berkeley) 9/5/85
-#
-
-SRCS=  abort.c modf.c
-OBJS=  abort.o modf.o
-TAGSFILE=tags
-
-.c.o:
-       ${CC} -p ${CFLAGS} -c $*.c
-       -${LD} -X -r $*.o
-       mv a.out profiled/$*.o
-       ${CC} ${CFLAGS} -c $*.c
-       -${LD} -x -r $*.o
-       mv a.out $*.o
-
-genlib genlib_p: ${OBJS}
-       @echo "building profiled genlib"
-       @cd profiled; ar cru ../genlib_p ${OBJS}
-       @echo "building normal genlib"
-       @ar cru genlib ${OBJS}
-
-tags:
-
-clean:
-       rm -f genlib genlib_p ${OBJS} profiled/*.o tags Makefile.bak
-
-depend:
-       for i in ${SRCS}; do \
-           cc -M ${DEFS} $$i | awk ' { if ($$1 != prev) \
-               { if (rec != "") print rec; rec = $$0; prev = $$1; } \
-               else { if (length(rec $$2) > 78) { print rec; rec = $$0; } \
-               else rec = rec " " $$2 } } \
-               END { print rec } ' >> makedep; done
-       echo '/^# DO NOT DELETE THIS LINE/+2,$$d' >eddep
-       echo '$$r makedep' >>eddep
-       echo 'w' >>eddep
-       cp Makefile Makefile.bak
-       ed - Makefile < eddep
-       rm eddep makedep
-       echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile
-       echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile
-       echo '# see make depend above' >> Makefile
-
-# DO NOT DELETE THIS LINE -- make depend uses it
-
diff --git a/lib/libc/linux/gen/abort.c b/lib/libc/linux/gen/abort.c
deleted file mode 100644 (file)
index e4eb702..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-#include <nox_stdlib.h>
-
-#include <gen.h>
-
-int abort() {
-       nox_abort();
-}
diff --git a/lib/libc/linux/gen/modf.c b/lib/libc/linux/gen/modf.c
deleted file mode 100644 (file)
index 564ab52..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-#include <nox_math.h>
-
-#include <math.h>
-
-double modf(v, p) double v; double *p; {
-       return nox_modf(v, p);
-}
diff --git a/lib/libc/linux/sys/Makefile b/lib/libc/linux/sys/Makefile
deleted file mode 100644 (file)
index f9498f7..0000000
+++ /dev/null
@@ -1,53 +0,0 @@
-LD=ld
-#
-# Copyright (c) 1980 Regents of the University of California.
-# All rights reserved.  The Berkeley software License Agreement
-# specifies the terms and conditions for redistribution.
-#
-#      @(#)Makefile    5.4 (Berkeley) 9/5/85
-#
-
-SRCS=  close.c fstat.c getpagesize.c isatty.c lseek.c read.c readv.c sbrk.c \
-       vopen.c write.c writev.c _exit.c
-OBJS=  close.o fstat.o getpagesize.o isatty.o lseek.o read.o readv.o sbrk.o \
-       vopen.o write.o writev.o _exit.o
-TAGSFILE=tags
-
-.c.o:
-       ${CC} -p ${CFLAGS} -c $*.c
-       -${LD} -X -r $*.o
-       mv a.out profiled/$*.o
-       ${CC} ${CFLAGS} -c $*.c
-       -${LD} -x -r $*.o
-       mv a.out $*.o
-
-syslib syslib_p: ${OBJS}
-       @echo "building profiled syslib"
-       @cd profiled; ar cru ../syslib_p ${OBJS}
-       @echo "building normal syslib"
-       @ar cru syslib ${OBJS}
-
-tags:
-
-clean:
-       rm -f syslib syslib_p ${OBJS} profiled/*.o tags Makefile.bak
-
-depend:
-       for i in ${SRCS}; do \
-           cc -M ${DEFS} $$i | awk ' { if ($$1 != prev) \
-               { if (rec != "") print rec; rec = $$0; prev = $$1; } \
-               else { if (length(rec $$2) > 78) { print rec; rec = $$0; } \
-               else rec = rec " " $$2 } } \
-               END { print rec } ' >> makedep; done
-       echo '/^# DO NOT DELETE THIS LINE/+2,$$d' >eddep
-       echo '$$r makedep' >>eddep
-       echo 'w' >>eddep
-       cp Makefile Makefile.bak
-       ed - Makefile < eddep
-       rm eddep makedep
-       echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile
-       echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile
-       echo '# see make depend above' >> Makefile
-
-# DO NOT DELETE THIS LINE -- make depend uses it
-
diff --git a/lib/libc/linux/sys/_exit.c b/lib/libc/linux/sys/_exit.c
deleted file mode 100644 (file)
index 6738361..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-#include <nox_unistd.h>
-
-#include <sys/proc.h>
-
-void _exit(s) int s; {
-       nox__exit(s);
-}
diff --git a/lib/libc/linux/sys/close.c b/lib/libc/linux/sys/close.c
deleted file mode 100644 (file)
index 081b87e..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-#include <nox_unistd.h>
-
-#include <sys/errno.h>
-#include <sys/file.h>
-
-int close(f) int f; {
-       int res;
-
-       res = nox_close(f);
-       if (res == -1)
-               errno = EBADF;
-       return res;
-}
diff --git a/lib/libc/linux/sys/fstat.c b/lib/libc/linux/sys/fstat.c
deleted file mode 100644 (file)
index 6a8810c..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-#include <sys/nox_stat.h>
-#include <nox_unistd.h>
-
-#include <gen.h>
-#include <sys/errno.h>
-#include <sys/stat.h>
-
-int fstat(f, b) int f; struct stat *b; {
-       struct nox_stat statbuf;
-       if (nox_fstat(f, &statbuf) == -1) {
-               errno = ENOENT;
-               return -1;
-       }
-       bzero(b, sizeof(struct stat));
-       b->st_size = (off_t)statbuf.nox_st_size;
-       return 0;
-}
diff --git a/lib/libc/linux/sys/getpagesize.c b/lib/libc/linux/sys/getpagesize.c
deleted file mode 100644 (file)
index db8b2ac..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-#include <nox_unistd.h>
-
-#include <sys.h>
-
-int getpagesize() {
-       return nox_getpagesize();
-}
diff --git a/lib/libc/linux/sys/isatty.c b/lib/libc/linux/sys/isatty.c
deleted file mode 100644 (file)
index a93ed6a..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-#include <nox_unistd.h>
-
-#include <sys/errno.h>
-#include <sys/ioctl.h>
-
-int isatty(f) int f; {
-       int res;
-
-       res = nox_isatty(f);
-       if (res == -1)
-               errno = EBADF;
-       return res;
-}
diff --git a/lib/libc/linux/sys/lseek.c b/lib/libc/linux/sys/lseek.c
deleted file mode 100644 (file)
index e7fbbe3..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-#include <nox_unistd.h>
-#include <sys/nox_types.h>
-
-#include <sys/errno.h>
-#include <sys/file.h>
-#include <sys/types.h>
-
-off_t lseek(f, o, d) int f; off_t o; int d; {
-       off_t res;
-
-       res = (off_t)nox_lseek(f, (nox_off_t)o, d);
-       if (res == (off_t)-1)
-               errno = EINVAL;
-       return res;
-}
diff --git a/lib/libc/linux/sys/read.c b/lib/libc/linux/sys/read.c
deleted file mode 100644 (file)
index a73b7e9..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-#include <nox_unistd.h>
-
-#include <sys/errno.h>
-#include <sys/file.h>
-
-int read(f, b, l) int f; void *b; int l; {
-       nox_size_t res;
-       
-       res = nox_read(f, b, l);
-       if (res == (nox_size_t)-1) {
-               errno = EIO;
-               return -1;
-       }
-       return (int)res;
-}
diff --git a/lib/libc/linux/sys/readv.c b/lib/libc/linux/sys/readv.c
deleted file mode 100644 (file)
index 8fdb3d7..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-#include <nox_unistd.h>
-#include <sys/nox_uio.h>
-
-#include <gen.h>
-#include <sys/errno.h>
-#include <sys/file.h>
-#include <sys/uio.h>
-
-int readv(f, v, l) int f; struct iovec *v; int l; {
-       int i;
-       struct nox_iovec iov[8];
-       int res;
-
-       if (l > 8) {
-               read(2, "readv(): iovec too large\n", 25);
-               abort();
-       }
-       for (i = 0; i < l; ++i) {
-               iov[i].nox_iov_base = v[i].iov_base;
-               iov[i].nox_iov_len = v[i].iov_len;
-       }
-       res = nox_readv(f, iov, l);
-       if (res == -1)
-               errno = EIO;
-       return res;
-}
diff --git a/lib/libc/linux/sys/sbrk.c b/lib/libc/linux/sys/sbrk.c
deleted file mode 100644 (file)
index 72146e9..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-#include <nox_stdint.h>
-#include <nox_unistd.h>
-
-#include <sys/errno.h>
-#include <sys/proc.h>
-
-void *sbrk(i) int i; {
-       void *res;
-
-       res = nox_sbrk(i);
-       if ((intptr_t)res == -1)
-               errno = ENOMEM;
-       return res;
-}
diff --git a/lib/libc/linux/sys/vopen.c b/lib/libc/linux/sys/vopen.c
deleted file mode 100644 (file)
index 7fee17a..0000000
+++ /dev/null
@@ -1,49 +0,0 @@
-#include <nox_fcntl.h>
-
-#include <gen.h>
-#include <sys/errno.h>
-#include <sys/file.h>
-#ifdef __STDC__
-#include <stdarg.h>
-#define _va_start(argp, arg) va_start(argp, arg)
-#else
-#include <varargs.h>
-#define _va_start(argp, arg) va_start(argp)
-#endif
-
-int vopen(f, m, argp) char *f; int m; va_list argp; {
-       int flags;
-       nox_mode_t mode = 0;
-       int res;
-
-       switch (m & 3) {
-       case O_RDONLY:
-               flags = nox_O_RDONLY;
-               break;
-       case O_WRONLY:
-               flags = nox_O_WRONLY;
-               break;
-       case O_RDWR:
-               flags = nox_O_RDWR;
-               break;
-       default:
-               write(2, "vopen(): invalid flags\n", 23);
-               abort();
-       }
-       if (m & O_NDELAY)
-               flags |= nox_O_NDELAY;
-       if (m & O_APPEND)
-               flags |= nox_O_APPEND;
-       if (m & O_CREAT) {
-               flags |= nox_O_CREAT;
-               mode = va_arg(argp, int);
-       }
-       if (m & O_TRUNC)
-               flags |= nox_O_TRUNC;
-       if (m & O_EXCL)
-               flags |= nox_O_EXCL;
-       res = nox_open(f, flags, mode);
-       if (res == -1)
-               errno = ENOENT;
-       return res;
-}
diff --git a/lib/libc/linux/sys/write.c b/lib/libc/linux/sys/write.c
deleted file mode 100644 (file)
index 3246a04..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-#include <nox_unistd.h>
-
-#include <sys/errno.h>
-#include <sys/file.h>
-
-int write(f, b, l) int f; void *b; int l; {
-       nox_size_t res;
-       
-       res = nox_write(f, b, l);
-       if (res == (nox_size_t)-1) {
-               errno = EIO;
-               return -1;
-       }
-       return (int)res;
-}
diff --git a/lib/libc/linux/sys/writev.c b/lib/libc/linux/sys/writev.c
deleted file mode 100644 (file)
index 437936f..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-#include <nox_unistd.h>
-#include <sys/nox_uio.h>
-
-#include <gen.h>
-#include <sys/errno.h>
-#include <sys/file.h>
-#include <sys/uio.h>
-
-int writev(f, v, l) int f; struct iovec *v; int l; {
-       int i;
-       struct nox_iovec iov[8];
-       int res;
-
-       if (l > 8) {
-               write(2, "writev(): iovec too large\n", 26);
-               abort();
-       }
-       for (i = 0; i < l; ++i) {
-               iov[i].nox_iov_base = v[i].iov_base;
-               iov[i].nox_iov_len = v[i].iov_len;
-       }
-       res = nox_writev(f, iov, l);
-       if (res == -1)
-               errno = EIO;
-       return res;
-}
index fa47f58..def2b5c 100644 (file)
@@ -1,4 +1,3 @@
-LD=ld
 #
 # Copyright (c) 1983 Regents of the University of California.
 # All rights reserved.  The Berkeley software License Agreement
@@ -6,25 +5,27 @@ LD=ld
 #
 #      @(#)Makefile    5.13 (Berkeley) 3/18/86
 #
-SRCS=  getnetbyaddr.c getnetbyname.c getnetent.c getproto.c getprotoent.c \
-       getprotoname.c getservbyname.c getservbyport.c getservent.c htonl.c \
-       htons.c ntohl.c ntohs.c rcmd.c res_comp.c res_debug.c res_init.c \
-       res_mkquery.c res_send.c rexec.c ruserpass.c
+SRCS=  getnetbyaddr.c getnetent.c getnetbyname.c \
+       getproto.c getprotoent.c getprotoname.c \
+       getservent.c getservbyport.c getservbyname.c \
+       rcmd.c rexec.c ruserpass.c \
+       res_comp.c res_debug.c res_init.c res_mkquery.c res_send.c
 
-OBJS=  getnetbyaddr.o getnetbyname.o getnetent.o getproto.o getprotoent.o \
-       getprotoname.o getservbyname.o getservbyport.o getservent.o htonl.o \
-       htons.o ntohl.o ntohs.o rcmd.o res_comp.o res_debug.o res_init.o \
-       res_mkquery.o res_send.o rexec.o ruserpass.o
+OBJS=  getnetbyaddr.o getnetent.o getnetbyname.o \
+       getproto.o getprotoent.o getprotoname.o \
+       getservent.o getservbyport.o getservbyname.o \
+       rcmd.o rexec.o ruserpass.o \
+       res_comp.o res_debug.o res_init.o res_mkquery.o res_send.o
 
 CFLAGS=        -O ${DEFS}
 TAGSFILE=tags
 
 .c.o:
        ${CC} -p -c ${CFLAGS} $*.c
-       -${LD} -X -r $*.o
+       -ld -X -r $*.o
        mv a.out profiled/$*.o
        ${CC} ${CFLAGS} -c $*.c
-       -${LD} -x -r $*.o
+       -ld -x -r $*.o
        mv a.out $*.o
 
 netlib netlib_p: ${OBJS}
index 38b3904..848c1c8 100644 (file)
@@ -1,5 +1,3 @@
-#include <netdb.h>
-
 /*
  * Copyright (c) 1983 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -8,13 +6,16 @@
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)getnetbyaddr.c     5.3 (Berkeley) 5/19/86";
-#endif
+#endif LIBC_SCCS and not lint
 
-/*#include <netdb.h>*/
+#include <netdb.h>
 
 extern int _net_stayopen;
 
-struct netent *getnetbyaddr(net, type) register int net; register int type; {
+struct netent *
+getnetbyaddr(net, type)
+       register int net, type;
+{
        register struct netent *p;
 
        setnetent(_net_stayopen);
index e328218..c944ae5 100644 (file)
@@ -1,6 +1,3 @@
-#include <netdb.h>
-#include <strings.h>
-
 /*
  * Copyright (c) 1983 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -9,13 +6,16 @@
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)getnetbyname.c     5.3 (Berkeley) 5/19/86";
-#endif
+#endif LIBC_SCCS and not lint
 
-/*#include <netdb.h>*/
+#include <netdb.h>
 
 extern int _net_stayopen;
 
-struct netent *getnetbyname(name) register char *name; {
+struct netent *
+getnetbyname(name)
+       register char *name;
+{
        register struct netent *p;
        register char **cp;
 
index 0cd6dfd..488aa50 100644 (file)
@@ -1,8 +1,3 @@
-#include <arpa/inet.h>
-#include <netdb.h>
-#include <stdio.h>
-#include <sys/socket.h>
-
 /*
  * Copyright (c) 1983 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)getnetent.c        5.3 (Berkeley) 5/19/86";
-#endif
+#endif LIBC_SCCS and not lint
 
-/*#include <stdio.h>*/
-/*#include <sys/types.h>*/
-/*#include <sys/socket.h>*/
-/*#include <netdb.h>*/
-/*#include <ctype.h>*/
+#include <stdio.h>
+#include <sys/types.h>
+#include <sys/socket.h>
+#include <netdb.h>
+#include <ctype.h>
 
 #define        MAXALIASES      35
 
@@ -27,11 +22,11 @@ static char line[BUFSIZ+1];
 static struct netent net;
 static char *net_aliases[MAXALIASES];
 int _net_stayopen;
-/*static char *any();*/
-
-static char *any __P((register char *cp, char *match));
+static char *any();
 
-int setnetent(f) int f; {
+setnetent(f)
+       int f;
+{
        if (netf == NULL)
                netf = fopen(NETDB, "r" );
        else
@@ -39,7 +34,8 @@ int setnetent(f) int f; {
        _net_stayopen |= f;
 }
 
-int endnetent() {
+endnetent()
+{
        if (netf) {
                fclose(netf);
                netf = NULL;
@@ -47,7 +43,9 @@ int endnetent() {
        _net_stayopen = 0;
 }
 
-struct netent *getnetent() {
+struct netent *
+getnetent()
+{
        char *p;
        register char *cp, **q;
 
@@ -93,7 +91,11 @@ again:
        return (&net);
 }
 
-static char *any(cp, match) register char *cp; char *match; {
+static char *
+any(cp, match)
+       register char *cp;
+       char *match;
+{
        register char *mp, c;
 
        while (c = *cp) {
index 2e3b13b..f35a6d6 100644 (file)
@@ -1,5 +1,3 @@
-#include <netdb.h>
-
 /*
  * Copyright (c) 1983 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -8,13 +6,16 @@
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)getproto.c 5.3 (Berkeley) 5/19/86";
-#endif
+#endif LIBC_SCCS and not lint
 
-/*#include <netdb.h>*/
+#include <netdb.h>
 
 extern int _proto_stayopen;
 
-struct protoent *getprotobynumber(proto) register int proto; {
+struct protoent *
+getprotobynumber(proto)
+       register int proto;
+{
        register struct protoent *p;
 
        setprotoent(_proto_stayopen);
index 4ec4e7a..15a6a18 100644 (file)
@@ -1,7 +1,3 @@
-#include <gen.h>
-#include <netdb.h>
-#include <stdio.h>
-
 /*
  * Copyright (c) 1983 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)getprotoent.c      5.3 (Berkeley) 5/19/86";
-#endif
+#endif LIBC_SCCS and not lint
 
-/*#include <stdio.h>*/
-/*#include <sys/types.h>*/
-/*#include <sys/socket.h>*/
-/*#include <netdb.h>*/
-/*#include <ctype.h>*/
+#include <stdio.h>
+#include <sys/types.h>
+#include <sys/socket.h>
+#include <netdb.h>
+#include <ctype.h>
 
 #define        MAXALIASES      35
 
@@ -25,12 +21,12 @@ static FILE *protof = NULL;
 static char line[BUFSIZ+1];
 static struct protoent proto;
 static char *proto_aliases[MAXALIASES];
-/*static char *any();*/
+static char *any();
 int _proto_stayopen;
 
-static char *any __P((register char *cp, char *match));
-
-int setprotoent(f) int f; {
+setprotoent(f)
+       int f;
+{
        if (protof == NULL)
                protof = fopen(PROTODB, "r" );
        else
@@ -38,7 +34,8 @@ int setprotoent(f) int f; {
        _proto_stayopen |= f;
 }
 
-int endprotoent() {
+endprotoent()
+{
        if (protof) {
                fclose(protof);
                protof = NULL;
@@ -46,7 +43,9 @@ int endprotoent() {
        _proto_stayopen = 0;
 }
 
-struct protoent *getprotoent() {
+struct protoent *
+getprotoent()
+{
        char *p;
        register char *cp, **q;
 
@@ -91,7 +90,11 @@ again:
        return (&proto);
 }
 
-static char *any(cp, match) register char *cp; char *match; {
+static char *
+any(cp, match)
+       register char *cp;
+       char *match;
+{
        register char *mp, c;
 
        while (c = *cp) {
index 7223866..872303f 100644 (file)
@@ -1,6 +1,3 @@
-#include <netdb.h>
-#include <strings.h>
-
 /*
  * Copyright (c) 1983 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -9,13 +6,16 @@
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)getprotoname.c     5.3 (Berkeley) 5/19/86";
-#endif
+#endif LIBC_SCCS and not lint
 
-/*#include <netdb.h>*/
+#include <netdb.h>
 
 extern int _proto_stayopen;
 
-struct protoent *getprotobyname(name) register char *name; {
+struct protoent *
+getprotobyname(name)
+       register char *name;
+{
        register struct protoent *p;
        register char **cp;
 
index 3ac46d2..40c784d 100644 (file)
@@ -1,6 +1,3 @@
-#include <netdb.h>
-#include <strings.h>
-
 /*
  * Copyright (c) 1983 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -9,13 +6,16 @@
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)getservbyname.c    5.3 (Berkeley) 5/19/86";
-#endif
+#endif LIBC_SCCS and not lint
 
-/*#include <netdb.h>*/
+#include <netdb.h>
 
 extern int _serv_stayopen;
 
-struct servent *getservbyname(name, proto) char *name; char *proto; {
+struct servent *
+getservbyname(name, proto)
+       char *name, *proto;
+{
        register struct servent *p;
        register char **cp;
 
index 71b9720..d3632a2 100644 (file)
@@ -1,6 +1,3 @@
-#include <netdb.h>
-#include <strings.h>
-
 /*
  * Copyright (c) 1983 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -9,13 +6,17 @@
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)getservbyport.c    5.3 (Berkeley) 5/19/86";
-#endif
+#endif LIBC_SCCS and not lint
 
-/*#include <netdb.h>*/
+#include <netdb.h>
 
 extern int _serv_stayopen;
 
-struct servent *getservbyport(port, proto) int port; char *proto; {
+struct servent *
+getservbyport(port, proto)
+       int port;
+       char *proto;
+{
        register struct servent *p;
 
        setservent(_serv_stayopen);
index 972e3df..7df4ac8 100644 (file)
@@ -1,9 +1,3 @@
-#include <gen.h>
-#include <net.h>
-/*#include <netdb.h> net.h*/
-/*#include <stdio.h> net.h*/
-/*#include <sys/types.h> gen.h*/
-
 /*
  * Copyright (c) 1983 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)getservent.c       5.3 (Berkeley) 5/19/86";
-#endif
+#endif LIBC_SCCS and not lint
 
-/*#include <stdio.h>*/
-/*#include <sys/types.h>*/
-/*#include <sys/socket.h>*/
-/*#include <netdb.h>*/
-/*#include <ctype.h>*/
+#include <stdio.h>
+#include <sys/types.h>
+#include <sys/socket.h>
+#include <netdb.h>
+#include <ctype.h>
 
 #define        MAXALIASES      35
 
@@ -27,12 +21,12 @@ static FILE *servf = NULL;
 static char line[BUFSIZ+1];
 static struct servent serv;
 static char *serv_aliases[MAXALIASES];
-/*static char *any();*/
+static char *any();
 int _serv_stayopen;
 
-static char *any __P((register char *cp, char *match));
-
-int setservent(f) int f; {
+setservent(f)
+       int f;
+{
        if (servf == NULL)
                servf = fopen(SERVDB, "r" );
        else
@@ -40,7 +34,8 @@ int setservent(f) int f; {
        _serv_stayopen |= f;
 }
 
-int endservent() {
+endservent()
+{
        if (servf) {
                fclose(servf);
                servf = NULL;
@@ -48,7 +43,9 @@ int endservent() {
        _serv_stayopen = 0;
 }
 
-struct servent *getservent() {
+struct servent *
+getservent()
+{
        char *p;
        register char *cp, **q;
 
@@ -95,7 +92,11 @@ again:
        return (&serv);
 }
 
-static char *any(cp, match) register char *cp; char *match; {
+static char *
+any(cp, match)
+       register char *cp;
+       char *match;
+{
        register char *mp, c;
 
        while (c = *cp) {
index 4f59870..5d9aad6 100644 (file)
@@ -1,4 +1,3 @@
-LD=ld
 
 #
 # Copyright (c) 1983 Regents of the University of California.
@@ -14,10 +13,10 @@ CFLAGS=     -O ${DEFS}
 
 .c.o: 
        ${CC} -p -c ${CFLAGS} $*.c
-       -${LD} -X -r $*.o
+       -ld -X -r $*.o
        mv a.out profiled/$*.o
        ${CC} ${CFLAGS} -c $*.c
-       -${LD} -x -r $*.o
+       -ld -x -r $*.o
        mv a.out $*.o
 
 hostlib hostlib_p: ${OBJS} 
index 86c6452..4faffe1 100644 (file)
@@ -1,10 +1,3 @@
-#include <arpa/inet.h>
-#include <ndbm.h>
-#include <netdb.h>
-#include <stdio.h>
-#include <sys/socket.h>
-/*#include <sys/types.h> arpa/inet.h*/
-
 /*
  * Copyright (c) 1983 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)gethostent.c       5.3 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
-/*#include <stdio.h>*/
-/*#include <sys/types.h>*/
-/*#include <sys/socket.h>*/
-/*#include <netdb.h>*/
-/*#include <ctype.h>*/
-/*#include <ndbm.h>*/
+#include <stdio.h>
+#include <sys/types.h>
+#include <sys/socket.h>
+#include <netdb.h>
+#include <ctype.h>
+#include <ndbm.h>
 
 /*
  * Internet version.
@@ -45,17 +38,18 @@ char        *_host_file = "/etc/hosts";
 int    _host_stayopen;
 DBM    *_host_db;      /* set by gethostbyname(), gethostbyaddr() */
 
-/*static char *any();*/
-
-static char *any __P((register char *cp, char *match));
+static char *any();
 
-int sethostent(f) int f; {
+sethostent(f)
+       int f;
+{
        if (hostf != NULL)
                rewind(hostf);
        _host_stayopen |= f;
 }
 
-int endhostent() {
+endhostent()
+{
        if (hostf) {
                fclose(hostf);
                hostf = NULL;
@@ -67,7 +61,9 @@ int endhostent() {
        _host_stayopen = 0;
 }
 
-struct hostent *gethostent() {
+struct hostent *
+gethostent()
+{
        char *p;
        register char *cp, **q;
 
@@ -113,11 +109,17 @@ again:
        return (&host);
 }
 
-int sethostfile(file) char *file; {
+sethostfile(file)
+       char *file;
+{
        _host_file = file;
 }
 
-static char *any(cp, match) register char *cp; char *match; {
+static char *
+any(cp, match)
+       register char *cp;
+       char *match;
+{
        register char *mp, c;
 
        while (c = *cp) {
index 8aab4c1..b32602c 100644 (file)
@@ -1,10 +1,3 @@
-#include <ctype.h>
-#include <ndbm.h>
-#include <netdb.h>
-#include <stdio.h>
-#include <strings.h>
-#include <sys/file.h>
-
 /*
  * Copyright (c) 1983 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)gethostnamadr.c    5.5 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
-/*#include <stdio.h>*/
-/*#include <netdb.h>*/
-/*#include <sys/file.h>*/
-/*#include <ndbm.h>*/
-/*#include <ctype.h>*/
+#include <stdio.h>
+#include <netdb.h>
+#include <sys/file.h>
+#include <ndbm.h>
+#include <ctype.h>
 
 #define        MAXALIASES      35
 
@@ -37,9 +30,10 @@ extern       char *_host_file;
 DBM    *_host_db = (DBM *)NULL;
 int    _host_stayopen; /* set by sethostent(), cleared by endhostent() */
 
-static struct hostent *fetchhost __P((datum key));
-
-static struct hostent *fetchhost(key) datum key; {
+static struct hostent *
+fetchhost(key)
+       datum key;
+{
         register char *cp, *tp, **ap;
        int naliases;
 
@@ -71,7 +65,10 @@ static struct hostent *fetchhost(key) datum key; {
         return (&host);
 }
 
-struct hostent *gethostbyname(nam) register char *nam; {
+struct hostent *
+gethostbyname(nam)
+       register char *nam;
+{
        register struct hostent *hp;
        register char **cp;
         datum key;
@@ -112,7 +109,12 @@ struct hostent *gethostbyname(nam) register char *nam; {
         return (hp);
 }
 
-struct hostent *gethostbyaddr(addr, length, type) char *addr; register int length; register int type; {
+struct hostent *
+gethostbyaddr(addr, length, type)
+       char *addr;
+       register int length;
+       register int type;
+{
        register struct hostent *hp;
         datum key;
 
index 96adf05..1e2d219 100644 (file)
@@ -1,10 +1,5 @@
-#include <gen.h>
+#include <sys/types.h>
 #include <net.h>
-#include <sys/file.h>
-/*#include <sys/types.h> gen.h*/
-
-/*#include <sys/types.h>*/
-/*#include <net.h>*/
 
 u_long htonl(hostlong) u_long hostlong; {
        write(2, "htonl()\n", 8);
index 4d57870..1a33707 100644 (file)
@@ -1,12 +1,7 @@
-#include <gen.h>
+#include <sys/types.h>
 #include <net.h>
-#include <sys/file.h>
-/*#include <sys/types.h> gen.h*/
 
-/*#include <sys/types.h>*/
-/*#include <net.h>*/
-
-u_short htons(hostshort) int hostshort; {
+u_short htons(hostshort) u_short hostshort; {
        write(2, "htons()\n", 8);
        abort();
 }
index 3a58b8a..6958409 100644 (file)
@@ -1,4 +1,3 @@
-LD=ld
 #
 # Copyright (c) 1983 Regents of the University of California.
 # All rights reserved.  The Berkeley software License Agreement
@@ -17,10 +16,10 @@ DESTDIR=
 
 .c.o:
        ${CC} -p -c ${CFLAGS} $*.c
-       -${LD} -X -r $*.o
+       -ld -X -r $*.o
        mv a.out profiled/$*.o
        ${CC} ${CFLAGS} -c $*.c
-       -${LD} -x -r $*.o
+       -ld -x -r $*.o
        mv a.out $*.o
 
 hostlib hostlib_p: ${OBJS} 
index 8653f11..fee3aa6 100644 (file)
@@ -1,22 +1,3 @@
-#include <arpa/inet.h>
-/*#include <arpa/nameser.h> net.h*/
-#include <ctype.h>
-#include <net.h>
-/*#include <netdb.h> net.h*/
-/*#include <netinet/in.h> arpa/inet.h*/
-#include <resolv.h>
-/*#include <stdio.h> arpa/nameser.h*/
-#include <strings.h>
-#include <sys/errno.h>
-#include <sys/socket.h>
-/*#include <sys/types.h> arpa/inet.h*/
-
-#ifdef __STDC__
-#include <stdint.h>
-#else
-typedef u_long uintptr_t;
-#endif
-
 /*
  * Copyright (c) 1985 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -25,18 +6,18 @@ typedef u_long uintptr_t;
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)gethostnamadr.c    6.12 (Berkeley) 5/19/86";
-#endif
+#endif LIBC_SCCS and not lint
 
-/*#include <sys/types.h>*/
-/*#include <sys/socket.h>*/
-/*#include <netinet/in.h>*/
-/*#include <ctype.h>*/
-/*#include <netdb.h>*/
-/*#include <stdio.h>*/
-/*#include <errno.h>*/
-/*#include <arpa/inet.h>*/
-/*#include <arpa/nameser.h>*/
-/*#include <resolv.h>*/
+#include <sys/types.h>
+#include <sys/socket.h>
+#include <netinet/in.h>
+#include <ctype.h>
+#include <netdb.h>
+#include <stdio.h>
+#include <errno.h>
+#include <arpa/inet.h>
+#include <arpa/nameser.h>
+#include <resolv.h>
 
 #define        MAXALIASES      35
 #define MAXADDRS       35
@@ -53,7 +34,7 @@ static char line[BUFSIZ+1];
 static char hostaddr[MAXADDRS];
 static char *host_addrs[2];
 static int stayopen = 0;
-/*static char *any();*/
+static char *any();
 
 typedef union {
     HEADER qb1;
@@ -65,13 +46,15 @@ static union {
     char ac;
 } align;
 
+
 int h_errno;
 extern errno;
 
-static struct hostent *getanswer __P((char *msg, int msglen, int iquery));
-static char *any __P((register char *cp, char *match));
-
-static struct hostent *getanswer(msg, msglen, iquery) char *msg; int msglen; int iquery; {
+static struct hostent *
+getanswer(msg, msglen, iquery)
+       char *msg;
+       int msglen, iquery;
+{
        register HEADER *hp;
        register char *cp;
        register int n;
@@ -215,9 +198,7 @@ static struct hostent *getanswer(msg, msglen, iquery) char *msg; int msglen; int
                        }
                }
 
-/* XXX bp = (char *)(((uintptr_t)bp + sizeof(align) - 1) & ~sizeof(align)); */
- abort();
-               bp += ((uintptr_t)bp % sizeof(align));
+               bp += ((u_long)bp % sizeof(align));
 
                if (bp + n >= &hostbuf[sizeof(hostbuf)]) {
 #ifdef DEBUG
@@ -241,7 +222,10 @@ static struct hostent *getanswer(msg, msglen, iquery) char *msg; int msglen; int
        }
 }
 
-struct hostent *gethostbyname(name) char *name; {
+struct hostent *
+gethostbyname(name)
+       char *name;
+{
        int n;
        querybuf buf;
        register struct hostent *hp;
@@ -262,7 +246,11 @@ struct hostent *gethostbyname(name) char *name; {
        return(hp);
 }
 
-struct hostent *gethostbyaddr(addr, len, type) char *addr; int len; int type; {
+struct hostent *
+gethostbyaddr(addr, len, type)
+       char *addr;
+       int len, type;
+{
        int n;
        querybuf buf;
        register struct hostent *hp;
@@ -298,7 +286,10 @@ struct hostent *gethostbyaddr(addr, len, type) char *addr; int len; int type; {
        return(hp);
 }
 
-int _sethtent(f) int f; {
+
+_sethtent(f)
+       int f;
+{
        if (hostf == NULL)
                hostf = fopen(HOSTDB, "r" );
        else
@@ -306,14 +297,17 @@ int _sethtent(f) int f; {
        stayopen |= f;
 }
 
-int _endhtent() {
+_endhtent()
+{
        if (hostf && !stayopen) {
                (void) fclose(hostf);
                hostf = NULL;
        }
 }
 
-struct hostent *_gethtent() {
+struct hostent *
+_gethtent()
+{
        char *p;
        register char *cp, **q;
 
@@ -360,7 +354,11 @@ again:
        return (&host);
 }
 
-static char *any(cp, match) register char *cp; char *match; {
+static char *
+any(cp, match)
+       register char *cp;
+       char *match;
+{
        register char *mp, c;
 
        while (c = *cp) {
@@ -372,7 +370,10 @@ static char *any(cp, match) register char *cp; char *match; {
        return ((char *)0);
 }
 
-struct hostent *_gethtbyname(name) char *name; {
+struct hostent *
+_gethtbyname(name)
+       char *name;
+{
        register struct hostent *p;
        register char **cp;
        char lowname[128];
@@ -398,7 +399,11 @@ found:
        return (p);
 }
 
-struct hostent *_gethtbyaddr(addr, len, type) char *addr; int len; int type; {
+struct hostent *
+_gethtbyaddr(addr, len, type)
+       char *addr;
+       int len, type;
+{
        register struct hostent *p;
 
        _sethtent(0);
index 614db87..0acfe9c 100644 (file)
@@ -1,7 +1,3 @@
-/*#include <arpa/nameser.h> resolv.h*/
-#include <netdb.h>
-#include <resolv.h>
-
 /*
  * Copyright (c) 1985 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)sethostent.c       6.3 (Berkeley) 4/10/86";
-#endif
+#endif LIBC_SCCS and not lint
 
-/*#include <sys/types.h>*/
-/*#include <arpa/nameser.h>*/
-/*#include <netinet/in.h>*/
-/*#include <resolv.h>*/
+#include <sys/types.h>
+#include <arpa/nameser.h>
+#include <netinet/in.h>
+#include <resolv.h>
 
-int sethostent(stayopen) int stayopen; {
+sethostent(stayopen)
+{
        if (stayopen)
                _res.options |= RES_STAYOPEN | RES_USEVC;
 }
 
-int endhostent() {
+endhostent()
+{
        _res.options &= ~(RES_STAYOPEN | RES_USEVC);
        _res_close();
 }
 
-int sethostfile(name) char *name; {
+sethostfile(name)
+char *name;
+{
 #ifdef lint
 name = name;
 #endif
index 8c0f95d..5c0c36e 100644 (file)
@@ -1,10 +1,5 @@
-#include <gen.h>
+#include <sys/types.h>
 #include <net.h>
-#include <sys/file.h>
-/*#include <sys/types.h> gen.h*/
-
-/*#include <sys/types.h>*/
-/*#include <net.h>*/
 
 u_long ntohl(netlong) u_long netlong; {
        write(2, "ntohl()\n", 8);
index dd0eba8..80e0941 100644 (file)
@@ -1,12 +1,7 @@
-#include <gen.h>
+#include <sys/types.h>
 #include <net.h>
-#include <sys/file.h>
-/*#include <sys/types.h> gen.h*/
 
-/*#include <sys/types.h>*/
-/*#include <net.h>*/
-
-u_short ntohs(netshort) int netshort; {
+u_short ntohs(netshort) u_short netshort; {
        write(2, "ntohs()\n", 8);
        abort();
 }
index e96719b..d35b25b 100644 (file)
@@ -1,22 +1,3 @@
-#include <arpa/inet.h>
-#include <ctype.h>
-#include <net.h>
-/*#include <netdb.h> net.h*/
-/*#include <netinet/in.h> arpa/inet.h*/
-#include <pwd.h>
-/*#include <stdio.h> net.h*/
-/*#include <strings.h> sys.h*/
-#include <sys.h>
-/*#include <sys/errno.h> sys.h*/
-/*#include <sys/file.h> sys.h*/
-/*#include <sys/param.h> sys.h*/
-/*#include <sys/proc.h> sys.h*/
-/*#include <sys/signal.h> sys.h*/
-/*#include <sys/socket.h> sys.h*/
-/*#include <sys/stat.h> sys.h*/
-/*#include <sys/time.h> sys.h*/
-/*#include <sys/types.h> arpa/inet.h*/
-
 /*
  * Copyright (c) 1983 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)rcmd.c     5.11 (Berkeley) 5/6/86";
-#endif
+#endif LIBC_SCCS and not lint
 
-/*#include <stdio.h>*/
-/*#include <ctype.h>*/
-/*#include <pwd.h>*/
-/*#include <sys/param.h>*/
-/*#include <sys/file.h>*/
-/*#include <sys/signal.h>*/
-/*#include <sys/socket.h>*/
-/*#include <sys/stat.h>*/
+#include <stdio.h>
+#include <ctype.h>
+#include <pwd.h>
+#include <sys/param.h>
+#include <sys/file.h>
+#include <sys/signal.h>
+#include <sys/socket.h>
+#include <sys/stat.h>
 
-/*#include <netinet/in.h>*/
+#include <netinet/in.h>
 
-/*#include <netdb.h>*/
-/*#include <errno.h>*/
+#include <netdb.h>
+#include <errno.h>
 
 extern errno;
-/*char *index(), *sprintf();*/
+char   *index(), *sprintf();
 
-int rcmd(ahost, rport, locuser, remuser, cmd, fd2p) char **ahost; int rport; char *locuser; char *remuser; char *cmd; int *fd2p; {
+rcmd(ahost, rport, locuser, remuser, cmd, fd2p)
+       char **ahost;
+       u_short rport;
+       char *locuser, *remuser, *cmd;
+       int *fd2p;
+{
        int s, timo = 1, pid, oldmask;
        struct sockaddr_in sin, sin2, from;
        char c;
@@ -163,7 +149,9 @@ bad:
        return (-1);
 }
 
-int rresvport(alport) int *alport; {
+rresvport(alport)
+       int *alport;
+{
        struct sockaddr_in sin;
        int s;
 
@@ -189,7 +177,11 @@ int rresvport(alport) int *alport; {
        }
 }
 
-int ruserok(rhost, superuser, ruser, luser) char *rhost; int superuser; char *ruser; char *luser; {
+ruserok(rhost, superuser, ruser, luser)
+       char *rhost;
+       int superuser;
+       char *ruser, *luser;
+{
        FILE *hostf;
        char fhost[MAXHOSTNAMELEN];
        int first = 1;
@@ -239,7 +231,11 @@ again:
        return (-1);
 }
 
-int _validuser(hostf, rhost, luser, ruser, baselen) FILE *hostf; char *rhost; char *luser; char *ruser; int baselen; {
+_validuser(hostf, rhost, luser, ruser, baselen)
+char *rhost, *luser, *ruser;
+FILE *hostf;
+int baselen;
+{
        char *user;
        char ahost[MAXHOSTNAMELEN];
        register char *p;
@@ -268,7 +264,10 @@ int _validuser(hostf, rhost, luser, ruser, baselen) FILE *hostf; char *rhost; ch
        return (-1);
 }
 
-int _checkhost(rhost, lhost, len) char *rhost; char *lhost; int len; {
+_checkhost(rhost, lhost, len)
+char *rhost, *lhost;
+int len;
+{
        static char ldomain[MAXHOSTNAMELEN + 1];
        static char *domainp = NULL;
        register char *cp;
index 96b8b68..4047129 100644 (file)
@@ -1,6 +1,3 @@
-#include <arpa/nameser.h>
-/*#include <sys/types.h> arpa/nameser.h*/
-
 /*
  * Copyright (c) 1985 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -9,11 +6,12 @@
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)res_comp.c 6.7 (Berkeley) 3/11/86";
-#endif
+#endif LIBC_SCCS and not lint
+
+#include <sys/types.h>
+#include <stdio.h>
+#include <arpa/nameser.h>
 
-/*#include <sys/types.h>*/
-/*#include <stdio.h>*/
-/*#include <arpa/nameser.h>*/
 
 /*
  * Expand compressed domain name 'comp_dn' to full domain name.
@@ -22,7 +20,10 @@ static char sccsid[] = "@(#)res_comp.c       6.7 (Berkeley) 3/11/86";
  * 'exp_dn' is a pointer to a buffer of size 'length' for the result.
  * Return size of compressed name or -1 if there was an error.
  */
-int dn_expand(msg, eomorig, comp_dn, exp_dn, length) char *msg; char *eomorig; char *comp_dn; char *exp_dn; int length; {
+dn_expand(msg, eomorig, comp_dn, exp_dn, length)
+       char *msg, *eomorig, *comp_dn, *exp_dn;
+       int length;
+{
        register char *cp, *dn;
        register int n, c;
        char *eom;
@@ -89,7 +90,11 @@ int dn_expand(msg, eomorig, comp_dn, exp_dn, length) char *msg; char *eomorig; c
  * If 'dnptr' is NULL, we don't try to compress names. If 'lastdnptr'
  * is NULL, we don't update the list.
  */
-int dn_comp(exp_dn, comp_dn, length, dnptrs, lastdnptr) char *exp_dn; char *comp_dn; int length; char **dnptrs; char **lastdnptr; {
+dn_comp(exp_dn, comp_dn, length, dnptrs, lastdnptr)
+       char *exp_dn, *comp_dn;
+       int length;
+       char **dnptrs, **lastdnptr;
+{
        register char *cp, *dn;
        register int c, l;
        char **cpp, **lpp, *sp, *eob;
@@ -154,7 +159,9 @@ int dn_comp(exp_dn, comp_dn, length, dnptrs, lastdnptr) char *exp_dn; char *comp
 /*
  * Skip over a compressed domain name. Return the size or -1.
  */
-int dn_skip(comp_dn) char *comp_dn; {
+dn_skip(comp_dn)
+       char *comp_dn;
+{
        register char *cp;
        register int n;
 
@@ -181,7 +188,10 @@ int dn_skip(comp_dn) char *comp_dn; {
  * Search for expanded name from a list of previously compressed names.
  * Return the offset from msg if found or -1.
  */
-int dn_find(exp_dn, msg, dnptrs, lastdnptr) char *exp_dn; char *msg; char **dnptrs; char **lastdnptr; {
+dn_find(exp_dn, msg, dnptrs, lastdnptr)
+       char *exp_dn, *msg;
+       char **dnptrs, **lastdnptr;
+{
        register char *dn, *cp, **cpp;
        register int n;
        char *sp;
@@ -227,7 +237,10 @@ int dn_find(exp_dn, msg, dnptrs, lastdnptr) char *exp_dn; char *msg; char **dnpt
  * advantage of being portable.
  */
 
-u_short getshort(msgp) char *msgp; {
+u_short
+getshort(msgp)
+       char *msgp;
+{
        register u_char *p = (u_char *) msgp;
 #ifdef vax
        /*
@@ -242,7 +255,10 @@ u_short getshort(msgp) char *msgp; {
        return ((u_short)(u | *p));
 }
 
-u_long getlong(msgp) char *msgp; {
+u_long
+getlong(msgp)
+       char *msgp;
+{
        register u_char *p = (u_char *) msgp;
        register u_long u;
 
@@ -252,13 +268,20 @@ u_long getlong(msgp) char *msgp; {
        return (u | *p);
 }
 
-int putshort(s, msgp) int s; register char *msgp; {
+
+putshort(s, msgp)
+       register u_short s;
+       register char *msgp;
+{
 
        msgp[1] = s;
        msgp[0] = s >> 8;
 }
 
-int putlong(l, msgp) register u_long l; register char *msgp; {
+putlong(l, msgp)
+       register u_long l;
+       register char *msgp;
+{
 
        msgp[3] = l;
        msgp[2] = (l >>= 8);
index e1775b7..1238698 100644 (file)
@@ -1,11 +1,3 @@
-#include <arpa/inet.h>
-/*#include <arpa/nameser.h> net.h*/
-#include <net.h>
-/*#include <netinet/in.h> arpa/inet.h*/
-/*#include <stdio.h> arpa/nameser.h*/
-#include <strings.h>
-/*#include <sys/types.h> arpa/inet.h*/
-
 /*
  * Copyright (c) 1985 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)res_debug.c        5.13 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
 #if defined(lint) && !defined(DEBUG)
 #define DEBUG
 #endif
 
-/*#include <sys/types.h>*/
-/*#include <netinet/in.h>*/
-/*#include <stdio.h>*/
-/*#include <arpa/nameser.h>*/
+#include <sys/types.h>
+#include <netinet/in.h>
+#include <stdio.h>
+#include <arpa/nameser.h>
 
-/*extern char *p_cdname(), *p_rr(), *p_type(), *p_class();*/
-/*extern char *inet_ntoa();*/
+extern char *p_cdname(), *p_rr(), *p_type(), *p_class();
+extern char *inet_ntoa();
 
 char *opcodes[] = {
        "QUERY",
@@ -66,7 +58,9 @@ char *rcodes[] = {
        "NOCHANGE",
 };
 
-int p_query(msg) char *msg; {
+p_query(msg)
+       char *msg;
+{
 #ifdef DEBUG
        fp_query(msg,stdout);
 #endif
@@ -76,7 +70,10 @@ int p_query(msg) char *msg; {
  * Print the contents of a query.
  * This is intended to be primarily a debugging routine.
  */
-int fp_query(msg, file) char *msg; FILE *file; {
+fp_query(msg,file)
+       char *msg;
+       FILE *file;
+{
 #ifdef DEBUG
        register char *cp;
        register HEADER *hp;
@@ -163,7 +160,11 @@ int fp_query(msg, file) char *msg; FILE *file; {
 #endif
 }
 
-char *p_cdname(cp, msg, file) char *cp; char *msg; FILE *file; {
+char *
+p_cdname(cp, msg, file)
+       char *cp, *msg;
+       FILE *file;
+{
 #ifdef DEBUG
        char name[MAXDNAME];
        int n;
@@ -182,7 +183,11 @@ char *p_cdname(cp, msg, file) char *cp; char *msg; FILE *file; {
 /*
  * Print resource record fields in human readable form.
  */
-char *p_rr(cp, msg, file) char *cp; char *msg; FILE *file; {
+char *
+p_rr(cp, msg, file)
+       char *cp, *msg;
+       FILE *file;
+{
 #ifdef DEBUG
        int type, class, dlen, n, c;
        struct in_addr inaddr;
@@ -227,7 +232,7 @@ char *p_rr(cp, msg, file) char *cp; char *msg; FILE *file; {
 #ifdef OLDRR
        case T_MD:
        case T_MF:
-#endif
+#endif /* OLDRR */
        case T_MG:
        case T_MR:
        case T_NS:
@@ -325,12 +330,15 @@ char *p_rr(cp, msg, file) char *cp; char *msg; FILE *file; {
 static char nbuf[20];
 /* we have taken the portable sprintf() from 4.3tahoe */
 /*extern       char *sprintf();*/
-/*extern       int sprintf();*/
+extern int sprintf();
 
 /*
  * Return a string for the type
  */
-char *p_type(type) int type; {
+char *
+p_type(type)
+       int type;
+{
        switch (type) {
        case T_A:
                return("A");
@@ -341,7 +349,7 @@ char *p_type(type) int type; {
                return("MD");
        case T_MF:              /* mail forwarder */
                return("MF");
-#endif
+#endif /* OLDRR */
        case T_CNAME:           /* connonical name */
                return("CNAME");
        case T_SOA:             /* start of authority zone */
@@ -389,7 +397,10 @@ char *p_type(type) int type; {
 /*
  * Return a mnemonic for class
  */
-char *p_class(class) int class; {
+char *
+p_class(class)
+       int class;
+{
 
        switch (class) {
        case C_IN:              /* internet class */
index feaf59b..306959e 100644 (file)
@@ -1,15 +1,3 @@
-#include <arpa/inet.h>
-/*#include <arpa/nameser.h> net.h*/
-#include <gen.h>
-#include <net.h>
-/*#include <netinet/in.h> arpa/inet.h*/
-#include <resolv.h>
-/*#include <stdio.h> arpa/nameser.h*/
-/*#include <strings.h> gen.h*/
-#include <sys.h>
-/*#include <sys/socket.h> sys.h*/
-/*#include <sys/types.h> arpa/inet.h*/
-
 /*
  * Copyright (c) 1985 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)res_init.c 6.5 (Berkeley) 4/11/86";
-#endif
+#endif LIBC_SCCS and not lint
 
-/*#include <sys/types.h>*/
-/*#include <sys/socket.h>*/
-/*#include <netinet/in.h>*/
-/*#include <stdio.h>*/
-/*#include <arpa/nameser.h>*/
-/*#include <resolv.h>*/
+#include <sys/types.h>
+#include <sys/socket.h>
+#include <netinet/in.h>
+#include <stdio.h>
+#include <arpa/nameser.h>
+#include <resolv.h>
 
 /*
  * Resolver configuration file. Contains the address of the
@@ -64,7 +52,8 @@ struct state _res = {
  *
  * Return 0 if completes successfully, -1 on error
  */
-int res_init() {
+res_init()
+{
     register FILE *fp;
     char buf[BUFSIZ], *cp;
     extern u_long inet_addr();
@@ -72,7 +61,7 @@ int res_init() {
     extern char *strcpy(), *strncpy();
 #ifdef DEBUG
     extern char *getenv();
-#endif
+#endif DEBUG
     int n = 0;    /* number of nameserver records read from file */
 
     _res.nsaddr.sin_addr.s_addr = INADDR_ANY;
@@ -115,7 +104,7 @@ int res_init() {
 #ifdef DEBUG
                     if ( _res.options & RES_DEBUG )
                         printf("MAXNS reached, reading resolv.conf\n");
-#endif
+#endif DEBUG
                 }
                 continue;
             }
@@ -134,7 +123,7 @@ int res_init() {
     /* Allow user to override the local domain definition */
     if ((cp = getenv("LOCALDOMAIN")) != NULL)
         (void)strncpy(_res.defdname, cp, sizeof(_res.defdname));
-#endif
+#endif DEBUG
     _res.options |= RES_INIT;
     return(0);
 }
index a81e2cd..0f0c8b5 100644 (file)
@@ -1,10 +1,3 @@
-/*#include <arpa/nameser.h> net.h*/
-#include <net.h>
-#include <resolv.h>
-/*#include <stdio.h> arpa/nameser.h*/
-#include <strings.h>
-/*#include <sys/types.h> arpa/nameser.h*/
-
 /*
  * Copyright (c) 1985 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)res_mkquery.c      6.3 (Berkeley) 3/17/86";
-#endif
+#endif LIBC_SCCS and not lint
 
-/*#include <stdio.h>*/
-/*#include <sys/types.h>*/
-/*#include <netinet/in.h>*/
-/*#include <arpa/nameser.h>*/
-/*#include <resolv.h>*/
+#include <stdio.h>
+#include <sys/types.h>
+#include <netinet/in.h>
+#include <arpa/nameser.h>
+#include <resolv.h>
 
 /* we have taken the portable sprintf() from 4.3tahoe */
 /*extern       char *sprintf();*/
-/*extern       int sprintf();*/
+extern int sprintf();
+
 
 /*
  * Form all types of queries.
  * Returns the size of the result or -1.
  */
-int res_mkquery(op, dname, class, type, data, datalen, newrr, buf, buflen) int op;                     /* opcode of query */ char *dname;              /* domain name */ int class; int type;  /* class and type of query */ char *data;               /* resource record data */ int datalen;         /* length of data */ struct rrec *newrr;        /* new rr for modify or append */ char *buf;            /* buffer to put query */ int buflen;           /* size of buffer */ {
+res_mkquery(op, dname, class, type, data, datalen, newrr, buf, buflen)
+       int op;                 /* opcode of query */
+       char *dname;            /* domain name */
+       int class, type;        /* class and type of query */
+       char *data;             /* resource record data */
+       int datalen;            /* length of data */
+       struct rrec *newrr;     /* new rr for modify or append */
+       char *buf;              /* buffer to put query */
+       int buflen;             /* size of buffer */
+{
        register HEADER *hp;
        register char *cp;
        register int n;
@@ -40,7 +43,7 @@ int res_mkquery(op, dname, class, type, data, datalen, newrr, buf, buflen) int o
 #ifdef DEBUG
        if (_res.options & RES_DEBUG)
                printf("res_mkquery(%d, %s, %d, %d)\n", op, dname, class, type);
-#endif
+#endif DEBUG
        /*
         * Initialize header fields.
         */
index 8018393..8cdd9a2 100644 (file)
@@ -1,16 +1,3 @@
-#include <arpa/inet.h>
-/*#include <arpa/nameser.h> net.h*/
-#include <net.h>
-#include <resolv.h>
-/*#include <stdio.h> arpa/nameser.h*/
-/*#include <sys/errno.h> sys/file.h*/
-#include <sys/file.h>
-/*#include <sys/param.h> sys/file.h*/
-#include <sys/select.h>
-#include <sys/socket.h>
-/*#include <sys/time.h> sys/select.h*/
-/*#include <sys/types.h> arpa/inet.h*/
-#include <sys/uio.h>
 
 /*
  * Copyright (c) 1985 Regents of the University of California.
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)res_send.c 6.14 (Berkeley) 7/2/86";
-#endif
+#endif LIBC_SCCS and not lint
 
 /*
  * Send query to name server and wait for reply.
  */
 
-/*#include <sys/param.h>*/
-/*#include <sys/time.h>*/
-/*#include <sys/socket.h>*/
-/*#include <sys/uio.h>*/
-/*#include <netinet/in.h>*/
-/*#include <stdio.h>*/
-/*#include <errno.h>*/
-/*#include <arpa/nameser.h>*/
-/*#include <resolv.h>*/
+#include <sys/param.h>
+#include <sys/time.h>
+#include <sys/socket.h>
+#include <sys/uio.h>
+#include <netinet/in.h>
+#include <stdio.h>
+#include <errno.h>
+#include <arpa/nameser.h>
+#include <resolv.h>
 
 extern int errno;
 
@@ -42,7 +29,12 @@ static int s = -1;   /* socket used for communications */
 
 #define KEEPOPEN (RES_USEVC|RES_STAYOPEN)
 
-int res_send(buf, buflen, answer, anslen) char *buf; int buflen; char *answer; int anslen; {
+res_send(buf, buflen, answer, anslen)
+       char *buf;
+       int buflen;
+       char *answer;
+       int anslen;
+{
        register int n;
        int retry, v_circuit, resplen, ns;
        int gotsomewhere = 0;
@@ -60,7 +52,7 @@ int res_send(buf, buflen, answer, anslen) char *buf; int buflen; char *answer; i
                printf("res_send()\n");
                p_query(buf);
        }
-#endif
+#endif DEBUG
        if (!(_res.options & RES_INIT))
                if (res_init() == -1) {
                        return(-1);
@@ -76,7 +68,7 @@ int res_send(buf, buflen, answer, anslen) char *buf; int buflen; char *answer; i
                if (_res.options & RES_DEBUG)
                        printf("Querying server (# %d) address = %s\n", ns+1,
                              inet_ntoa(_res.nsaddr_list[ns].sin_addr.s_addr));
-#endif
+#endif DEBUG
                if (v_circuit) {
                        /*
                         * Use virtual circuit.
@@ -88,7 +80,7 @@ int res_send(buf, buflen, answer, anslen) char *buf; int buflen; char *answer; i
 #ifdef DEBUG
                                        if (_res.options & RES_DEBUG)
                                            perror("socket failed");
-#endif
+#endif DEBUG
                                        continue;
                                }
                                if (connect(s, (struct sockaddr *)&(_res.nsaddr_list[ns]),
@@ -97,7 +89,7 @@ int res_send(buf, buflen, answer, anslen) char *buf; int buflen; char *answer; i
 #ifdef DEBUG
                                        if (_res.options & RES_DEBUG)
                                            perror("connect failed");
-#endif
+#endif DEBUG
                                        (void) close(s);
                                        s = -1;
                                        continue;
@@ -116,7 +108,7 @@ int res_send(buf, buflen, answer, anslen) char *buf; int buflen; char *answer; i
 #ifdef DEBUG
                                if (_res.options & RES_DEBUG)
                                        perror("write failed");
-#endif
+#endif DEBUG
                                (void) close(s);
                                s = -1;
                                continue;
@@ -136,7 +128,7 @@ int res_send(buf, buflen, answer, anslen) char *buf; int buflen; char *answer; i
 #ifdef DEBUG
                                if (_res.options & RES_DEBUG)
                                        perror("read failed");
-#endif
+#endif DEBUG
                                (void) close(s);
                                s = -1;
                                continue;
@@ -153,7 +145,7 @@ int res_send(buf, buflen, answer, anslen) char *buf; int buflen; char *answer; i
 #ifdef DEBUG
                                if (_res.options & RES_DEBUG)
                                        perror("read failed");
-#endif
+#endif DEBUG
                                (void) close(s);
                                s = -1;
                                continue;
@@ -171,19 +163,19 @@ int res_send(buf, buflen, answer, anslen) char *buf; int buflen; char *answer; i
 #ifdef DEBUG
                                if (_res.options & RES_DEBUG)
                                        perror("connect");
-#endif
+#endif DEBUG
                                continue;
                        }
-#else
+#else BSD
                        if (sendto(s, buf, buflen, 0, &_res.nsaddr_list[ns],
                            sizeof(struct sockaddr)) != buflen) {
 #ifdef DEBUG
                                if (_res.options & RES_DEBUG)
                                        perror("sendto");
-#endif
+#endif DEBUG
                                continue;
                        }
-#endif
+#endif BSD
                        /*
                         * Wait for reply
                         */
@@ -201,7 +193,7 @@ wait:
 #ifdef DEBUG
                                if (_res.options & RES_DEBUG)
                                        perror("select");
-#endif
+#endif DEBUG
                                continue;
                        }
                        if (n == 0) {
@@ -211,7 +203,7 @@ wait:
 #ifdef DEBUG
                                if (_res.options & RES_DEBUG)
                                        printf("timeout\n");
-#endif
+#endif DEBUG
                                gotsomewhere = 1;
                                continue;
                        }
@@ -219,7 +211,7 @@ wait:
 #ifdef DEBUG
                                if (_res.options & RES_DEBUG)
                                        perror("recvfrom");
-#endif
+#endif DEBUG
                                continue;
                        }
                        gotsomewhere = 1;
@@ -232,7 +224,7 @@ wait:
                                        printf("old answer:\n");
                                        p_query(answer);
                                }
-#endif
+#endif DEBUG
                                goto wait;
                        }
                        if (!(_res.options & RES_IGNTC) && anhp->tc) {
@@ -242,7 +234,7 @@ wait:
 #ifdef DEBUG
                                if (_res.options & RES_DEBUG)
                                        printf("truncated answer\n");
-#endif
+#endif DEBUG
                                (void) close(s);
                                s = -1;
                                /*
@@ -259,7 +251,7 @@ wait:
                        printf("got answer:\n");
                        p_query(answer);
                }
-#endif
+#endif DEBUG
                /*
                 * We are going to assume that the first server is preferred
                 * over the rest (i.e. it is on the local machine) and only
@@ -295,7 +287,8 @@ wait:
  *
  * This routine is not expected to be user visible.
  */
-int _res_close() {
+_res_close()
+{
        if (s != -1) {
                (void) close(s);
                s = -1;
index 4dea98e..39198ca 100644 (file)
@@ -1,14 +1,3 @@
-#include <net.h>
-/*#include <netdb.h> net.h*/
-#include <netinet/in.h>
-/*#include <stdio.h> net.h*/
-#include <strings.h>
-/*#include <sys/errno.h> sys/file.h*/
-#include <sys/file.h>
-#include <sys/socket.h>
-#include <sys/time.h>
-/*#include <sys/types.h> net.h*/
-
 /*
  * Copyright (c) 1980 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)rexec.c    5.2 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
-/*#include <sys/types.h>*/
-/*#include <sys/socket.h>*/
+#include <sys/types.h>
+#include <sys/socket.h>
 
-/*#include <netinet/in.h>*/
+#include <netinet/in.h>
 
-/*#include <stdio.h>*/
-/*#include <netdb.h>*/
-/*#include <errno.h>*/
+#include <stdio.h>
+#include <netdb.h>
+#include <errno.h>
 
 extern errno;
-/*char *index(), *sprintf();*/
+char   *index(), *sprintf();
 int    rexecoptions;
-/*char *getpass(), *getlogin();*/
+char   *getpass(), *getlogin();
 
-int rexec(ahost, rport, name, pass, cmd, fd2p) char **ahost; int rport; char *name; char *pass; char *cmd; int *fd2p; {
+rexec(ahost, rport, name, pass, cmd, fd2p)
+       char **ahost;
+       int rport;
+       char *name, *pass, *cmd;
+       int *fd2p;
+{
        int s, timo = 1, s3;
        struct sockaddr_in sin, sin2, from;
        char c;
index dfbf02e..ad8a2bd 100644 (file)
@@ -1,14 +1,3 @@
-/*#include <ctype.h> gen.h*/
-#include <gen.h>
-#include <net.h>
-/*#include <stdio.h> net.h*/
-/*#include <strings.h> gen.h*/
-/*#include <sys/errno.h> gen.h*/
-#include <sys/file.h>
-#include <sys/ioctl.h>
-#include <sys/stat.h>
-/*#include <utmp.h> gen.h*/
-
 /*
  * Copyright (c) 1983 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)ruserpass.c        5.2 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
-/*#include <stdio.h>*/
-/*#include <utmp.h>*/
-/*#include <ctype.h>*/
-/*#include <sys/types.h>*/
-/*#include <sys/stat.h>*/
-/*#include <errno.h>*/
+#include <stdio.h>
+#include <utmp.h>
+#include <ctype.h>
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <errno.h>
 
-/*char *renvlook(), *malloc(), *index(), *getenv(), *getpass(), *getlogin();*/
-/*struct       utmp *getutmp();*/
+char   *renvlook(), *malloc(), *index(), *getenv(), *getpass(), *getlogin();
+struct utmp *getutmp();
 static FILE *cfile;
 
-static void renv __P((char *host, char **aname, char **apass));
-static char *renvlook __P((char *host));
-static void rnetrc __P((char *host, char **aname, char **apass));
-static token __P((void));
-static char *nbsencrypt __P((char *str, char *key, char *result));
-static char *nbsdecrypt __P((char *cpt, char *key, char *result));
-static char *nbs8encrypt __P((char *str, char *key));
-static char *nbs8decrypt __P((char *crp, char *key));
-static enblkclr __P((char *blk, char *str));
-static char *deblkclr __P((char *blk));
-static enblknot __P((char *blk, char *crp));
-static char *deblknot __P((char *blk));
-static void nbssetkey __P((char *key));
-static void blkencrypt __P((char *block, int edflag));
-static struct utmp *getutmp __P((char *sttyname));
-static void sreverse __P((register char *sto, register char *sfrom));
-static char *mkenvkey __P((int mch));
-
-void ruserpass(host, aname, apass) char *host; char **aname; char **apass; {
+void
+ruserpass(host, aname, apass)
+       char *host, **aname, **apass;
+{
 
        renv(host, aname, apass);
        if (*aname == 0 || *apass == 0)
@@ -73,7 +47,10 @@ void ruserpass(host, aname, apass) char *host; char **aname; char **apass; {
        }
 }
 
-static void renv(host, aname, apass) char *host; char **aname; char **apass; {
+static void
+renv(host, aname, apass)
+       char *host, **aname, **apass;
+{
        register char *cp;
        char *stemp, fgetlogin, *comma;
 
@@ -98,7 +75,10 @@ static void renv(host, aname, apass) char *host; char **aname; char **apass; {
        mkpwclear(cp, host[0], *apass);
 }
 
-static char *renvlook(host) char *host; {
+static char *
+renvlook(host)
+       char *host;
+{
        register char *cp, **env;
        extern char **environ;
 
@@ -148,7 +128,10 @@ static struct toktab {
        0,              0
 };
 
-static void rnetrc(host, aname, apass) char *host; char **aname; char **apass; {
+static void
+rnetrc(host, aname, apass)
+       char *host, **aname, **apass;
+{
        char *hdir, buf[BUFSIZ];
        int t;
        struct stat stb;
@@ -214,7 +197,9 @@ done:
        fclose(cfile);
 }
 
-static token() {
+static
+token()
+{
        char *cp;
        int c;
        struct toktab *t;
@@ -252,8 +237,8 @@ static token() {
 }
 /* rest is nbs.c stolen from berknet */
 
-/*char *deblknot(), *deblkclr();*/
-/*char *nbs8decrypt(), *nbs8encrypt();*/
+char *deblknot(), *deblkclr();
+char *nbs8decrypt(), *nbs8encrypt();
 static char    E[48];
 
 /*
@@ -269,7 +254,10 @@ static char        e[] = {
        24,25,26,27,28,29,
        28,29,30,31,32, 1,
 };
-static char *nbsencrypt(str, key, result) char *str; char *key; char *result; {
+static
+char *nbsencrypt(str,key,result)
+  char *result;
+  char *str, *key; {
        static char buf[20],oldbuf[20];
        register int j;
        result[0] = 0;
@@ -283,7 +271,10 @@ static char *nbsencrypt(str, key, result) char *str; char *key; char *result; {
                }
        return(result);
        }
-static char *nbsdecrypt(cpt, key, result) char *cpt; char *key; char *result; {
+static
+char *nbsdecrypt(cpt,key,result)
+  char *result;
+  char *cpt,*key; {
        char *s;
        char c,oldbuf[20];
        result[0] = 0;
@@ -300,7 +291,9 @@ static char *nbsdecrypt(cpt, key, result) char *cpt; char *key; char *result; {
        return(result);
        }
 
-static char *nbs8encrypt(str, key) char *str; char *key; {
+static
+char *nbs8encrypt(str,key)
+char *str, *key; {
        static char keyblk[100], blk[100];
        register int i;
 
@@ -314,7 +307,9 @@ static char *nbs8encrypt(str, key) char *str; char *key; {
        return(deblknot(blk));
 }
 
-static char *nbs8decrypt(crp, key) char *crp; char *key; {
+static
+char *nbs8decrypt(crp,key)
+char *crp, *key; {
        static char keyblk[100], blk[100];
        register int i;
 
@@ -328,7 +323,9 @@ static char *nbs8decrypt(crp, key) char *crp; char *key; {
        return(deblkclr(blk));
 }
 
-static enblkclr(blk, str)              /* ignores top bit of chars in string str */ char *blk; char *str; {
+static
+enblkclr(blk,str)              /* ignores top bit of chars in string str */
+char *blk,*str; {
        register int i,j;
        char c;
        for(i=0;i<70;i++)blk[i] = 0;
@@ -339,7 +336,9 @@ static enblkclr(blk, str)           /* ignores top bit of chars in string str */ char *bl
                }
        }
 
-static char *deblkclr(blk) char *blk; {
+static
+char *deblkclr(blk)
+char *blk; {
        register int i,j;
        char c;
        static char iobuf[30];
@@ -355,7 +354,10 @@ static char *deblkclr(blk) char *blk; {
        return(iobuf);
        }
 
-static enblknot(blk, crp) char *blk; char *crp; {
+static
+enblknot(blk,crp)
+char *blk;
+char *crp; {
        register int i,j;
        char c;
        for(i=0;i<70;i++)blk[i] = 0;
@@ -368,7 +370,9 @@ static enblknot(blk, crp) char *blk; char *crp; {
                }
        }
 
-static char *deblknot(blk) char *blk; {
+static
+char *deblknot(blk)
+char *blk; {
        register int i,j;
        char c;
        static char iobuf[30];
@@ -483,7 +487,10 @@ static     char    KS[16][48];
  * Set up the key schedule from the key.
  */
 
-static void nbssetkey(key) char *key; {
+static void
+nbssetkey(key)
+char *key;
+{
        register i, j, k;
        int t;
 
@@ -526,6 +533,7 @@ static void nbssetkey(key) char *key; {
        }
 }
 
+
 /*
  * The 8 selection functions.
  * For some reason, they give a 0-origin
@@ -604,7 +612,10 @@ static     char    preS[48];
  * The payoff: encrypt a block.
  */
 
-static void blkencrypt(block, edflag) char *block; int edflag; {
+static void
+blkencrypt(block, edflag)
+char *block;
+{
        int i, ii;
        register t, j, k;
 
@@ -696,7 +707,10 @@ static void blkencrypt(block, edflag) char *block; int edflag; {
        Is version independent-- will work on v6 systems
        return NULL if error
 */
-static struct utmp *getutmp(sttyname) char *sttyname; {
+static
+struct utmp *getutmp(sttyname)
+char *sttyname;
+{
        static struct utmp utmpstr;
        FILE *fdutmp;
 
@@ -714,7 +728,10 @@ static struct utmp *getutmp(sttyname) char *sttyname; {
        return(NULL);
 }
 
-static void sreverse(sto, sfrom) register char *sto; register char *sfrom; {
+static void
+sreverse(sto, sfrom)
+       register char *sto, *sfrom;
+{
        register int i;
 
        i = strlen(sfrom);
@@ -722,7 +739,10 @@ static void sreverse(sto, sfrom) register char *sto; register char *sfrom; {
                *sto++ = sfrom[i--];
 }
 
-static char *mkenvkey(mch) int mch; {
+static
+char *mkenvkey(mch)
+       char mch;
+{
        static char skey[40];
        register struct utmp *putmp;
        char stemp[40], stemp1[40], sttyname[30];
@@ -753,7 +773,10 @@ static char *mkenvkey(mch) int mch; {
        return (skey);
 }
 
-void mkpwunclear(spasswd, mch, sencpasswd) char *spasswd; int mch; char *sencpasswd; {
+void
+mkpwunclear(spasswd,mch,sencpasswd)
+       char mch, *spasswd, *sencpasswd;
+{
        register char *skey;
 
        if (spasswd[0] == 0) {
@@ -768,7 +791,10 @@ void mkpwunclear(spasswd, mch, sencpasswd) char *spasswd; int mch; char *sencpas
        nbsencrypt(spasswd, skey, sencpasswd);
 }
 
-void mkpwclear(sencpasswd, mch, spasswd) char *sencpasswd; int mch; char *spasswd; {
+void
+mkpwclear(sencpasswd,mch,spasswd)
+       char mch, *spasswd, *sencpasswd;
+{
        register char *skey;
 
        if (sencpasswd[0] == 0) {
index 7a29b74..d28ab05 100644 (file)
@@ -1,4 +1,3 @@
-LD=ld
 #
 # Copyright (c) 1980 Regents of the University of California.
 # All rights reserved.  The Berkeley software License Agreement
@@ -14,10 +13,10 @@ TAGSFILE=tags
 
 .c.o:
        ${CC} -p -c ${CFLAGS} $*.c
-       -${LD} -X -r $*.o
+       -ld -X -r $*.o
        mv a.out profiled/$*.o
        ${CC} ${CFLAGS} -c $*.c
-       -${LD} -x -r $*.o
+       -ld -x -r $*.o
        mv a.out $*.o
 
 nslib nslib_p: ${OBJS}
index 2387daf..0bd83ed 100644 (file)
@@ -1,9 +1,3 @@
-#include <net.h>
-#include <netns/ns.h>
-/*#include <stdio.h> net.h*/
-#include <strings.h>
-/*#include <sys/types.h> net.h*/
-
 /*
  * Copyright (c) 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)ns_addr.c  6.2 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
-/*#include <sys/types.h>*/
-/*#include <netns/ns.h>*/
+#include <sys/types.h>
+#include <netns/ns.h>
 
 static struct ns_addr addr, zero_addr;
 
-static void Field __P((char *buf, u_char *out, int len));
-static cvtbase __P((int oldbase, int newbase, int input[], int inlen, unsigned char result[], int reslen));
-
-struct ns_addr ns_addr(name) char *name; {
+struct ns_addr 
+ns_addr(name)
+       char *name;
+{
        u_long net;
        u_short socket;
        char separator = '.';
@@ -69,7 +63,12 @@ struct ns_addr ns_addr(name) char *name; {
        return (addr);
 }
 
-static void Field(buf, out, len) char *buf; u_char *out; int len; {
+static void
+Field(buf, out, len)
+char *buf;
+u_char *out;
+int len;
+{
        register char *bp = buf;
        int i, ibase, base16 = 0, base10 = 0, clen = 0;
        int hb[6], *hp;
@@ -168,7 +167,14 @@ static void Field(buf, out, len) char *buf; u_char *out; int len; {
        cvtbase(ibase, 256, hb, i, out, len);
 }
 
-static cvtbase(oldbase, newbase, input, inlen, result, reslen) int oldbase; int newbase; int input[]; int inlen; unsigned char result[]; int reslen; {
+static
+cvtbase(oldbase,newbase,input,inlen,result,reslen)
+       int oldbase, newbase;
+       int input[];
+       int inlen;
+       unsigned char result[];
+       int reslen;
+{
        int d, e;
        long sum;
 
index d877876..f72ca71 100644 (file)
@@ -1,8 +1,3 @@
-#include <net.h>
-#include <netns/ns.h>
-/*#include <stdio.h> net.h*/
-/*#include <sys/types.h> net.h*/
-
 /*
  * Copyright (c) 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)ns_ntoa.c  6.3 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
-/*#include <sys/types.h>*/
-/*#include <netns/ns.h>*/
-
-static char *spectHex __P((char *p0));
+#include <sys/types.h>
+#include <netns/ns.h>
 
-char *ns_ntoa(addr) struct ns_addr addr; {
+char *
+ns_ntoa(addr)
+struct ns_addr addr;
+{
        static char obuf[40];
        char *spectHex();
        union { union ns_net net_e; u_long long_e; } net;
@@ -54,7 +50,10 @@ char *ns_ntoa(addr) struct ns_addr addr; {
        return (obuf);
 }
 
-static char *spectHex(p0) char *p0; {
+static char *
+spectHex(p0)
+char *p0;
+{
        int ok = 0;
        int nonzero = 0;
        register char *p = p0;
index a1384bb..331b111 100644 (file)
@@ -1,4 +1,3 @@
-LD=ld
 #
 # Copyright (c) 1980 Regents of the University of California.
 # All rights reserved.  The Berkeley software License Agreement
@@ -23,10 +22,10 @@ TAGSFILE=tags
 
 .c.o:
        ${CC} -p ${CFLAGS} -c $*.c
-       -${LD} -X -r $*.o
+       -ld -X -r $*.o
        mv a.out profiled/$*.o
        ${CC} ${CFLAGS} -c $*.c
-       -${LD} -x -r $*.o
+       -ld -x -r $*.o
        mv a.out $*.o
 
 stdiolib stdiolib_p: ${OBJS}
index 99234f3..baaede2 100644 (file)
@@ -1,12 +1,12 @@
-#include <stdio.h>
-
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)clrerr.c   5.2 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
-/*#include <stdio.h>*/
+#include <stdio.h>
 #undef clearerr
 
-int clearerr(iop) register FILE *iop; {
+clearerr(iop)
+       register FILE *iop;
+{
        iop->_flag &= ~(_IOERR|_IOEOF);
 }
index 77895ae..3aa00db 100644 (file)
@@ -1,24 +1,3 @@
-#include <ctype.h>
-#include <math.h>
-#include <memory.h>
-#include <stdio.h>
-#include <strings.h>
-/*#include <sys/types.h> stdio.h*/
-#ifdef __STDC__
-#include <stdarg.h>
-#define _va_start(argp, arg) va_start(argp, arg)
-#else
-#include <varargs.h>
-#define _va_start(argp, arg) va_start(argp)
-#endif
-
-#ifdef __STDC__
-#include <stdint.h>
-#else
-typedef long intptr_t;
-#ypedef u_long uintptr_t;
-#endif
-
 /*
  * Copyright (c) 1988 Regents of the University of California.
  * All rights reserved.
@@ -38,12 +17,12 @@ typedef long intptr_t;
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)doprnt.c   5.35 (Berkeley) 6/27/88";
-#endif
+#endif /* LIBC_SCCS and not lint */
 
-/*#include <sys/types.h>*/
-/*#include <varargs.h>*/
-/*#include <stdio.h>*/
-/*#include <ctype.h>*/
+#include <sys/types.h>
+#include <varargs.h>
+#include <stdio.h>
+#include <ctype.h>
 
 /* 11-bit exponent (VAX G floating point) is 308 decimal digits */
 #define        MAXEXP          308
@@ -74,18 +53,18 @@ static char sccsid[] = "@(#)doprnt.c        5.35 (Berkeley) 6/27/88";
 #define        ZEROPAD         0x20            /* zero (as opposed to blank) pad */
 #define        HEXPREFIX       0x40            /* add 0x or 0X prefix */
 
-static cvt __P((double number, register int prec, int flags, char *signp, int fmtch, char *startp, char *endp));
-static char *round __P((double fract, int *exp, register char *start, register char *end, int ch, char *signp));
-static char *exponent __P((register char *p, register int exp, int fmtch));
-
-int _doprnt(fmt0, argp, fp) u_char *fmt0; va_list argp; register FILE *fp; {
+_doprnt(fmt0, argp, fp)
+       u_char *fmt0;
+       va_list argp;
+       register FILE *fp;
+{
        register u_char *fmt;   /* format string */
        register int ch;        /* character from fmt */
        register int cnt;       /* return value accumulator */
        register int n;         /* random handy integer */
        register char *t;       /* buffer pointer */
        double _double;         /* double precision arguments %[eEfgG] */
-       uintptr_t _ulong;               /* integer arguments %[diouxX] */
+       u_long _ulong;          /* integer arguments %[diouxX] */
        int base;               /* base for [diouxX] conversion */
        int dprec;              /* decimal precision in [diouxX] */
        int fieldsz;            /* field size expanded by sign, etc */
@@ -212,8 +191,7 @@ rflag:              switch (*++fmt) {
                case 'd':
                case 'i':
                        ARG();
-                       if ((intptr_t)_ulong < 0)
-                       {
+                       if ((long)_ulong < 0) {
                                _ulong = -_ulong;
                                sign = '-';
                        }
@@ -282,7 +260,7 @@ rflag:              switch (*++fmt) {
                         *      -- ANSI X3J11
                         */
                        /* NOSTRICT */
-                       _ulong = (uintptr_t)va_arg(argp, void *);
+                       _ulong = (u_long)va_arg(argp, void *);
                        base = 16;
                        goto nosign;
                case 's':
@@ -425,7 +403,14 @@ pforw:
        /* NOTREACHED */
 }
 
-static cvt(number, prec, flags, signp, fmtch, startp, endp) double number; register int prec; int flags; char *signp; int fmtch; char *startp; char *endp; {
+static
+cvt(number, prec, flags, signp, fmtch, startp, endp)
+       double number;
+       register int prec;
+       int flags;
+       u_char fmtch;
+       char *signp, *startp, *endp;
+{
        register char *p, *t;
        register double fract;
        int dotrim, expcnt, gformat;
@@ -604,7 +589,13 @@ eformat:   if (expcnt) {
        return(t - startp);
 }
 
-static char *round(fract, exp, start, end, ch, signp) double fract; int *exp; register char *start; register char *end; int ch; char *signp; {
+static char *
+round(fract, exp, start, end, ch, signp)
+       double fract;
+       int *exp;
+       register char *start, *end;
+       char ch, *signp;
+{
        double tmp;
 
        if (fract)
@@ -643,7 +634,12 @@ static char *round(fract, exp, start, end, ch, signp) double fract; int *exp; re
        return(start);
 }
 
-static char *exponent(p, exp, fmtch) register char *p; register int exp; int fmtch; {
+static char *
+exponent(p, exp, fmtch)
+       register char *p;
+       register int exp;
+       u_char fmtch;
+{
        register char *t;
        char expbuf[MAXEXP];
 
index 7a8f05d..ed2ec05 100644 (file)
@@ -1,21 +1,10 @@
-#include <ctype.h>
-#include <math.h>
-#include <stdio.h>
-#ifdef __STDC__
-#include <stdarg.h>
-#define _va_start(argp, arg) va_start(argp, arg)
-#else
-#include <varargs.h>
-#define _va_start(argp, arg) va_start(argp)
-#endif
-
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)doscan.c   5.2 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
-/*#include <stdio.h>*/
-/*#include <ctype.h>*/
-/*#include <varargs.h>*/
+#include <stdio.h>
+#include <ctype.h>
+#include <varargs.h>
 
 #define        SPC     01
 #define        STP     02
@@ -26,7 +15,7 @@ static char sccsid[] = "@(#)doscan.c  5.2 (Berkeley) 3/9/86";
 #define        INT     0
 #define        FLOAT   1
 
-/*static char *_getccl();*/
+static char *_getccl();
 
 static char _sctab[256] = {
        0,0,0,0,0,0,0,0,
@@ -39,11 +28,11 @@ static char _sctab[256] = {
        0,0,0,0,0,0,0,0,
 };
 
-static _innum __P((int *ptr, int type, int len, int size, FILE *iop, int *eofptr));
-static _instr __P((register char *ptr, int type, int len, register FILE *iop, int *eofptr));
-static char *_getccl __P((register unsigned char *s));
-
-int _doscan(iop, fmt, argp) FILE *iop; register char *fmt; register va_list argp; {
+_doscan(iop, fmt, argp)
+FILE *iop;
+register char *fmt;
+register va_list argp;
+{
        register int ch;
        int nmatch, len, ch1;
        int *ptr, fileended, size;
@@ -110,7 +99,11 @@ int _doscan(iop, fmt, argp) FILE *iop; register char *fmt; register va_list argp
        }
 }
 
-static _innum(ptr, type, len, size, iop, eofptr) int *ptr; int type; int len; int size; FILE *iop; int *eofptr; {
+static
+_innum(ptr, type, len, size, iop, eofptr)
+int *ptr, *eofptr;
+FILE *iop;
+{
        extern double atof();
        register char *np;
        char numbuf[64];
@@ -215,7 +208,12 @@ static _innum(ptr, type, len, size, iop, eofptr) int *ptr; int type; int len; in
        return(1);
 }
 
-static _instr(ptr, type, len, iop, eofptr) register char *ptr; int type; int len; register FILE *iop; int *eofptr; {
+static
+_instr(ptr, type, len, iop, eofptr)
+register char *ptr;
+register FILE *iop;
+int *eofptr;
+{
        register ch;
        register char *optr;
        int ignstp;
@@ -255,7 +253,10 @@ static _instr(ptr, type, len, iop, eofptr) register char *ptr; int type; int len
        return(0);
 }
 
-static char *_getccl(s) register unsigned char *s; {
+static char *
+_getccl(s)
+register unsigned char *s;
+{
        register c, t;
 
        t = 0;
index 62677c4..aa9949c 100644 (file)
@@ -1,12 +1,10 @@
-#include <gen.h>
-#include <stdio.h>
-/*#include <sys/proc.h> gen.h*/
-
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)exit.c     5.2 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
-int exit(code) int code; {
+exit(code)
+       int code;
+{
 
        _cleanup();
        _exit(code);
index 333a264..04032b7 100644 (file)
@@ -1,7 +1,3 @@
-#include <stdio.h>
-#include <sys/file.h>
-/*#include <sys/types.h> stdio.h*/
-
 /*
  * Copyright (c) 1980 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -10,7 +6,7 @@
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)fdopen.c   5.2 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
 /*
  * Unix routine to do an "fopen" on file descriptor
@@ -18,11 +14,14 @@ static char sccsid[] = "@(#)fdopen.c        5.2 (Berkeley) 3/9/86";
  * status
  */
 
-/*#include <sys/types.h>*/
-/*#include <sys/file.h>*/
-/*#include <stdio.h>*/
+#include <sys/types.h>
+#include <sys/file.h>
+#include <stdio.h>
 
-FILE *fdopen(fd, mode) int fd; register char *mode; {
+FILE *
+fdopen(fd, mode)
+       register char *mode;
+{
        extern FILE *_findiop();
        static int nofile = -1;
        register FILE *iop;
index ad7235b..4fa4e8e 100644 (file)
@@ -1,11 +1,11 @@
-#include <stdio.h>
-
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)fgetc.c    5.2 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
-/*#include <stdio.h>*/
+#include <stdio.h>
 
-int fgetc(fp) FILE *fp; {
+fgetc(fp)
+FILE *fp;
+{
        return(getc(fp));
 }
index a43d2de..e232c47 100644 (file)
@@ -1,12 +1,14 @@
-#include <stdio.h>
-
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)fgets.c    5.2 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
-/*#include     <stdio.h>*/
+#include       <stdio.h>
 
-char *fgets(s, n, iop) char *s; int n; register FILE *iop; {
+char *
+fgets(s, n, iop)
+char *s;
+register FILE *iop;
+{
        register c;
        register char *cs;
 
index d398dac..9b497f9 100644 (file)
@@ -1,8 +1,3 @@
-#include <gen.h>
-#include <stdio.h>
-#include <sys/file.h>
-#include <sys/stat.h>
-
 /*
  * Copyright (c) 1980 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)filbuf.c   5.3 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
-/*#include     <stdio.h>*/
-/*#include     <sys/types.h>*/
-/*#include     <sys/stat.h>*/
-/*char *malloc();*/
+#include       <stdio.h>
+#include       <sys/types.h>
+#include       <sys/stat.h>
+char   *malloc();
 
-int _filbuf(iop) register FILE *iop; {
+_filbuf(iop)
+register FILE *iop;
+{
        int size;
        struct stat stbuf;
        extern char *_smallbuf;
index 07fee1e..07275b8 100644 (file)
@@ -1,8 +1,3 @@
-#include <gen.h>
-#include <stdio.h>
-/*#include <sys/errno.h> gen.h*/
-#include <sys/file.h>
-
 /*
  * Copyright (c) 1983, 1985 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)findiop.c  5.6 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
-/*#include <stdio.h>*/
-/*#include <errno.h>*/
+#include <stdio.h>
+#include <errno.h>
 
 extern int errno;
 
@@ -28,7 +23,7 @@ FILE _iob[NSTATIC] = {
        { 0, NULL, NULL, 0, _IOWRT|_IONBF,      2 },    /* stderr */
 };
 
-/*extern       void    *calloc();*/
+extern void    *calloc();
 
 static char sbuf[NSTATIC];
 char   *_smallbuf = sbuf;
@@ -44,7 +39,9 @@ static        FILE    **endglue;
  * If none are available, then we allocate a structure to glue together
  * the old and new FILE entries, which are then no longer contiguous.
  */
-FILE *_findiop() {
+FILE *
+_findiop()
+{
        register FILE **iov, *iop;
        register FILE *fp;
 
@@ -72,7 +69,8 @@ FILE *_findiop() {
        return (*iov);
 }
 
-int _f_morefiles() {
+_f_morefiles()
+{
        register FILE **iov;
        register FILE *fp;
        register char *cp;
@@ -93,7 +91,9 @@ int _f_morefiles() {
        return (1);
 }
 
-void f_prealloc() {
+void
+f_prealloc()
+{
        register FILE **iov;
        register FILE *fp;
 
@@ -105,7 +105,10 @@ void f_prealloc() {
                        *iov = (FILE *)calloc(1, sizeof **iov);
 }
 
-void _fwalk(function) register int (*function) __P((FILE *iop)); {
+void
+_fwalk(function)
+       register int (*function)();
+{
        register FILE **iov;
        register FILE *fp;
 
@@ -120,7 +123,9 @@ void _fwalk(function) register int (*function) __P((FILE *iop)); {
        }
 }
 
-void _cleanup() {
+void
+_cleanup()
+{
        extern int fclose();
 
        _fwalk(fclose);
index 4723b58..e2996cc 100644 (file)
@@ -1,9 +1,3 @@
-#include <gen.h>
-#include <stdio.h>
-#include <sys/file.h>
-#include <sys/ioctl.h>
-#include <sys/stat.h>
-
 /*
  * Copyright (c) 1980 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)flsbuf.c   5.2 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
-/*#include     <stdio.h>*/
-/*#include     <sys/types.h>*/
-/*#include     <sys/stat.h>*/
+#include       <stdio.h>
+#include       <sys/types.h>
+#include       <sys/stat.h>
 
-/*char *malloc();*/
+char   *malloc();
 
-int _flsbuf(c, iop) int c; register FILE *iop; {
+_flsbuf(c, iop)
+unsigned char c;
+register FILE *iop;
+{
        register char *base;
        register n, rn;
        char c1;
@@ -83,7 +80,9 @@ tryagain:
        return(c);
 }
 
-int fflush(iop) register FILE *iop; {
+fflush(iop)
+register FILE *iop;
+{
        register char *base;
        register n;
 
@@ -99,7 +98,9 @@ int fflush(iop) register FILE *iop; {
        return(0);
 }
 
-int fclose(iop) register FILE *iop; {
+fclose(iop)
+       register FILE *iop;
+{
        register int r;
 
        r = EOF;
index 7ff5938..6eda99a 100644 (file)
@@ -1,7 +1,3 @@
-#include <stdio.h>
-#include <sys/file.h>
-/*#include <sys/types.h> stdio.h*/
-
 /*
  * Copyright (c) 1980 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)fopen.c    5.2 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
-/*#include <sys/types.h>*/
-/*#include <sys/file.h>*/
-/*#include <stdio.h>*/
+#include <sys/types.h>
+#include <sys/file.h>
+#include <stdio.h>
 
-FILE *fopen(file, mode) char *file; register char *mode; {
+FILE *
+fopen(file, mode)
+       char *file;
+       register char *mode;
+{
        register FILE *iop;
        register f, rw, oflags;
        extern FILE *_findiop();
index 76f69fa..ca358bb 100644 (file)
@@ -1,12 +1,3 @@
-#include <stdio.h>
-#ifdef __STDC__
-#include <stdarg.h>
-#define _va_start(argp, arg) va_start(argp, arg)
-#else
-#include <varargs.h>
-#define _va_start(argp, arg) va_start(argp)
-#endif
-
 /*
  * Copyright (c) 1980 Regents of the University of California.
  * All rights reserved.
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)fprintf.c  5.4 (Berkeley) 6/27/88";
-#endif
+#endif LIBC_SCCS and not lint
 
-/*#include <stdio.h>*/
-/*#include <varargs.h>*/
+#include <stdio.h>
+#include <varargs.h>
 
-#ifdef __STDC__
-int fprintf(register FILE *iop, char *fmt, ...)
-#else
-int fprintf(iop, fmt, va_alist) register FILE *iop; char *fmt; va_dcl
-#endif
+fprintf(iop, fmt, va_alist)
+       register FILE *iop;
+       char *fmt;
+       va_dcl
 {
        va_list argp;
        int len;
        char localbuf[BUFSIZ];
 
-       _va_start(argp, fmt);
+       va_start(argp);
        if (iop->_flag & _IONBF) {
                iop->_flag &= ~_IONBF;
                iop->_ptr = iop->_base = localbuf;
index 2106d52..2bd5999 100644 (file)
@@ -1,11 +1,11 @@
-#include <stdio.h>
-
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)fputc.c    5.2 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
-/*#include <stdio.h>*/
+#include <stdio.h>
 
-int fputc(c, fp) int c; register FILE *fp; {
+fputc(c, fp)
+register FILE *fp;
+{
        return(putc(c, fp));
 }
index 932dd05..3aa913e 100644 (file)
@@ -1,5 +1,3 @@
-#include <stdio.h>
-
 /*
  * Copyright (c) 1984 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -8,11 +6,14 @@
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)fputs.c    5.2 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
-/*#include     <stdio.h>*/
+#include       <stdio.h>
 
-int fputs(s, iop) register char *s; register FILE *iop; {
+fputs(s, iop)
+register char *s;
+register FILE *iop;
+{
        register r = 0;
        register c;
        int unbuffered;
index b6444ba..89c7cf8 100644 (file)
@@ -1,6 +1,3 @@
-#include <stdio.h>
-#include <strings.h>
-
 /*
  * Copyright (c) 1980 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -9,11 +6,15 @@
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)fread.c    5.2 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
-/*#include     <stdio.h>*/
+#include       <stdio.h>
 
-int fread(_ptr, size, count, iop) void *_ptr; unsigned size; unsigned count; register FILE *iop; {
+fread(_ptr, size, count, iop)
+       void *_ptr;
+       unsigned size, count;
+       register FILE *iop;
+{
 #define ptr (*(char **)&_ptr)
        register int s;
        int c;
index ad684fa..e81db9b 100644 (file)
@@ -1,7 +1,3 @@
-#include <stdio.h>
-#include <sys/file.h>
-/*#include <sys/types.h> stdio.h*/
-
 /*
  * Copyright (c) 1980 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)freopen.c  5.2 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
-/*#include <sys/types.h>*/
-/*#include <sys/file.h>*/
-/*#include <stdio.h>*/
+#include <sys/types.h>
+#include <sys/file.h>
+#include <stdio.h>
 
-FILE *freopen(file, mode, iop) char *file; register char *mode; register FILE *iop; {
+FILE *
+freopen(file, mode, iop)
+       char *file;
+       register char *mode;
+       register FILE *iop;
+{
        register f, rw, oflags;
 
        rw = (mode[1] == '+');
index 638142a..12dda67 100644 (file)
@@ -1,19 +1,19 @@
-#include <stdio.h>
-#include <sys/file.h>
-
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)fseek.c    5.3 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
 /*
  * Seek for standard library.  Coordinates with buffering.
  */
 
-/*#include     <stdio.h>*/
+#include       <stdio.h>
 
-/*long lseek();*/
+long lseek();
 
-int fseek(iop, offset, ptrname) register FILE *iop; long offset; int ptrname; {
+fseek(iop, offset, ptrname)
+       register FILE *iop;
+       long offset;
+{
        register resync, c;
        long p = -1;                    /* can't happen? */
 
index 6a94418..04c15a8 100644 (file)
@@ -1,19 +1,19 @@
-#include <stdio.h>
-#include <sys/file.h>
-
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)ftell.c    5.2 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
 /*
  * Return file offset.
  * Coordinates with buffering.
  */
 
-/*#include     <stdio.h>*/
-/*long lseek();*/
+#include       <stdio.h>
+long   lseek();
+
 
-long ftell(iop) register FILE *iop; {
+long ftell(iop)
+register FILE *iop;
+{
        register long tres;
        register adjust;
 
index 8b9e4aa..f50301b 100644 (file)
@@ -1,6 +1,3 @@
-#include <stdio.h>
-#include <strings.h>
-
 /*
  * Copyright (c) 1980 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -9,11 +6,15 @@
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)fwrite.c   5.2 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
-/*#include     <stdio.h>*/
+#include       <stdio.h>
 
-int fwrite(_ptr, size, count, iop) void *_ptr; unsigned size; unsigned count; register FILE *iop; {
+fwrite(_ptr, size, count, iop)
+       void *_ptr;
+       unsigned size, count;
+       register FILE *iop;
+{
 #define ptr (*(char **)&_ptr)
        register int s;
 
index 53fa8b0..f85e8dd 100644 (file)
@@ -1,16 +1,15 @@
-#include <stdio.h>
-
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)getchar.c  5.2 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
 /*
  * A subroutine version of the macro getchar.
  */
-/*#include <stdio.h>*/
+#include <stdio.h>
 
 #undef getchar
 
-int getchar() {
+getchar()
+{
        return(getc(stdin));
 }
index 73e5ecb..edd0432 100644 (file)
@@ -1,12 +1,13 @@
-#include <stdio.h>
-
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)gets.c     5.2 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
-/*#include     <stdio.h>*/
+#include       <stdio.h>
 
-char *gets(s) char *s; {
+char *
+gets(s)
+char *s;
+{
        register c;
        register char *cs;
 
index 187e43d..f307e1b 100644 (file)
@@ -1,12 +1,12 @@
-#include <stdio.h>
-
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)getw.c     5.2 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
-/*#include <stdio.h>*/
+#include <stdio.h>
 
-int getw(iop) register FILE *iop; {
+getw(iop)
+register FILE *iop;
+{
        register i;
        register char *p;
        int w;
index 9fc2113..ecb31df 100644 (file)
@@ -1,11 +1,3 @@
-#include <gen.h>
-#include <stdio.h>
-/*#include <sys/exec.h> gen.h*/
-#include <sys/file.h>
-/*#include <sys/proc.h> gen.h*/
-/*#include <sys/signal.h> gen.h*/
-#include <sys/wait.h>
-
 /*
  * Copyright (c) 1980 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
 static char sccsid[] = "@(#)popen.c    5.4 (Berkeley) 3/26/86";
 #endif
 
-/*#include <stdio.h>*/
-/*#include <signal.h>*/
+#include <stdio.h>
+#include <signal.h>
 
 #define        tst(a,b)        (*mode == 'r'? (b) : (a))
 #define        RDR     0
 #define        WTR     1
 
-/*extern       char *malloc();*/
+extern char *malloc();
 
 static int *popen_pid;
 static int nfiles;
 
-FILE *popen(cmd, mode) char *cmd; char *mode; {
+FILE *
+popen(cmd,mode)
+       char *cmd;
+       char *mode; {
        int p[2];
        int myside, hisside, pid;
 
@@ -65,7 +60,8 @@ FILE *popen(cmd, mode) char *cmd; char *mode; {
        return (fdopen(myside, mode));
 }
 
-int pclose(ptr) FILE *ptr; {
+pclose(ptr)
+       FILE *ptr; {
        int child, pid, status, omask;
 
        child = popen_pid[fileno(ptr)];
index f2fdfd1..7686d39 100644 (file)
@@ -1,12 +1,3 @@
-#include <stdio.h>
-#ifdef __STDC__
-#include <stdarg.h>
-#define _va_start(argp, arg) va_start(argp, arg)
-#else
-#include <varargs.h>
-#define _va_start(argp, arg) va_start(argp)
-#endif
-
 /*
  * Copyright (c) 1987 Regents of the University of California.
  * All rights reserved.
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)printf.c   5.4 (Berkeley) 6/27/88";
-#endif
+#endif LIBC_SCCS and not lint
 
-/*#include <stdio.h>*/
-/*#include <varargs.h>*/
+#include <stdio.h>
+#include <varargs.h>
 
-#ifdef __STDC__
-int printf(char *fmt, ...)
-#else
-int printf(fmt, va_alist) char *fmt; va_dcl
-#endif
+printf(fmt, va_alist)
+       char *fmt;
+       va_dcl
 {
        va_list argp;
        int len;
 
-       _va_start(argp, fmt);
+       va_start(argp);
        len = _doprnt(fmt, argp, stdout);
        va_end(argp);
        return(ferror(stdout) ? EOF : len);
index 9a63dc1..5aa3cee 100644 (file)
@@ -1,16 +1,16 @@
-#include <stdio.h>
-
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)putchar.c  5.2 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
 /*
  * A subroutine version of the macro putchar
  */
-/*#include <stdio.h>*/
+#include <stdio.h>
 
 #undef putchar
 
-int putchar(c) register c; {
+putchar(c)
+register c;
+{
        putc(c, stdout);
 }
index a0e1669..bffc619 100644 (file)
@@ -1,12 +1,12 @@
-#include <stdio.h>
-
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)puts.c     5.2 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
-/*#include     <stdio.h>*/
+#include       <stdio.h>
 
-int puts(s) register char *s; {
+puts(s)
+register char *s;
+{
        register c;
 
        while (c = *s++)
index d307535..d56868b 100644 (file)
@@ -1,12 +1,12 @@
-#include <stdio.h>
-
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)putw.c     5.2 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
-/*#include <stdio.h>*/
+#include <stdio.h>
 
-int putw(w, iop) int w; register FILE *iop; {
+putw(w, iop)
+register FILE *iop;
+{
        register char *p;
        register i;
 
index 6ced2c1..14a716e 100644 (file)
@@ -1,13 +1,12 @@
-#include <stdio.h>
-#include <sys/file.h>
-
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)rew.c      5.2 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
-/*#include     <stdio.h>*/
+#include       <stdio.h>
 
-int rewind(iop) register FILE *iop; {
+rewind(iop)
+register FILE *iop;
+{
        fflush(iop);
        lseek(fileno(iop), 0L, 0);
        iop->_cnt = 0;
index d43cdf7..7afbabd 100644 (file)
@@ -1,60 +1,47 @@
-#include <stdio.h>
-#ifdef __STDC__
-#include <stdarg.h>
-#define _va_start(argp, arg) va_start(argp, arg)
-#else
-#include <varargs.h>
-#define _va_start(argp, arg) va_start(argp)
-#endif
-
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)scanf.c    5.2 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
-/*#include <stdio.h>*/
-/*#include <varargs.h>*/
+#include <stdio.h>
+#include <varargs.h>
 
-#ifdef __STDC__
-int scanf(char *fmt, ...)
-#else
-int scanf(fmt, va_alist) char *fmt; va_dcl
-#endif
+scanf(fmt, va_alist)
+char *fmt;
+va_dcl
 {
        va_list argp;
        int len;
 
-       _va_start(argp, fmt);
+       va_start(argp);
        len = _doscan(stdin, fmt, argp);
        va_end(argp);
        return len;
 }
 
-#ifdef __STDC__
-int fscanf(FILE *iop, char *fmt, ...)
-#else
-int fscanf(iop, fmt, va_alist) FILE *iop; char *fmt; va_dcl
-#endif
+fscanf(iop, fmt, va_alist)
+FILE *iop;
+char *fmt;
+va_dcl
 {
        va_list argp;
        int len;
 
-       _va_start(argp, fmt);
+       va_start(argp);
        len = _doscan(iop, fmt, argp);
        va_end(argp);
        return len;
 }
 
-#ifdef __STDC__
-int sscanf(register char *str, char *fmt, ...)
-#else
-int sscanf(str, fmt, va_alist) register char *str; char *fmt; va_dcl
-#endif
+sscanf(str, fmt, va_alist)
+register char *str;
+char *fmt;
+va_dcl
 {
        FILE _strbuf;
        va_list argp;
        int len;
 
-       _va_start(argp, fmt);
+       va_start(argp);
        _strbuf._flag = _IOREAD|_IOSTRG;
        _strbuf._ptr = _strbuf._base = str;
        _strbuf._cnt = 0;
index c51b025..4b5b59b 100644 (file)
@@ -1,6 +1,3 @@
-#include <gen.h>
-#include <stdio.h>
-
 /*
  * Copyright (c) 1980 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -9,11 +6,14 @@
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)setbuf.c   5.2 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
-/*#include     <stdio.h>*/
+#include       <stdio.h>
 
-int setbuf(iop, buf) register FILE *iop; char *buf; {
+setbuf(iop, buf)
+register FILE *iop;
+char *buf;
+{
        if (iop->_base != NULL && iop->_flag&_IOMYBUF)
                free(iop->_base);
        iop->_flag &= ~(_IOMYBUF|_IONBF|_IOLBF);
index b9b1bb6..b1c0379 100644 (file)
@@ -1,6 +1,3 @@
-#include <gen.h>
-#include <stdio.h>
-
 /*
  * Copyright (c) 1983 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -9,11 +6,15 @@
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)setbuffer.c        5.2 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
-/*#include     <stdio.h>*/
+#include       <stdio.h>
 
-int setbuffer(iop, buf, size) register FILE *iop; char *buf; int size; {
+setbuffer(iop, buf, size)
+       register FILE *iop;
+       char *buf;
+       int size;
+{
        if (iop->_base != NULL && iop->_flag&_IOMYBUF)
                free(iop->_base);
        iop->_flag &= ~(_IOMYBUF|_IONBF|_IOLBF);
@@ -30,7 +31,9 @@ int setbuffer(iop, buf, size) register FILE *iop; char *buf; int size; {
 /*
  * set line buffering for either stdout or stderr
  */
-int setlinebuf(iop) register FILE *iop; {
+setlinebuf(iop)
+       register FILE *iop;
+{
        char *buf;
        extern void *malloc();
 
index b749e84..691f250 100644 (file)
@@ -1,9 +1,7 @@
-#include <stdio.h>
-
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)sibuf.c    5.2 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
-/*#include <stdio.h>*/
+#include <stdio.h>
 
 char   _sibuf[BUFSIZ];
index dee91d1..e0b63f2 100644 (file)
@@ -1,9 +1,7 @@
-#include <stdio.h>
-
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)sobuf.c    5.2 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
-/*#include <stdio.h>*/
+#include <stdio.h>
 
 char   _sobuf[BUFSIZ];
index 7403f05..3728531 100644 (file)
@@ -1,12 +1,3 @@
-#include <stdio.h>
-#ifdef __STDC__
-#include <stdarg.h>
-#define _va_start(argp, arg) va_start(argp, arg)
-#else
-#include <varargs.h>
-#define _va_start(argp, arg) va_start(argp)
-#endif
-
 /*
  * Copyright (c) 1987 Regents of the University of California.
  * All rights reserved.
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)sprintf.c  5.5 (Berkeley) 6/27/88";
-#endif
+#endif LIBC_SCCS and not lint
 
-/*#include <stdio.h>*/
-/*#include <varargs.h>*/
+#include <stdio.h>
+#include <varargs.h>
 
-#ifdef __STDC__
-int sprintf(char *str, char *fmt, ...)
-#else
-int sprintf(str, fmt, va_alist) char *str; char *fmt; va_dcl
-#endif
+sprintf(str, fmt, va_alist)
+       char *str, *fmt;
+       va_dcl
 {
        va_list argp;
        FILE _strbuf;
        int len;
 
-       _va_start(argp, fmt);
+       va_start(argp);
        _strbuf._flag = _IOWRT+_IOSTRG;
        _strbuf._ptr = str;
        _strbuf._cnt = 32767;
index 520cb33..8b032c2 100644 (file)
@@ -1,12 +1,15 @@
-#include <stdio.h>
-
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)strout.c   5.2 (Berkeley) 3/9/86";
-#endif
+#endif LIBC_SCCS and not lint
 
-/*#include     <stdio.h>*/
+#include       <stdio.h>
 
-int _strout(count, string, adjust, file, fillch) register count; register char *string; int adjust; register FILE *file; int fillch; {
+_strout(count, string, adjust, file, fillch)
+register char *string;
+register count;
+int adjust;
+register FILE *file;
+{
        while (adjust < 0) {
                if (*string=='-' && fillch=='0') {
                        putc(*string++, file);
index c041c3d..286734c 100644 (file)
@@ -1,12 +1,12 @@
-#include <stdio.h>
-
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)ungetc.c   5.3 (Berkeley) 3/26/86";
-#endif
+#endif LIBC_SCCS and not lint
 
-/*#include <stdio.h>*/
+#include <stdio.h>
 
-int ungetc(c, iop) int c; register FILE *iop; {
+ungetc(c, iop)
+       register FILE *iop;
+{
        if (c == EOF || (iop->_flag & (_IOREAD|_IORW)) == 0 ||
            iop->_ptr == NULL || iop->_base == NULL)
                return (EOF);
index 300a166..08934ad 100644 (file)
@@ -1,12 +1,3 @@
-#include <stdio.h>
-#ifdef __STDC__
-#include <stdarg.h>
-#define _va_start(argp, arg) va_start(argp, arg)
-#else
-#include <varargs.h>
-#define _va_start(argp, arg) va_start(argp)
-#endif
-
 /*
  * Copyright (c) 1988 Regents of the University of California.
  * All rights reserved.
 static char sccsid[] = "@(#)vfprintf.c 5.2 (Berkeley) 6/27/88";
 #endif
 
-/*#include <stdio.h>*/
-/*#include <varargs.h>*/
+#include <stdio.h>
+#include <varargs.h>
 
-int vfprintf(iop, fmt, argp) FILE *iop; char *fmt; va_list argp; {
+int
+vfprintf(iop, fmt, argp)
+       FILE *iop;
+       char *fmt;
+       va_list argp; {
        int len;
        char localbuf[BUFSIZ];
 
index 2c72c95..0db5729 100644 (file)
@@ -1,12 +1,3 @@
-#include <stdio.h>
-#ifdef __STDC__
-#include <stdarg.h>
-#define _va_start(argp, arg) va_start(argp, arg)
-#else
-#include <varargs.h>
-#define _va_start(argp, arg) va_start(argp)
-#endif
-
 /*
  * Copyright (c) 1988 Regents of the University of California.
  * All rights reserved.
 static char sccsid[] = "@(#)vprintf.c  5.2 (Berkeley) 6/27/88";
 #endif
 
-/*#include <stdio.h>*/
-/*#include <varargs.h>*/
+#include <stdio.h>
+#include <varargs.h>
 
-int vprintf(fmt, argp) char *fmt; va_list argp; {
+int
+vprintf(fmt, argp)
+       char *fmt;
+       va_list argp; {
        int len;
 
        len = _doprnt(fmt, argp, stdout);
index 1b8f648..f2a588d 100644 (file)
@@ -1,12 +1,3 @@
-#include <stdio.h>
-#ifdef __STDC__
-#include <stdarg.h>
-#define _va_start(argp, arg) va_start(argp, arg)
-#else
-#include <varargs.h>
-#define _va_start(argp, arg) va_start(argp)
-#endif
-
 /*
  * Copyright (c) 1988 Regents of the University of California.
  * All rights reserved.
 static char sccsid[] = "@(#)vsprintf.c 5.2 (Berkeley) 6/27/88";
 #endif
 
-/*#include <stdio.h>*/
-/*#include <varargs.h>*/
+#include <stdio.h>
+#include <varargs.h>
 
-int vsprintf(str, fmt, argp) char *str; char *fmt; va_list argp; {
+int
+vsprintf(str, fmt, argp)
+       char *str, *fmt;
+       va_list argp; {
        FILE f;
        int len;
 
index fb9b833..c61a4ae 100644 (file)
@@ -1,4 +1,3 @@
-LD=ld
 #
 # Copyright (c) 1980 Regents of the University of California.
 # All rights reserved.  The Berkeley software License Agreement
@@ -46,10 +45,10 @@ TAGSFILE=tags
 
 .c.o:
        ${CC} -p -c ${CFLAGS} $*.c
-       -${LD} -X -r $*.o
+       -ld -X -r $*.o
        mv a.out profiled/$*.o
        ${CC} ${CFLAGS} -c $*.c
-       -${LD} -x -r $*.o
+       -ld -x -r $*.o
        mv a.out $*.o
 
 syslib syslib_p: ${OBJS}
index 5075fc9..7f7bcc4 100644 (file)
@@ -1,8 +1,4 @@
-#include <gen.h>
-#include <sys/file.h>
-/*#include <sys/proc.h> gen.h*/
-
-void _exit(s) int s; {
+void _exit(s) {
        write(2, "_exit()\n", 8);
        abort();
 }
index a1fbe79..2725b7b 100644 (file)
@@ -1,10 +1,6 @@
-#include <gen.h>
-#include <sys/file.h>
 #include <sys/socket.h>
 
-/*#include <sys/socket.h>*/
-
-int accept(s, a, l) int s; struct sockaddr *a; int *l; {
+int accept(s, a, l) struct sockaddr *a; int *l; {
        write(2, "accept()\n", 9);
        abort();
 }
index bb4628d..aecd4ad 100644 (file)
@@ -1,7 +1,4 @@
-#include <gen.h>
-#include <sys/file.h>
-
-int access(p, m) char *p; int m; {
+int access(p, m) char *p; {
        write(2, "access()\n", 9);
        abort();
 }
index deb5bb1..bc07d5b 100644 (file)
@@ -1,7 +1,3 @@
-#include <gen.h>
-#include <sys/acct.h>
-#include <sys/file.h>
-
 int acct(f) char *f; {
        write(2, "acct()\n", 7);
        abort();
index b633d9a..98b7570 100644 (file)
@@ -1,10 +1,6 @@
-#include <gen.h>
-#include <sys/file.h>
-/*#include <sys/time.h> gen.h*/
+#include <sys/time.h>
 
-/*#include <sys/time.h>*/
-
-int adjtime(delta, odelta) struct timeval *delta; struct timeval *odelta; {
+int adjtime(delta, odelta) struct timeval *delta, *odelta; {
        write(2, "adjtime()\n", 10);
        abort();
 }
index a1595ce..f263554 100644 (file)
@@ -1,10 +1,6 @@
-#include <gen.h>
-#include <sys/file.h>
 #include <sys/socket.h>
 
-/*#include <sys/socket.h>*/
-
-int bind(s, n, l) int s; struct sockaddr *n; int l; {
+int bind(s, n, l) struct sockaddr *n; {
        write(2, "bind()\n", 7);
        abort();
 }
index bd3836a..80f33fa 100644 (file)
@@ -1,7 +1,3 @@
-#include <gen.h>
-#include <sys/file.h>
-/*#include <sys/proc.h> gen.h*/
-
 void *brk(a) void *a; {
        write(2, "brk()\n", 6);
        abort();
index b497378..e00809c 100644 (file)
@@ -1,7 +1,3 @@
-#include <gen.h>
-#include <sys/file.h>
-/*#include <sys/proc.h> gen.h*/
-
 int chdir(s) char *s; {
        write(2, "chdir()\n", 8);
        abort();
index de8a497..1e5bf5c 100644 (file)
@@ -1,8 +1,4 @@
-#include <gen.h>
-#include <sys/file.h>
-#include <sys/stat.h>
-
-int chmod(s, m) char *s; int m; {
+int chmod(s, m) char *s; {
        write(2, "chmod()\n", 8);
        abort();
 }
index 505304e..d9e77fa 100644 (file)
@@ -1,7 +1,4 @@
-#include <gen.h>
-#include <sys/file.h>
-
-int chown(s, u, g) char *s; int u; int g; {
+int chown(s, u, g) char *s; {
        write(2, "chown()\n", 8);
        abort();
 }
index 0030bb6..d5c0a19 100644 (file)
@@ -1,7 +1,3 @@
-#include <gen.h>
-#include <sys/file.h>
-/*#include <sys/proc.h> gen.h*/
-
 int chroot(d) char *d; {
        write(2, "chroot()\n", 9);
        abort();
index da0072a..1397e5e 100644 (file)
@@ -1,7 +1,4 @@
-#include <gen.h>
-#include <sys/file.h>
-
-int close(f) int f; {
+int close(f) {
        write(2, "close()\n", 8);
        abort();
 }
index d32160c..472e908 100644 (file)
@@ -1,10 +1,6 @@
-#include <gen.h>
-#include <sys/file.h>
 #include <sys/socket.h>
 
-/*#include <sys/socket.h>*/
-
-int connect(s, n, l) int s; struct sockaddr *n; int l; {
+int connect(s, n, l) struct sockaddr *n; {
        write(2, "connect()\n", 10);
        abort();
 }
index ef21e42..63b90f4 100644 (file)
@@ -1,7 +1,4 @@
-#include <gen.h>
-#include <sys/file.h>
-
-int creat(s, m) char *s; int m; {
+int creat(s, m) char *s; {
        write(2, "creat()\n", 8);
        abort();
 }
index 1aec890..7ec4eb5 100644 (file)
@@ -1,7 +1,4 @@
-#include <gen.h>
-#include <sys/file.h>
-
-int dup(f) int f; {
+int dup(f) {
        write(2, "dup()\n", 6);
        abort();
 }
index af389fe..f905bfd 100644 (file)
@@ -1,7 +1,4 @@
-#include <gen.h>
-#include <sys/file.h>
-
-int dup2(o, n) int o; int n; {
+int dup2(o, n) {
        write(2, "dup2()\n", 7);
        abort();
 }
index 5e6bbb2..c9742c5 100644 (file)
@@ -1,21 +1,5 @@
-#include <gen.h>
-/*#include <sys/exec.h> gen.h*/
-#include <sys/file.h>
-#ifdef __STDC__
-#include <stdarg.h>
-#define _va_start(argp, arg) va_start(argp, arg)
-#else
 #include <varargs.h>
-#define _va_start(argp, arg) va_start(argp)
-#endif
-
-/*#include <varargs.h>*/
-#ifdef __STDC__
-void execl(char *f, ...)
-#else
-void execl(f, va_alist) char *f; va_dcl
-#endif
-{
+void execl(f, va_alist) char *f; va_dcl {
        write(2, "execl()\n", 8);
        abort();
 }
index b883a6e..f3105c3 100644 (file)
@@ -1,21 +1,5 @@
-#include <gen.h>
-/*#include <sys/exec.h> gen.h*/
-#include <sys/file.h>
-#ifdef __STDC__
-#include <stdarg.h>
-#define _va_start(argp, arg) va_start(argp, arg)
-#else
 #include <varargs.h>
-#define _va_start(argp, arg) va_start(argp)
-#endif
-
-/*#include <varargs.h>*/
-#ifdef __STDC__
-void execle(char *f, ...)
-#else
-void execle(f, va_alist) char *f; va_dcl
-#endif
-{
+void execle(f, va_alist) char *f; va_dcl {
        write(2, "execle()\n", 9);
        abort();
 }
index 77afe0c..86f3537 100644 (file)
@@ -1,8 +1,4 @@
-#include <gen.h>
-/*#include <sys/exec.h> gen.h*/
-#include <sys/file.h>
-
-void exect(s, v, e) char *s; char *v[]; char *e[]; {
+void exect(s, v, e) char *s, *v[], *e[]; {
        write(2, "exect()\n", 8);
        abort();
 }
index 94a4557..9728baf 100644 (file)
@@ -1,8 +1,4 @@
-#include <gen.h>
-/*#include <sys/exec.h> gen.h*/
-#include <sys/file.h>
-
-void execv(s, v) char *s; char *v[]; {
+void execv(s, v) char *s, *v[]; {
        write(2, "execv()\n", 8);
        abort();
 }
index 3ac4e3e..963f235 100644 (file)
@@ -1,8 +1,4 @@
-#include <gen.h>
-/*#include <sys/exec.h> gen.h*/
-#include <sys/file.h>
-
-void execve(s, v, e) char *s; char *v[]; char *e[]; {
+void execve(s, v, e) char *s, *v[], *e[]; {
        write(2, "execve()\n", 9);
        abort();
 }
index 39e99bd..8e4eb33 100644 (file)
@@ -1,8 +1,4 @@
-#include <gen.h>
-#include <sys/file.h>
-#include <sys/stat.h>
-
-int fchmod(f, m) int f; int m; {
+int fchmod(f, m) {
        write(2, "fchmod()\n", 9);
        abort();
 }
index 4fc5b0e..b41f83b 100644 (file)
@@ -1,7 +1,4 @@
-#include <gen.h>
-#include <sys/file.h>
-
-int fchown(f, u, g) int f; int u; int g; {
+int fchown(f, u, g) {
        write(2, "fchown()\n", 9);
        abort();
 }
index 035bad9..5cddbf3 100644 (file)
@@ -1,7 +1,4 @@
-#include <gen.h>
-#include <sys/file.h>
-
-int fcntl(f, c, a) int f; int c; int a; {
+int fcntl(f, c, a) {
        write(2, "fcntl()\n", 8);
        abort();
 }
index 09c7b45..8944c49 100644 (file)
@@ -1,7 +1,4 @@
-#include <gen.h>
-#include <sys/file.h>
-
-int flock(f, o) int f; int o; {
+int flock(f, o) {
        write(2, "flock()\n", 8);
        abort();
 }
index 506acce..cc78532 100644 (file)
@@ -1,7 +1,3 @@
-#include <gen.h>
-#include <sys/file.h>
-/*#include <sys/proc.h> gen.h*/
-
 int fork() {
        write(2, "fork()\n", 7);
        abort();
index 386c005..9c7c4da 100644 (file)
@@ -1,10 +1,6 @@
-#include <gen.h>
-#include <sys/file.h>
 #include <sys/stat.h>
 
-/*#include <sys/stat.h>*/
-
-int fstat(f, b) int f; struct stat *b; {
+int fstat(f, b) struct stat *b; {
        write(2, "fstat()\n", 8);
        abort();
 }
index 4dfd8f3..bf2cbce 100644 (file)
@@ -1,7 +1,4 @@
-#include <gen.h>
-#include <sys/file.h>
-
-int fsync(f) int f; {
+int fsync(f) {
        write(2, "fsync()\n", 8);
        abort();
 }
index 26c610b..eba2b44 100644 (file)
@@ -1,10 +1,6 @@
-#include <gen.h>
-#include <sys/file.h>
-/*#include <sys/types.h> gen.h*/
+#include <sys/types.h>
 
-/*#include <sys/types.h>*/
-
-int ftruncate(d, l) int d; off_t l; {
+int ftruncate(d, l) off_t l; {
        write(2, "ftruncate()\n", 12);
        abort();
 }
index d61474b..c1105d3 100644 (file)
@@ -1,6 +1,3 @@
-#include <gen.h>
-#include <sys/file.h>
-
 int getdtablesize() {
        write(2, "getdtablesize()\n", 16);
        abort();
index 9700cc4..4603a9c 100644 (file)
@@ -1,9 +1,4 @@
-#include <gen.h>
-#include <sys/file.h>
-/*#include <sys/proc.h> gen.h*/
-/*#include <sys/types.h> gen.h*/
-
-/*#include <sys/types.h>*/
+#include <sys/types.h>
 
 gid_t getegid() {
        write(2, "getegid()\n", 10);
index eb8cf53..32e1a47 100644 (file)
@@ -1,9 +1,4 @@
-#include <gen.h>
-#include <sys/file.h>
-/*#include <sys/proc.h> gen.h*/
-/*#include <sys/types.h> gen.h*/
-
-/*#include <sys/types.h>*/
+#include <sys/types.h>
 
 uid_t geteuid() {
        write(2, "geteuid()\n", 10);
index 1ba1093..c0b2537 100644 (file)
@@ -1,9 +1,4 @@
-#include <gen.h>
-#include <sys/file.h>
-/*#include <sys/proc.h> gen.h*/
-/*#include <sys/types.h> gen.h*/
-
-/*#include <sys/types.h>*/
+#include <sys/types.h>
 
 gid_t getgid() {
        write(2, "getgid()\n", 9);
index d3a51b4..aa44917 100644 (file)
@@ -1,8 +1,4 @@
-#include <gen.h>
-#include <sys/file.h>
-/*#include <sys/proc.h> gen.h*/
-
-int getgroups(n, g) int n; int *g; {
+int getgroups(n, g) int n, *g; {
        write(2, "getgroups()\n", 12);
        abort();
 }
index 9fbf2f9..0c3ca43 100644 (file)
@@ -1,7 +1,3 @@
-#include <gen.h>
-#include <sys.h>
-/*#include <sys/file.h> sys.h*/
-
 long gethostid() {
        write(2, "gethostid()\n", 12);
        abort();
index 807c308..787d7d9 100644 (file)
@@ -1,7 +1,3 @@
-#include <gen.h>
-#include <sys.h>
-/*#include <sys/file.h> sys.h*/
-
 int gethostname(n, l) char *n; int l; {
        write(2, "gethostname()\n", 14);
        abort();
index f8bd1b8..7d0c1ac 100644 (file)
@@ -1,10 +1,6 @@
-#include <gen.h>
-#include <sys/file.h>
-/*#include <sys/time.h> gen.h*/
+#include <sys/time.h>
 
-/*#include <sys/time.h>*/
-
-int getitimer(w, v) int w; struct itimerval *v; {
+int getitimer(w, v) struct itimerval *v; {
        write(2, "getitimer()\n", 12);
        abort();
 }
index b6d1adc..8506315 100644 (file)
@@ -1,7 +1,3 @@
-#include <gen.h>
-#include <sys.h>
-/*#include <sys/file.h> sys.h*/
-
 int getpagesize() {
        write(2, "getpagesize()\n", 14);
        abort();
index 3343b61..012153d 100644 (file)
@@ -1,10 +1,6 @@
-#include <gen.h>
-#include <sys/file.h>
 #include <sys/socket.h>
 
-/*#include <sys/socket.h>*/
-
-int getpeername(s, n, l) int s; struct sockaddr *n; int *l; {
+int getpeername(s, n, l) struct sockaddr *n; int *l; {
        write(2, "getpeername()\n", 14);
        abort();
 }
index 6f15c4d..4719980 100644 (file)
@@ -1,8 +1,4 @@
-#include <gen.h>
-#include <sys/file.h>
-/*#include <sys/proc.h> gen.h*/
-
-int getpgrp(p) int p; {
+int getpgrp(p) {
        write(2, "getpgrp()\n", 10);
        abort();
 }
index 2af8fb7..f1e1a5e 100644 (file)
@@ -1,7 +1,3 @@
-#include <gen.h>
-#include <sys/file.h>
-/*#include <sys/proc.h> gen.h*/
-
 int getpid() {
        write(2, "getpid()\n", 9);
        abort();
index fa10f0a..82c80c9 100644 (file)
@@ -1,7 +1,3 @@
-#include <gen.h>
-#include <sys/file.h>
-/*#include <sys/proc.h> gen.h*/
-
 int getppid() {
        write(2, "getppid()\n", 10);
        abort();
index 9cc207a..f788762 100644 (file)
@@ -1,8 +1,4 @@
-#include <gen.h>
-#include <sys/file.h>
-#include <sys/resource.h>
-
-int getpriority(w, who) int w; int who; {
+int getpriority(w, who) {
        write(2, "getpriority()\n", 14);
        abort();
 }
index 8a94fc4..20ee251 100644 (file)
@@ -1,10 +1,6 @@
-#include <gen.h>
-#include <sys/file.h>
 #include <sys/resource.h>
 
-/*#include <sys/resource.h>*/
-
-int getrlimit(res, rip) int res; struct rlimit *rip; {
+int getrlimit(res, rip) struct rlimit *rip; {
        write(2, "getrlimit()\n", 12);
        abort();
 }
index d6eeb9e..9751a03 100644 (file)
@@ -1,10 +1,6 @@
-#include <gen.h>
-#include <sys/file.h>
 #include <sys/resource.h>
 
-/*#include <sys/resource.h>*/
-
-int getrusage(res, rip) int res; struct rusage *rip; {
+int getrusage(res, rip) struct rusage *rip; {
        write(2, "getrusage()\n", 12);
        abort();
 }
index 0715dba..b90a597 100644 (file)
@@ -1,10 +1,6 @@
-#include <gen.h>
-#include <sys/file.h>
 #include <sys/socket.h>
 
-/*#include <sys/socket.h>*/
-
-int getsockname(s, name, namelen) int s; struct sockaddr *name; int *namelen; {
+int getsockname(s, name, namelen) struct sockaddr *name; int *namelen; {
        write(2, "getsockname()\n", 14);
        abort();
 }
index 2f500bc..a8b038f 100644 (file)
@@ -1,8 +1,4 @@
-#include <gen.h>
-#include <sys/file.h>
-#include <sys/socket.h>
-
-int getsockopt(s, level, opt, buf, len) int s; int level; int opt; void *buf; int *len; {
+int getsockopt(s, level, opt, buf, len) void *buf; int *len; {
        write(2, "getsockopt()\n", 13);
        abort();
 }
index ef9fb36..de79c23 100644 (file)
@@ -1,8 +1,4 @@
-#include <gen.h>
-#include <sys/file.h>
-/*#include <sys/time.h> gen.h*/
-
-/*#include <sys/time.h>*/
+#include <sys/time.h>
 
 int gettimeofday(t, z) struct timeval *t; struct timezone *z; {
        write(2, "gettimeofday()\n", 15);
index ae4a22b..13189af 100644 (file)
@@ -1,9 +1,4 @@
-#include <gen.h>
-#include <sys/file.h>
-/*#include <sys/proc.h> gen.h*/
-/*#include <sys/types.h> gen.h*/
-
-/*#include <sys/types.h>*/
+#include <sys/types.h>
 
 uid_t getuid() {
        write(2, "getuid()\n", 9);
index 4305184..55f0d14 100644 (file)
@@ -1,11 +1,6 @@
-#include <gen.h>
-#include <sys/file.h>
-#include <sys/ioctl.h>
-/*#include <sys/types.h> gen.h*/
+#include <sys/types.h>
 
-/*#include <sys/types.h>*/
-
-int ioctl(d, r, p) int d; u_long r; void *p; {
+int ioctl(d, r, p) u_long r; void *p; {
        write(2, "ioctl()\n", 8);
        abort();
 }
index 77fdcdb..888a899 100644 (file)
@@ -1,5 +1,3 @@
-#include <sys/ioctl.h>
-
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)isatty.c   5.2 (Berkeley) 3/9/86";
 #endif
@@ -8,9 +6,9 @@ static char sccsid[] = "@(#)isatty.c    5.2 (Berkeley) 3/9/86";
  * Returns 1 iff file is a tty
  */
 
-/*#include <sgtty.h>*/
+#include <sgtty.h>
 
-int isatty(f) int f; {
+isatty(f) {
        struct sgttyb ttyb;
 
        if (ioctl(f, TIOCGETP, &ttyb) < 0)
index 8ff5023..bd5fbbc 100644 (file)
@@ -1,8 +1,4 @@
-#include <gen.h>
-#include <sys/file.h>
-/*#include <sys/signal.h> gen.h*/
-
-int kill(p, s) int p; int s; {
+int kill(p, s) {
        write(2, "kill()\n", 7);
        abort();
 }
index 39a11ef..7b5ffc4 100644 (file)
@@ -1,8 +1,4 @@
-#include <gen.h>
-#include <sys/file.h>
-/*#include <sys/signal.h> gen.h*/
-
-int killpg(pg, s) int pg; int s; {
+int killpg(pg, s) {
        write(2, "killpg()\n", 9);
        abort();
 }
index a46e747..cbf25e8 100644 (file)
@@ -1,7 +1,4 @@
-#include <gen.h>
-#include <sys/file.h>
-
-int link(a, b) char *a; char *b; {
+int link(a, b) char *a, *b; {
        write(2, "link()\n", 7);
        abort();
 }
index 3b4f269..b762851 100644 (file)
@@ -1,8 +1,4 @@
-#include <gen.h>
-#include <sys/file.h>
-#include <sys/socket.h>
-
-int listen(s, b) int s; int b; {
+int listen(s, b){
        write(2, "listen()\n", 9);
        abort();
 }
index 9f6cfda..68839d6 100644 (file)
@@ -1,10 +1,6 @@
-#include <gen.h>
-#include <sys/file.h>
-/*#include <sys/types.h> gen.h*/
+#include <sys/types.h>
 
-/*#include <sys/types.h>*/
-
-off_t lseek(f, o, d) int f; off_t o; int d; {
+off_t lseek(f, o, d) off_t o; {
        write(2, "lseek()\n", 8);
        abort();
 }
index 0212cfe..3d5411c 100644 (file)
@@ -1,9 +1,5 @@
-#include <gen.h>
-#include <sys/file.h>
 #include <sys/stat.h>
 
-/*#include <sys/stat.h>*/
-
 int lstat(s, b) char *s; struct stat *b; {
        write(2, "lstat()\n", 8);
        abort();
index 689196f..4c62724 100644 (file)
@@ -1,8 +1,4 @@
-#include <gen.h>
-#include <sys/file.h>
-#include <sys/stat.h>
-
-int mkdir(p, m) char *p; int m; {
+int mkdir(p, m) char *p; {
        write(2, "mkdir()\n", 8);
        abort();
 }
index 2debbe2..23c78f3 100644 (file)
@@ -1,8 +1,4 @@
-#include <gen.h>
-#include <sys/file.h>
-#include <sys/stat.h>
-
-int mknod(n, m, a) char *n; int m; int a; {
+int mknod(n, m, a) char *n; {
        write(2, "mknod()\n", 8);
        abort();
 }
index cc51990..c0a9ea0 100644 (file)
@@ -1,8 +1,4 @@
-#include <gen.h>
-#include <sys/file.h>
-#include <sys/mount.h>
-
-int mount(s, n, f) char *s; char *n; int f; {
+int mount(s, n, f) char *s, *n; {
        write(2, "mount()\n", 8);
        abort();
 }
index 5830858..92a5bb9 100644 (file)
@@ -1,24 +1,10 @@
-#include <sys/file.h>
-#ifdef __STDC__
-#include <stdarg.h>
-#define _va_start(argp, arg) va_start(argp, arg)
-#else
 #include <varargs.h>
-#define _va_start(argp, arg) va_start(argp)
-#endif
 
-/*#include <varargs.h>*/
-
-#ifdef __STDC__
-int open(char *f, int m, ...)
-#else
-int open(f, m, va_alist) char *f; int m; va_dcl
-#endif
-{
+int open(f, m, va_alist) char *f; va_dcl {
        va_list argp;
        int res;
 
-       _va_start(argp, m);
+       va_start(argp);
        res = vopen(f, m, argp);
        va_end(argp);
        return res;
index e23542c..085ad2a 100644 (file)
@@ -1,6 +1,3 @@
-#include <gen.h>
-#include <sys/file.h>
-
 int pipe(f) int f[2]; {
        write(2, "pipe()\n", 7);
        abort();
index 2198ed0..de3d355 100644 (file)
@@ -1,8 +1,4 @@
-#include <gen.h>
-#include <sys.h>
-/*#include <sys/file.h> sys.h*/
-
-void profil(b, s, o, i) char *b; int s; int o; int i; {
+void profil(b, s, o, i) char *b; {
        write(2, "profil()\n", 9);
        abort();
 }
index c746598..4f73683 100644 (file)
@@ -1,8 +1,4 @@
-#include <gen.h>
-#include <sys/file.h>
-#include <sys/ptrace.h>
-
-int ptrace(r, p, a, d) int r; int p; int *a; int d; {
+int ptrace(r, p, a, d) int *a; {
        write(2, "ptrace()\n", 9);
        abort();
 }
index 9dc2884..007e302 100644 (file)
@@ -1,8 +1,4 @@
-#include <gen.h>
-#include <sys/file.h>
-#include <sys/quota.h>
-
-int quota(c, u, a, ad) int c; int u; int a; void *ad; {
+int quota(c, u, a, ad) void *ad; {
        write(2, "quota()\n", 8);
        abort();
 }
index f43b3f6..078cfd3 100644 (file)
@@ -1,7 +1,4 @@
-#include <gen.h>
-#include <sys/file.h>
-
-int read(f, b, l) int f; void *b; int l; {
+int read(f, b, l) void *b; {
        write(2, "read()\n", 7);
        abort();
 }
index 0771738..41416c8 100644 (file)
@@ -1,7 +1,4 @@
-#include <gen.h>
-#include <sys/file.h>
-
-int readlink(p, b, s) char *p; char *b; int s; {
+int readlink(p, b, s) char *p, *b; {
        write(2, "readlink()\n", 11);
        abort();
 }
index 94ab9b1..fae61bb 100644 (file)
@@ -1,10 +1,6 @@
-#include <gen.h>
-#include <sys/file.h>
 #include <sys/uio.h>
 
-/*#include <sys/uio.h>*/
-
-int readv(d, v, l) int d; struct iovec *v; int l; {
+int readv(d, v, l) struct iovec *v; {
        write(2, "readv()\n", 8);
        abort();
 }
index 0e06190..4e757d7 100644 (file)
@@ -1,8 +1,4 @@
-#include <gen.h>
-#include <sys.h>
-/*#include <sys/file.h> sys.h*/
-
-void reboot(h) int h; {
+void reboot(h) {
        write(2, "reboot()\n", 9);
        abort();
 }
index 1d32034..3223282 100644 (file)
@@ -1,8 +1,4 @@
-#include <gen.h>
-#include <sys/file.h>
-#include <sys/socket.h>
-
-int recv(s, b, l, f) int s; void *b; int l; int f; {
+int recv(s, b, l, f) void *b; {
        write(2, "recv()\n", 7);
        abort();
 }
index b8e300f..d904feb 100644 (file)
@@ -1,10 +1,6 @@
-#include <gen.h>
-#include <sys/file.h>
 #include <sys/socket.h>
 
-/*#include <sys/socket.h>*/
-
-int recvfrom(s, b, l, f, fr, fl) int s; void *b; int l; int f; struct sockaddr *fr; int *fl; {
+int recvfrom(s, b, l, f, fr, fl) void *b; struct sockaddr *fr; int *fl; {
        write(2, "recvfrom()\n", 11);
        abort();
 }
index fc8daeb..3e1e070 100644 (file)
@@ -1,10 +1,6 @@
-#include <gen.h>
-#include <sys/file.h>
 #include <sys/socket.h>
 
-/*#include <sys/socket.h>*/
-
-int recvmsg(s, m, f) int s; struct msghdr m[]; int f; {
+int recvmsg(s, m, f) struct msghdr m[]; {
        write(2, "recvmsg()\n", 10);
        abort();
 }
index 6cecd11..83f12cc 100644 (file)
@@ -1,7 +1,4 @@
-#include <gen.h>
-#include <sys/file.h>
-
-int rename(f, t) char *f; char *t; {
+int rename(f, t) char *f, *t; {
        write(2, "rename()\n", 9);
        abort();
 }
index 5ba61ff..45719f0 100644 (file)
@@ -1,7 +1,3 @@
-#include <gen.h>
-/*#include <sys/dir.h> gen.h*/
-#include <sys/file.h>
-
 int rmdir(p) char *p; {
        write(2, "rmdir()\n", 8);
        abort();
index 70b8644..457849f 100644 (file)
@@ -1,8 +1,4 @@
-#include <gen.h>
-#include <sys/file.h>
-/*#include <sys/proc.h> gen.h*/
-
-void *sbrk(i) int i; {
+void *sbrk(i) {
        write(2, "sbrk()\n", 7);
        abort();
 }
index 1d65bb8..2039f1c 100644 (file)
@@ -1,12 +1,7 @@
-#include <gen.h>
-#include <sys/file.h>
 #include <sys/select.h>
-/*#include <sys/time.h> gen.h*/
+#include <sys/time.h>
 
-/*#include <sys/select.h>*/
-/*#include <sys/time.h>*/
-
-int select(n, r, w, e, t) int n; fd_set *r; fd_set *w; fd_set *e; struct timeval *t; {
+int select(n, r, w, e, t) fd_set *r, *w, *e; struct timeval *t; {
        write(2, "select()\n", 9);
        abort();
 }
index d0eb2d5..b806ef3 100644 (file)
@@ -1,8 +1,4 @@
-#include <gen.h>
-#include <sys/file.h>
-#include <sys/socket.h>
-
-int send(s, m, l, f) int s; void *m; int l; int f; {
+int send(s, m, l, f) void *m; {
        write(2, "send()\n", 7);
        abort();
 }
index 45965e1..c1b5ff8 100644 (file)
@@ -1,10 +1,6 @@
-#include <gen.h>
-#include <sys/file.h>
 #include <sys/socket.h>
 
-/*#include <sys/socket.h>*/
-
-int sendmsg(s, m, l) int s; struct msghdr m[]; int l; {
+int sendmsg(s, m, l) struct msghdr m[]; {
        write(2, "sendmsg()\n", 10);
        abort();
 }
index 5112c14..33ebacb 100644 (file)
@@ -1,10 +1,6 @@
-#include <gen.h>
-#include <sys/file.h>
 #include <sys/socket.h>
 
-/*#include <sys/socket.h>*/
-
-int sendto(s, m, l, f, t, tl) int s; void *m; int l; int f; struct sockaddr *t; int tl; {
+int sendto(s, m, l, f, t, tl) void *m; struct sockaddr *t; {
        write(2, "sendto()\n", 9);
        abort();
 }
index 837532c..0d8b166 100644 (file)
@@ -1,8 +1,4 @@
-#include <gen.h>
-#include <sys/file.h>
-/*#include <sys/proc.h> gen.h*/
-
-int setgroups(n, g) int n; int *g; {
+int setgroups(n, g) int *g; {
        write(2, "setgroups()\n", 12);
        abort();
 }
index 4e24414..13aa28d 100644 (file)
@@ -1,7 +1,3 @@
-#include <gen.h>
-#include <sys.h>
-/*#include <sys/file.h> sys.h*/
-
 int sethostid(h) long h; {
        write(2, "sethostid()\n", 12);
        abort();
index 16df010..15b9bf5 100644 (file)
@@ -1,7 +1,3 @@
-#include <gen.h>
-#include <sys.h>
-/*#include <sys/file.h> sys.h*/
-
 int sethostname(n, l) char *n; int l; {
        write(2, "sethostname()\n", 14);
        abort();
index b9db548..49ca8eb 100644 (file)
@@ -1,10 +1,6 @@
-#include <gen.h>
-#include <sys/file.h>
-/*#include <sys/time.h> gen.h*/
+#include <sys/time.h>
 
-/*#include <sys/time.h>*/
-
-int setitimer(w, v, ov) int w; struct itimerval *v; struct itimerval *ov; {
+int setitimer(w, v, ov) struct itimerval *v, *ov; {
        write(2, "setitimer()\n", 12);
        abort();
 }
index 469b747..28806b2 100644 (file)
@@ -1,8 +1,4 @@
-#include <gen.h>
-#include <sys/file.h>
-/*#include <sys/proc.h> gen.h*/
-
-int setpgrp(g, pg) int g; int pg; {
+int setpgrp(g, pg) {
        write(2, "setpgrp()\n", 10);
        abort();
 }
index a76f6ce..6dfca6e 100644 (file)
@@ -1,8 +1,4 @@
-#include <gen.h>
-#include <sys/file.h>
-#include <sys/resource.h>
-
-int setpriority(w, who, pri) int w; int who; int pri; {
+int setpriority(w, who, pri) {
        write(2, "setpriority()\n", 14);
        abort();
 }
index 397c430..3182ebd 100644 (file)
@@ -1,8 +1,4 @@
-#include <gen.h>
-#include <sys/file.h>
-#include <sys/quota.h>
-
-int setquota(s, f) char *s; char *f; {
+int setquota(s, f) char *s, *f; {
        write(2, "setquota()\n", 11);
        abort();
 }
index 2fc1a58..ef98c6c 100644 (file)
@@ -1,8 +1,4 @@
-#include <gen.h>
-#include <sys/file.h>
-/*#include <sys/proc.h> gen.h*/
-
-int setregid(r, e) int r; int e; {
+int setregid(r, e) int r, e; {
        write(2, "setregid()\n", 11);
        abort();
 }
index 552fc8c..5a26f5b 100644 (file)
@@ -1,8 +1,4 @@
-#include <gen.h>
-#include <sys/file.h>
-/*#include <sys/proc.h> gen.h*/
-
-int setreuid(r, e) int r; int e; {
+int setreuid(r, e) int r, e; {
        write(2, "setreuid()\n", 11);
        abort();
 }
index 5848974..9d86780 100644 (file)
@@ -1,10 +1,6 @@
-#include <gen.h>
-#include <sys/file.h>
 #include <sys/resource.h>
 
-/*#include <sys/resource.h>*/
-
-int setrlimit(res, rip) int res; struct rlimit *rip; {
+int setrlimit(res, rip) struct rlimit *rip; {
        write(2, "setrlimit()\n", 12);
        abort();
 }
index e65dcc0..0c6ddaa 100644 (file)
@@ -1,8 +1,4 @@
-#include <gen.h>
-#include <sys/file.h>
-#include <sys/socket.h>
-
-int setsockopt(s, level, opt, buf, len) int s; int level; int opt; void *buf; int len; {
+int setsockopt(s, level, opt, buf, len) void *buf; {
        write(2, "setsockopt()\n", 13);
        abort();
 }
index 1ee3978..32d99a5 100644 (file)
@@ -1,8 +1,4 @@
-#include <gen.h>
-#include <sys/file.h>
-/*#include <sys/time.h> gen.h*/
-
-/*#include <sys/time.h>*/
+#include <sys/time.h>
 
 int settimeofday(t, z) struct timeval *t; struct timezone *z; {
        write(2, "settimeofday()\n", 15);
index 2ac0c3a..694be71 100644 (file)
@@ -1,8 +1,4 @@
-#include <gen.h>
-#include <sys.h>
-/*#include <sys/file.h> sys.h*/
-
-int shutdown(s, h) int s; int h; {
+int shutdown(s, h){
        write(2, "shutdown()\n", 11);
        abort();
 }
index 14d43bd..8994be1 100644 (file)
@@ -1,8 +1,4 @@
-#include <gen.h>
-#include <sys/file.h>
-/*#include <sys/signal.h> gen.h*/
-
-int sigblock(m) int m; {
+int sigblock(m) {
        write(2, "sigblock()\n", 11);
        abort();
 }
index 81b4f73..ec4868a 100644 (file)
@@ -1,8 +1,4 @@
-#include <gen.h>
-#include <sys/file.h>
-/*#include <sys/signal.h> gen.h*/
-
-void sigpause(m) int m; {
+void sigpause(m) {
        write(2, "sigpause()\n", 11);
        abort();
 }
index dec34b0..0748888 100644 (file)
@@ -1,8 +1,4 @@
-#include <gen.h>
-#include <sys/file.h>
-/*#include <sys/signal.h> gen.h*/
-
-/*#include <sys/signal.h>*/
+#include <sys/signal.h>
 
 int sigreturn(scp) struct sigcontext *scp; {
        write(2, "sigreturn()\n", 12);
index d7bb1aa..bff2dd4 100644 (file)
@@ -1,8 +1,4 @@
-#include <gen.h>
-#include <sys/file.h>
-/*#include <sys/signal.h> gen.h*/
-
-int sigsetmask(m) int m; {
+int sigsetmask(m) {
        write(2, "sigsetmask()\n", 13);
        abort();
 }
index 6a99f23..6f883f9 100644 (file)
@@ -1,10 +1,6 @@
-#include <gen.h>
-#include <sys/file.h>
-/*#include <sys/signal.h> gen.h*/
+#include <sys/signal.h>
 
-/*#include <sys/signal.h>*/
-
-int sigstack(ss, oss) struct sigstack *ss; struct sigstack *oss; {
+int sigstack(ss, oss) struct sigstack *ss, *oss; {
        write(2, "sigstack()\n", 11);
        abort();
 }
index 1016d84..06c82f2 100644 (file)
@@ -1,10 +1,6 @@
-#include <gen.h>
-#include <sys/file.h>
-/*#include <sys/signal.h> gen.h*/
+#include <sys/signal.h>
 
-/*#include <sys/signal.h>*/
-
-int sigvec(c, f, m) int c; struct sigvec *f; struct sigvec *m; {
+int sigvec(c, f, m) struct sigvec *f, *m; {
        write(2, "sigvec()\n", 9);
        abort();
 }
index f7e1e3a..b69aace 100644 (file)
@@ -1,8 +1,4 @@
-#include <gen.h>
-#include <sys/file.h>
-#include <sys/socket.h>
-
-int socket(a, t, p) int a; int t; int p; {
+int socket(a, t, p) {
        write(2, "socket()\n", 9);
        abort();
 }
index e223c45..cccd373 100644 (file)
@@ -1,8 +1,4 @@
-#include <gen.h>
-#include <sys/file.h>
-#include <sys/socket.h>
-
-int socketpair(d, t, p, s) int d; int t; int p; int s[2]; {
+int socketpair(d, t, p, s) int s[2]; {
        write(2, "socketpair()\n", 13);
        abort();
 }
index ad18e9d..e21d30f 100644 (file)
@@ -1,9 +1,5 @@
-#include <gen.h>
-#include <sys/file.h>
 #include <sys/stat.h>
 
-/*#include <sys/stat.h>*/
-
 int stat(s, b) char *s; struct stat *b; {
        write(2, "stat()\n", 7);
        abort();
index 24a4922..a22d0a5 100644 (file)
@@ -1,7 +1,3 @@
-#include <gen.h>
-#include <sys.h>
-/*#include <sys/file.h> sys.h*/
-
 int swapon(s) char *s; {
        write(2, "swapon()\n", 9);
        abort();
index c0689da..2f9d5b3 100644 (file)
@@ -1,7 +1,4 @@
-#include <gen.h>
-#include <sys/file.h>
-
-int symlink(t, f) char *t; char *f; {
+int symlink(t, f) char *t, *f; {
        write(2, "symlink()\n", 10);
        abort();
 }
index 3aac77a..c6197f6 100644 (file)
@@ -1,7 +1,4 @@
-#include <gen.h>
-#include <sys/file.h>
-
-void sync() {
+void sync(){
        write(2, "sync()\n", 7);
        abort();
 }
index 82e42f6..f907e52 100644 (file)
@@ -1,8 +1,4 @@
-#include <gen.h>
-#include <sys/file.h>
-/*#include <sys/types.h> gen.h*/
-
-/*#include <sys/types.h>*/
+#include <sys/types.h>
 
 int truncate(p, l) char *p; off_t l; {
        write(2, "truncate()\n", 11);
index 3e23c16..0988c39 100644 (file)
@@ -1,8 +1,4 @@
-#include <gen.h>
-#include <sys/file.h>
-#include <sys/stat.h>
-
-int umask(n) int n; {
+int umask(n) {
        write(2, "umask()\n", 8);
        abort();
 }
index a6ac43f..2ee58eb 100644 (file)
@@ -1,7 +1,3 @@
-#include <gen.h>
-#include <sys/file.h>
-#include <sys/mount.h>
-
 int umount(s) char *s; {
        write(2, "umount()\n", 9);
        abort();
index d62245e..5d4b138 100644 (file)
@@ -1,6 +1,3 @@
-#include <gen.h>
-#include <sys/file.h>
-
 int unlink(s) char *s; {
        write(2, "unlink()\n", 9);
        abort();
index 31f57a1..a8e249a 100644 (file)
@@ -1,8 +1,4 @@
-#include <gen.h>
-#include <sys/file.h>
-/*#include <sys/time.h> gen.h*/
-
-/*#include <sys/time.h>*/
+#include <sys/time.h>
 
 int utimes(f, t) char *f; struct timeval t[2]; {
        write(2, "utimes()\n", 9);
index 14579a2..f5df786 100644 (file)
@@ -1,7 +1,3 @@
-#include <gen.h>
-#include <sys/file.h>
-/*#include <sys/proc.h> gen.h*/
-
 int vfork() {
        write(2, "vfork()\n", 8);
        abort();
index c8a6afb..8e7775e 100644 (file)
@@ -1,7 +1,3 @@
-#include <gen.h>
-#include <sys.h>
-/*#include <sys/file.h> sys.h*/
-
 void vhangup() {
        write(2, "vhangup()\n", 10);
        abort();
index 37b2e00..dada99d 100644 (file)
@@ -1,15 +1,6 @@
 #include <sys/file.h>
-#ifdef __STDC__
-#include <stdarg.h>
-#define _va_start(argp, arg) va_start(argp, arg)
-#else
 #include <varargs.h>
-#define _va_start(argp, arg) va_start(argp)
-#endif
 
-/*#include <sys/file.h>*/
-/*#include <varargs.h>*/
-
-int vopen(f, m, argp) char *f; int m; va_list argp; {
+int vopen(f, m, argp) char *f; va_list argp; {
        return open(f, m, m & O_CREAT ? va_arg(argp, int) : 0);
 }
index 1b0be79..f3b66a1 100644 (file)
@@ -1,7 +1,3 @@
-#include <gen.h>
-#include <sys/file.h>
-#include <sys/wait.h>
-
 int wait(s) int *s; {
        write(2, "wait()\n", 7);
        abort();
index 1738dde..202506b 100644 (file)
@@ -1,11 +1,6 @@
-#include <gen.h>
-#include <sys/file.h>
-/*#include <sys/resource.h> sys/wait.h*/
-#include <sys/wait.h>
+#include <sys/resource.h>
 
-/*#include <sys/resource.h>*/
-
-int wait3(s, o, r) int *s; int o; struct rusage *r; {
+int wait3(s, o, r) int *s; struct rusage *r; {
        write(2, "wait3()\n", 8);
        abort();
 }
index c603fa9..24779ee 100644 (file)
@@ -1,7 +1,4 @@
-#include <gen.h>
-#include <sys/file.h>
-
-int write(f, b, l) int f; void *b; int l; {
+int write(f, b, l) void *b; {
        write(2, "write()\n", 8);
        abort();
 }
index 3614744..9b2998f 100644 (file)
@@ -1,10 +1,6 @@
-#include <gen.h>
-#include <sys/file.h>
 #include <sys/uio.h>
 
-/*#include <sys/uio.h>*/
-
-int writev(f, v, l) int f; struct iovec *v; int l; {
+int writev(f, v, l) struct iovec *v; {
        write(2, "writev()\n", 9);
        abort();
 }
index c80f3fd..7fe0c12 100644 (file)
@@ -1,4 +1,3 @@
-LD=ld
 #
 # Copyright (c) 1980 Regents of the University of California.
 # All rights reserved.  The Berkeley software License Agreement
@@ -13,10 +12,10 @@ TAGSFILE=tags
 
 .c.o:
        /lib/cpp -E ${CFLAGS} -DPROF $*.c | ${AS} -o $*.o
-       -${LD} -X -r $*.o
+       -ld -X -r $*.o
        mv a.out profiled/$*.o
        /lib/cpp -E ${CFLAGS} $*.c | ${AS} -o $*.o
-       -${LD} -x -r $*.o
+       -ld -x -r $*.o
        mv a.out $*.o
 
 compat-4.1lib compat-4.1lib_p: ${OBJS}
index b865be6..c12f180 100644 (file)
@@ -1,4 +1,3 @@
-LD=ld
 #
 # Copyright (c) 1980 Regents of the University of California.
 # All rights reserved.  The Berkeley software License Agreement
@@ -26,34 +25,34 @@ crt0.o:     crt0.c
        cc -S ${DFLAGS} -DCRT0 crt0.c
        /lib/cpp crt0.s > x.s
        as -o x.o x.s
-       ${LD} -x -r -o crt0.o x.o
+       ld -x -r -o crt0.o x.o
        rm -f x.s x.o crt0.s
 
 moncrt0.o: crt0.c
        cc -S ${DFLAGS} -DMCRT0 crt0.c
        /lib/cpp crt0.s > x.s
        as -o x.o x.s
-       ${LD} -x -r -o moncrt0.o x.o
+       ld -x -r -o moncrt0.o x.o
        rm -f x.s x.o crt0.s
 
 gcrt0.o: moncrt0.o gmon.o
-       ${LD} -x -r -o gcrt0.o moncrt0.o gmon.o
+       ld -x -r -o gcrt0.o moncrt0.o gmon.o
 
 mcrt0.o: moncrt0.o mon.o
-       ${LD} -x -r -o mcrt0.o moncrt0.o mon.o
+       ld -x -r -o mcrt0.o moncrt0.o mon.o
 
 mon.o: mon.c mon.ex
        cc -S ${DEFS} ${DFLAGS} mon.c
        ex - mon.s < mon.ex
        as -o x.o mon.s
-       ${LD} -x -r -o mon.o x.o
+       ld -x -r -o mon.o x.o
        rm -f x.o mon.s
 
 gmon.o: gmon.c gmon.h gmon.ex
        cc -S ${DEFS} ${DFLAGS} gmon.c
        ex - gmon.s < gmon.ex
        as -o x.o gmon.s
-       ${LD} -x -r -o gmon.o x.o
+       ld -x -r -o gmon.o x.o
        rm -f x.o gmon.s
 
 tags:  
index b13585d..d76ebb9 100644 (file)
@@ -1,4 +1,3 @@
-LD=ld
 #      Makefile        4.13    86/01/09
 #
 SRCS=  _setjmp.s abs.s alloca.s atof.s bcmp.s bcopy.s bzero.s disktab.c \
@@ -14,18 +13,18 @@ TAGSFILE=tags
 
 .s.o:
        /lib/cpp -E ${DEFS} -DPROF $*.s | ${AS} -o $*.o
-       -${LD} -X -r $*.o
+       -ld -X -r $*.o
        mv a.out profiled/$*.o
        /lib/cpp -E ${DEFS} $*.s | ${AS} -o $*.o
-       -${LD} -x -r $*.o
+       -ld -x -r $*.o
        mv a.out $*.o
 
 .c.o:
        cc -p -c ${CFLAGS} $*.c
-       -${LD} -X -r $*.o
+       -ld -X -r $*.o
        mv a.out profiled/$*.o
        cc -c ${CFLAGS} $*.c
-       -${LD} -x -r $*.o
+       -ld -x -r $*.o
        mv a.out $*.o
 
 genlib genlib_p: ${OBJS}
index be0184e..d63b813 100644 (file)
@@ -1,4 +1,3 @@
-LD=ld
 #
 # Copyright (c) 1983 Regents of the University of California.
 # All rights reserved.  The Berkeley software License Agreement
@@ -13,10 +12,10 @@ TAGSFILE=tags
 
 .c.o:
        /lib/cpp -E ${CFLAGS} -DPROF $*.c | ${AS} -o $*.o
-       -${LD} -x -r $*.o
+       -ld -x -r $*.o
        mv a.out profiled/$*.o
        /lib/cpp -E ${CFLAGS} $*.c | ${AS} -o $*.o
-       -${LD} -x -r $*.o
+       -ld -x -r $*.o
        mv a.out $*.o
 
 netlib netlib_p: ${OBJS}
index 39e1f99..04c58b9 100644 (file)
@@ -1,4 +1,3 @@
-LD=ld
 #
 # Copyright (c) 1980 Regents of the University of California.
 # All rights reserved.  The Berkeley software License Agreement
@@ -15,10 +14,10 @@ TAGSFILE=tags
 
 .c.o:
        cc -E -DPROF ${CFLAGS} $*.c | as -o $*.o
-       -${LD} -x -r $*.o
+       -ld -x -r $*.o
        mv a.out profiled/$*.o
        cc -E ${CFLAGS} $*.c | as -o $*.o
-       -${LD} -x -r $*.o
+       -ld -x -r $*.o
        mv a.out $*.o
 
 stdiolib stdiolib_p: ${OBJS}
index 3d06ca7..cbf667b 100644 (file)
@@ -1,4 +1,3 @@
-LD=ld
 #
 # Copyright (c) 1980 Regents of the University of California.
 # All rights reserved.  The Berkeley software License Agreement
@@ -75,10 +74,10 @@ TAGSFILE=tags
 
 .c.o:
        /lib/cpp -E ${DEFS} -DPROF $*.c | ${AS} -o $*.o
-       -${LD} -x -r $*.o
+       -ld -x -r $*.o
        mv a.out profiled/$*.o
        /lib/cpp -E ${DEFS} $*.c | ${AS} -o $*.o
-       -${LD} -x -r $*.o
+       -ld -x -r $*.o
        mv a.out $*.o
 
 syslib syslib_p: ${OBJS}
index e31436c..e4dffee 100644 (file)
@@ -1,8 +1,3 @@
-#ifndef _SYS_ACCT_H_
-#define _SYS_ACCT_H_
-
-#include <sys/types.h>
-
 /*
  * Copyright (c) 1982, 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -19,7 +14,8 @@
  */
 typedef        u_short comp_t;
 
-struct acct {
+struct acct
+{
        char    ac_comm[10];            /* Accounting command name */
        comp_t  ac_utime;               /* Accounting user time */
        comp_t  ac_stime;               /* Accounting system time */
@@ -49,18 +45,3 @@ struct       acct {
 struct acct    acctbuf;
 struct inode   *acctp;
 #endif
-
-#ifndef KERNEL
-#ifndef __P
-#ifdef __STDC__
-#define __P(args) args
-#else
-#define __P(args) ()
-#endif
-#endif
-
-/* sys/acct.c */
-int acct __P((char *f));
-#endif
-
-#endif
index df4de10..6bd020d 100644 (file)
@@ -1,9 +1,3 @@
-#ifndef _SYS_BKMAC_H_
-#define _SYS_BKMAC_H_
-
-#include <sys/tty.h>
-/*#include <sys/types.h> sys/tty.h*/
-
 /*
  * Copyright (c) 1982, 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -32,5 +26,3 @@
                } \
        } \
 }
-
-#endif
index 71a5ce6..1064b22 100644 (file)
@@ -1,9 +1,3 @@
-#ifndef _SYS_BUF_H_
-#define _SYS_BUF_H_
-
-#include <sys/param.h>
-/*#include <sys/types.h> sys/param.h*/
-
 /*
  * Copyright (c) 1982, 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
  * We only need three words for these, so this abbreviated
  * definition saves some space.
  */
-struct bufhd {
+struct bufhd
+{
        long    b_flags;                /* see defines below */
        struct  buf *b_forw, *b_back;   /* fwd/bkwd pointer in chain */
 };
-struct buf {
+struct buf
+{
        long    b_flags;                /* too much goes here to describe */
        struct  buf *b_forw, *b_back;   /* hash chain (2 way street) */
        struct  buf *av_forw, *av_back; /* position on free list if not BUSY */
@@ -99,16 +95,16 @@ struct      buf bfreelist[BQUEUES]; /* heads of available lists */
 struct buf bswlist;            /* head of free swap header list */
 struct buf *bclnlist;          /* head of cleaned page list */
 
-/*struct       buf *alloc();*/
-/*struct       buf *realloccg();*/
-/*struct       buf *baddr();*/
-/*struct       buf *getblk();*/
-/*struct       buf *geteblk();*/
-/*struct       buf *getnewbuf();*/
-/*struct       buf *bread();*/
-/*struct       buf *breada();*/
+struct buf *alloc();
+struct buf *realloccg();
+struct buf *baddr();
+struct buf *getblk();
+struct buf *geteblk();
+struct buf *getnewbuf();
+struct buf *bread();
+struct buf *breada();
 
-/*unsigned minphys();*/
+unsigned minphys();
 #endif
 
 /*
@@ -192,5 +188,3 @@ struct      buf *bclnlist;          /* head of cleaned page list */
        blkclr((bp)->b_un.b_addr, (unsigned)(bp)->b_bcount); \
        (bp)->b_resid = 0; \
 }
-
-#endif
index 378e70d..1f3831e 100644 (file)
@@ -1,8 +1,3 @@
-#ifndef _SYS_CALLOUT_H_
-#define _SYS_CALLOUT_H_
-
-#include <sys/types.h>
-
 /*
  * Copyright (c) 1982, 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -31,5 +26,3 @@ struct        callout {
 struct callout *callfree, *callout, calltodo;
 int    ncallout;
 #endif
-
-#endif
index b2ada32..d33094c 100644 (file)
@@ -1,8 +1,3 @@
-#ifndef _SYS_CLIST_H_
-#define _SYS_CLIST_H_
-
-#include <sys/param.h>
-
 /*
  * Copyright (c) 1982, 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -24,5 +19,3 @@ int   nclist;
 struct cblock *cfreelist;
 int    cfreecount;
 #endif
-
-#endif
index 215766f..18fa690 100644 (file)
@@ -1,9 +1,3 @@
-#ifndef _SYS_CMAP_H_
-#define _SYS_CMAP_H_
-
-#include <sys/types.h>
-#include <vax/machparam.h>
-
 /*
  * Copyright (c) 1982, 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -30,7 +24,8 @@
  *     (below) must be changed to long.
  */
 #ifndef        LOCORE
-struct cmap {
+struct cmap
+{
 unsigned short         c_next,         /* index of next free list entry */
                c_prev,         /* index of previous free list entry */
                c_hlink;        /* hash link for <blkno,mdev> */
@@ -46,7 +41,7 @@ unsigned int  c_page:21,      /* virtual page number in segment */
                c_blkno:24,     /* disk block this is a copy of */
                c_mdev:8;       /* which mounted dev this is from */
 };
-#else
+#else  LOCORE
 /*
  * bit offsets of elements in cmap
  */
@@ -55,7 +50,7 @@ unsigned int  c_page:21,      /* virtual page number in segment */
 #define        SZ_CMAP         16              /* sizeof(struct cmap) */
 
 #define        MAXMEM          64*1024         /* maximum memory, in Kbytes */
-#endif
+#endif LOCORE
 
 #define        CMHEAD  0
 
@@ -73,7 +68,7 @@ unsigned int  c_page:21,      /* virtual page number in segment */
 struct cmap *cmap;
 struct cmap *ecmap;
 int    ncmap;
-/*struct       cmap *mfind();*/
+struct cmap *mfind();
 int    firstfree, maxfree;
 int    ecmx;                   /* cmap index of ecmap */
 u_short        cmhash[CMHSIZ];
@@ -88,6 +83,4 @@ u_short       cmhash[CMHSIZ];
 
 #define        pgtocm(x)       (((int) ((x)-firstfree) / CLSIZE) + 1)
 #define        cmtopg(x)       ((((x)-1) * CLSIZE) + firstfree)
-#endif
-
-#endif
+#endif LOCORE
index 7e7da19..d97b00d 100644 (file)
@@ -1,8 +1,3 @@
-#ifndef _SYS_CONF_H_
-#define _SYS_CONF_H_
-
-#include <sys/types.h>
-
 /*
  * Copyright (c) 1982, 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -20,7 +15,8 @@
  * device switches is in the
  * file conf.c.
  */
-struct bdevsw {
+struct bdevsw
+{
        int     (*d_open)();
        int     (*d_close)();
        int     (*d_strategy)();
@@ -35,7 +31,8 @@ struct        bdevsw bdevsw[];
 /*
  * Character device switch.
  */
-struct cdevsw {
+struct cdevsw
+{
        int     (*d_open)();
        int     (*d_close)();
        int     (*d_read)();
@@ -54,7 +51,8 @@ struct        cdevsw cdevsw[];
 /*
  * tty line control switch.
  */
-struct linesw {
+struct linesw
+{
        int     (*l_open)();
        int     (*l_close)();
        int     (*l_read)();
@@ -73,7 +71,8 @@ struct        linesw linesw[];
 /*
  * Swap device information
  */
-struct swdevt {
+struct swdevt
+{
        dev_t   sw_dev;
        int     sw_freed;
        int     sw_nblks;
@@ -81,5 +80,3 @@ struct swdevt {
 #ifdef KERNEL
 struct swdevt swdevt[];
 #endif
-
-#endif
index 76394d0..913a549 100644 (file)
@@ -1,9 +1,3 @@
-#ifndef _SYS_DIR_H_
-#define _SYS_DIR_H_
-
-#include <sys/param.h>
-/*#include <sys/types.h> sys/param.h*/
-
 /*
  * Copyright (c) 1982, 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -74,12 +68,12 @@ typedef struct _dirdesc {
 #ifndef NULL
 #define NULL 0
 #endif
-/*extern       DIR *opendir();*/
-/*extern       struct direct *readdir();*/
-/*extern       long telldir();*/
-/*extern       void seekdir();*/
+extern DIR *opendir();
+extern struct direct *readdir();
+extern long telldir();
+extern void seekdir();
 #define rewinddir(dirp)        seekdir((dirp), (long)0)
-/*extern       void closedir();*/
+extern void closedir();
 #endif
 
 #ifdef KERNEL
@@ -99,40 +93,3 @@ struct dirtemplate {
        char    dotdot_name[4];         /* ditto */
 };
 #endif
-
-#ifndef KERNEL
-#ifndef __P
-#ifdef __STDC__
-#define __P(args) args
-#else
-#define __P(args) ()
-#endif
-#endif
-
-/* gen/closedir.c */
-void closedir __P((register DIR *dirp));
-
-/* gen/getwd.c */
-char *getwd __P((char *pathname));
-
-/* gen/opendir.c */
-DIR *opendir __P((char *name));
-
-/* gen/readdir.c */
-struct direct *readdir __P((register DIR *dirp));
-
-/* gen/scandir.c */
-int scandir __P((char *dirname, struct direct *(*namelist[]), int (*select)(struct direct *d), int (*dcomp)(struct direct *d0, struct direct *d1)));
-int alphasort __P((struct direct **d1, struct direct **d2));
-
-/* gen/seekdir.c */
-void seekdir __P((register DIR *dirp, long loc));
-
-/* gen/telldir.c */
-long telldir __P((DIR *dirp));
-
-/* sys/rmdir.c */
-int rmdir __P((char *p));
-#endif
-
-#endif
index d2f90c5..0ba837a 100644 (file)
@@ -1,6 +1,3 @@
-#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
@@ -34,5 +31,3 @@ float dk_mspw[DK_NDRIVE];
 long   tk_nin;
 long   tk_nout;
 #endif
-
-#endif
index 8e9bc0c..4c72788 100644 (file)
@@ -1,8 +1,3 @@
-#ifndef _SYS_DKBAD_H_
-#define _SYS_DKBAD_H_
-
-#include <sys/types.h>
-
 /*
  * Copyright (c) 1982, 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -50,5 +45,3 @@ struct dkbad {
 #define        SSE     1
 #define        BSE     2
 #define        CONT    3
-
-#endif
index 5916ae3..57052d5 100644 (file)
@@ -1,8 +1,3 @@
-#ifndef _SYS_DMAP_H_
-#define _SYS_DMAP_H_
-
-#include <sys/types.h>
-
 /*
  * Copyright (c) 1982, 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -18,7 +13,8 @@
 
 #define        NDMAP           38      /* size of the swap area map */
 
-struct dmap {
+struct dmap
+{
        swblk_t dm_size;        /* current size used by process */
        swblk_t dm_alloc;       /* amount of physical swap space allocated */
        swblk_t dm_map[NDMAP];  /* first disk block number in each chunk */
@@ -32,9 +28,8 @@ int   dmmin, dmmax, dmtext;
  * The following structure is that ``returned''
  * from a call to vstodb().
  */
-struct dblock {
+struct dblock
+{
        swblk_t db_base;        /* base of physical contig drum block */
        swblk_t db_size;        /* size of block */
 };
-
-#endif
index ed2d3e5..3c75cc3 100644 (file)
@@ -1,6 +1,3 @@
-#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
@@ -25,5 +22,3 @@ struct        domain {
 #ifdef KERNEL
 struct domain *domains;
 #endif
-
-#endif
index ee3d46f..275be9a 100644 (file)
@@ -1,6 +1,3 @@
-#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
 #ifndef KERNEL
 extern int errno;
 #endif
-
-#ifndef KERNEL
-#ifndef __P
-#ifdef __STDC__
-#define __P(args) args
-#else
-#define __P(args) ()
-#endif
-#endif
-
-/* gen/perror.c */
-int perror __P((char *s));
-#endif
-
-#endif
index 613e9ff..97ccf68 100644 (file)
@@ -1,6 +1,3 @@
-#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
@@ -26,37 +23,3 @@ unsigned long        a_drsize;       /* size of data relocation */
 #define        OMAGIC  0407            /* old impure format */
 #define        NMAGIC  0410            /* read-only text */
 #define        ZMAGIC  0413            /* demand load format */
-
-#ifndef KERNEL
-#ifndef __P
-#ifdef __STDC__
-#define __P(args) args
-#else
-#define __P(args) ()
-#endif
-#endif
-
-/* gen/execvp.c */
-int execlp __P((char *name, char *argv));
-int execvp __P((char *name, char **argv));
-
-/* gen/system.c */
-int system __P((char *s));
-
-/* sys/execl.c */
-void execl __P((char *f, ...));
-
-/* sys/execle.c */
-void execle __P((char *f, ...));
-
-/* sys/exect.c */
-void exect __P((char *s, char *v[], char *e[]));
-
-/* sys/execv.c */
-void execv __P((char *s, char *v[]));
-
-/* sys/execve.c */
-void execve __P((char *s, char *v[], char *e[]));
-#endif
-
-#endif
index 9422d9c..26a8d89 100644 (file)
@@ -1,13 +1,3 @@
-#ifndef _SYS_FILE_H_
-#define _SYS_FILE_H_
-
-#include <sys/errno.h>
-#include <sys/param.h>
-/*#include <sys/types.h> sys/param.h*/
-#ifdef __STDC__
-#include <stdarg.h>
-#endif
-
 /*
  * Copyright (c) 1982, 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -38,8 +28,8 @@ struct        file {
 
 struct file *file, *fileNFILE;
 int    nfile;
-/*struct       file *getf();*/
-/*struct       file *falloc();*/
+struct file *getf();
+struct file *falloc();
 #endif
 
 /*
@@ -129,90 +119,3 @@ int        nfile;
 #define        DTYPE_INODE     1       /* file */
 #define        DTYPE_SOCKET    2       /* communications endpoint */
 #endif
-
-#ifndef KERNEL
-#ifndef __P
-#ifdef __STDC__
-#define __P(args) args
-#else
-#define __P(args) ()
-#endif
-#endif
-
-/* sys/access.c */
-int access __P((char *p, int m));
-
-/* sys/chown.c */
-int chown __P((char *s, int u, int g));
-
-/* sys/close.c */
-int close __P((int f));
-
-/* sys/creat.c */
-int creat __P((char *s, int m));
-
-/* sys/dup2.c */
-int dup2 __P((int o, int n));
-
-/* sys/dup.c */
-int dup __P((int f));
-
-/* sys/fchown.c */
-int fchown __P((int f, int u, int g));
-
-/* sys/fcntl.c */
-int fcntl __P((int f, int c, int a));
-
-/* sys/flock.c */
-int flock __P((int f, int o));
-
-/* sys/fsync.c */
-int fsync __P((int f));
-
-/* sys/ftruncate.c */
-int ftruncate __P((int d, off_t l));
-
-/* sys/getdtablesize.c */
-int getdtablesize __P((void));
-
-/* sys/link.c */
-int link __P((char *a, char *b));
-
-/* sys/lseek.c */
-off_t lseek __P((int f, off_t o, int d));
-
-/* sys/open.c */
-int open __P((char *f, int m, ...));
-
-/* sys/pipe.c */
-int pipe __P((int f[2]));
-
-/* sys/read.c */
-int read __P((int f, void *b, int l));
-
-/* sys/readlink.c */
-int readlink __P((char *p, char *b, int s));
-
-/* sys/rename.c */
-int rename __P((char *f, char *t));
-
-/* sys/symlink.c */
-int symlink __P((char *t, char *f));
-
-/* sys/sync.c */
-void sync __P((void));
-
-/* sys/truncate.c */
-int truncate __P((char *p, off_t l));
-
-/* sys/unlink.c */
-int unlink __P((char *s));
-
-/* sys/vopen.c */
-int vopen __P((char *f, int m, va_list argp));
-
-/* sys/write.c */
-int write __P((int f, void *b, int l));
-#endif
-
-#endif
index 1dfca04..f453adb 100644 (file)
@@ -1,10 +1,3 @@
-#ifndef _SYS_FS_H_
-#define _SYS_FS_H_
-
-#include <sys/inode.h>
-/*#include <sys/param.h> sys/inode.h*/
-/*#include <sys/types.h> sys/inode.h*/
-
 /*
  * Copyright (c) 1982, 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -137,7 +130,8 @@ struct csum {
  * Super block for a file system.
  */
 #define        FS_MAGIC        0x011954
-struct fs {
+struct fs
+{
        struct  fs *fs_link;            /* linked list of file systems */
        struct  fs *fs_rlink;           /*     used for incore super blocks */
        daddr_t fs_sblkno;              /* addr of super-block in filesys */
@@ -379,8 +373,6 @@ struct      cg {
 #define        NINDIR(fs)      ((fs)->fs_nindir)
 
 #ifdef KERNEL
-/*struct       fs *getfs();*/
-/*struct       fs *mountfs();*/
-#endif
-
+struct fs *getfs();
+struct fs *mountfs();
 #endif
index 2444e60..a332381 100644 (file)
@@ -1,6 +1,3 @@
-#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
@@ -88,5 +85,3 @@ struct rawarc {
      */
 #define ROUNDDOWN(x,y) (((x)/(y))*(y))
 #define ROUNDUP(x,y)   ((((x)+(y)-1)/(y))*(y))
-
-#endif
index 41ae0e3..a6fd37c 100644 (file)
@@ -1,10 +1,3 @@
-#ifndef _SYS_INODE_H_
-#define _SYS_INODE_H_
-
-#include <sys/param.h>
-#include <sys/time.h>
-/*#include <sys/types.h> sys/param.h*/
-
 /*
  * Copyright (c) 1982, 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -44,7 +37,8 @@ struct inode {
                        struct inode **if_freeb;        /* free list back */
                } i_fr;
        } i_un;
-       struct  icommon {
+       struct  icommon
+       {
                u_short ic_mode;        /*  0: mode and type of file */
                short   ic_nlink;       /*  2: number of links to file */
                uid_t   ic_uid;         /*  4: owner's user id */
@@ -127,16 +121,16 @@ long      nextinodeid;            /* unique id generator */
 
 struct inode *rootdir;                 /* pointer to inode of root directory */
 
-/*struct       inode *ialloc();*/
-/*struct       inode *iget();*/
+struct inode *ialloc();
+struct inode *iget();
 #ifdef notdef
-/*struct       inode *ifind();*/
+struct inode *ifind();
 #endif
-/*struct       inode *owner();*/
-/*struct       inode *maknode();*/
-/*struct       inode *namei();*/
+struct inode *owner();
+struct inode *maknode();
+struct inode *namei();
 
-/*ino_t        dirpref();*/
+ino_t  dirpref();
 #endif
 
 /* flags */
@@ -202,5 +196,3 @@ struct      inode *rootdir;                 /* pointer to inode of root directory */
                (ip)->i_flag &= ~(IACC|IUPD|ICHG); \
        } \
 }
-
-#endif
index cc087bf..366a268 100644 (file)
@@ -1,11 +1,3 @@
-#ifndef _SYS_IOCTL_H_
-#define _SYS_IOCTL_H_
-
-#include <net/if.h>
-/*#include <net/if_arp.h> net/if.h*/
-#include <net/route.h>
-/*#include <sys/types.h> net/if.h*/
-
 /*
  * Copyright (c) 1982, 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -17,8 +9,8 @@
 /*
  * Ioctl definitions
  */
-/*#ifndef      _IOCTL_*/
-/*#define      _IOCTL_*/
+#ifndef        _IOCTL_
+#define        _IOCTL_
 #ifdef KERNEL
 #include "ttychars.h"
 #include "ttydev.h"
@@ -277,28 +269,4 @@ struct ttysize {
 #define        SIOCGARP        _IOWR(i,31, struct arpreq)      /* get arp entry */
 #define        SIOCDARP        _IOW(i, 32, struct arpreq)      /* delete arp entry */
 
-/*#endif*/
-
-#ifndef KERNEL
-#ifndef __P
-#ifdef __STDC__
-#define __P(args) args
-#else
-#define __P(args) ()
-#endif
-#endif
-
-/* compat-4.1/gtty.c */
-int gtty __P((int fd, struct sgttyb *ap));
-
-/* compat-4.1/stty.c */
-int stty __P((int fd, struct sgttyb *ap));
-
-/* sys/ioctl.c */
-int ioctl __P((int d, u_long r, void *p));
-
-/* sys/isatty.c */
-int isatty __P((int f));
-#endif
-
 #endif
index ac2d96b..c8bab76 100644 (file)
@@ -1,10 +1,3 @@
-#ifndef _SYS_KERNEL_H_
-#define _SYS_KERNEL_H_
-
-#include <sys/param.h>
-#include <sys/time.h>
-/*#include <sys/types.h> sys/param.h*/
-
 /*
  * Copyright (c) 1982, 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -17,7 +10,7 @@
  * Global variables for the kernel
  */
 
-/*long rmalloc();*/
+long   rmalloc();
 
 /* 1.1 */
 long   hostid;
@@ -32,7 +25,7 @@ int   hz;
 int    phz;                            /* alternate clock's frequency */
 int    tick;
 int    lbolt;                          /* awoken once a second */
-/*int  realitexpire();*/
+int    realitexpire();
 
 double avenrun[3];
 
@@ -42,5 +35,3 @@ extern        char *s_lowpc;
 extern u_long s_textsize;
 extern u_short *kcount;
 #endif
-
-#endif
index 7d1e5c1..7e8ab8e 100644 (file)
@@ -1,6 +1,3 @@
-#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
@@ -37,7 +34,8 @@ struct map {
        char    *m_name;                /* name of resource */
 /* we use m_name when the map overflows, in warning messages */
 };
-struct mapent {
+struct mapent
+{
        int     m_size;         /* size of this segment of the map */
        int     m_addr;         /* resource-space addr of start of segment */
 };
@@ -50,5 +48,3 @@ struct        map *argmap;
 struct map *kernelmap;
 struct map *mbmap;
 #endif
-
-#endif
index f665eaa..6b6ffab 100644 (file)
@@ -1,10 +1,3 @@
-#ifndef _SYS_MBUF_H_
-#define _SYS_MBUF_H_
-
-#include <sys/param.h>
-/*#include <sys/types.h> sys/param.h*/
-/*#include <vax/pte.h> sys/param.h*/
-
 /*
  * Copyright (c) 1982, 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -159,8 +152,6 @@ int nmbclusters;
 struct mbuf *mfree, *mclfree;
 char   mclrefcnt[NMBCLUSTERS + 1];
 int    m_want;
-/*struct       mbuf *m_get(),*m_getclr(),*m_free(),*m_more(),*m_copy(),*m_pullup();*/
-/*caddr_t      m_clalloc();*/
-#endif
-
+struct mbuf *m_get(),*m_getclr(),*m_free(),*m_more(),*m_copy(),*m_pullup();
+caddr_t        m_clalloc();
 #endif
index cd88094..4c1c14d 100644 (file)
@@ -1,6 +1,3 @@
-#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
@@ -24,5 +21,3 @@
 #define        MADV_SEQUENTIAL 2               /* expect sequential page references */
 #define        MADV_WILLNEED   3               /* will need these pages */
 #define        MADV_DONTNEED   4               /* dont need these pages */
-
-#endif
index 8ccc3a3..65a895b 100644 (file)
@@ -1,9 +1,3 @@
-#ifndef _SYS_MOUNT_H_
-#define _SYS_MOUNT_H_
-
-#include <sys/param.h>
-/*#include <sys/types.h> sys/param.h*/
-
 /*
  * Copyright (c) 1982, 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -17,7 +11,8 @@
  * One allocated on every mount.
  * Used to find the super block.
  */
-struct mount {
+struct mount
+{
        dev_t   m_dev;          /* device mounted */
        struct  buf *m_bufp;    /* pointer to superblock */
        struct  inode *m_inodp; /* pointer to mounted on inode */
@@ -26,21 +21,3 @@ struct       mount {
 #ifdef KERNEL
 struct mount mount[NMOUNT];
 #endif
-
-#ifndef KERNEL
-#ifndef __P
-#ifdef __STDC__
-#define __P(args) args
-#else
-#define __P(args) ()
-#endif
-#endif
-
-/* sys/mount.c */
-int mount __P((char *s, char *n, int f));
-
-/* sys/umount.c */
-int umount __P((char *s));
-#endif
-
-#endif
index 13e42c7..4efb8a7 100644 (file)
@@ -1,6 +1,3 @@
-#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
@@ -20,5 +17,3 @@ struct        msgbuf {
 #ifdef KERNEL
 struct msgbuf msgbuf;
 #endif
-
-#endif
index 3f08ecf..6647b33 100644 (file)
@@ -1,9 +1,3 @@
-#ifndef _SYS_MTIO_H_
-#define _SYS_MTIO_H_
-
-#include <sys/ioctl.h>
-/*#include <sys/types.h> sys/ioctl.h*/
-
 /*
  * Copyright (c) 1982, 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -71,5 +65,3 @@ struct        mtget   {
 #ifndef KERNEL
 #define        DEFTAPE "/dev/rmt12"
 #endif
-
-#endif
index 33d9b51..89fba9d 100644 (file)
@@ -1,10 +1,3 @@
-#ifndef _SYS_NAMEI_H_
-#define _SYS_NAMEI_H_
-
-#include <sys/dir.h>
-/*#include <sys/types.h> sys/dir.h*/
-#include <sys/uio.h>
-
 /*
  * Copyright (c) 1982, 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
  *     @(#)namei.h     7.1 (Berkeley) 6/4/86
  */
 
-/*#ifndef _NAMEI_*/
-/*#define      _NAMEI_*/
+#ifndef _NAMEI_
+#define        _NAMEI_
 
 #ifdef KERNEL
 #include "uio.h"
 #else
-/*#include <sys/uio.h>*/
+#include <sys/uio.h>
 #endif
 
 /*
@@ -92,6 +85,4 @@ struct        nchstats {
        long    ncs_pass2;              /* names found with passes == 2 */
        long    ncs_2passes;            /* number of times we attempt it */
 };
-/*#endif*/
-
 #endif
index cb0b8ff..e02688c 100644 (file)
@@ -1,10 +1,3 @@
-#ifndef _SYS_PARAM_H_
-#define _SYS_PARAM_H_
-
-#include <sys/types.h>
-#include <vax/machparam.h>
-#include <vax/pte.h>
-
 /*
  * Copyright (c) 1982, 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
 #define        CROUND  (CBLOCK - 1)                            /* clist rounding */
 
 #ifndef KERNEL
-/*#include     <sys/types.h>*/
+#include       <sys/types.h>
 #else
 #ifndef LOCORE
 #include       "types.h"
 
 /* moved this from sys/types.h */
 #define        NBBY    8               /* number of bits in a byte */
-
-#endif
index 53fdc31..5d069b0 100644 (file)
@@ -1,9 +1,3 @@
-#ifndef _SYS_PROC_H_
-#define _SYS_PROC_H_
-
-#include <sys/time.h>
-/*#include <sys/types.h> sys/time.h*/
-
 /*
  * Copyright (c) 1982, 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -75,7 +69,7 @@ struct        proc {
 
 #ifdef KERNEL
 short  pidhash[PIDHSZ];
-/*struct       proc *pfind();*/
+struct proc *pfind();
 struct proc *proc, *procNPROC; /* the proc table itself */
 struct proc *freeproc, *zombproc, *allproc;
                        /* lists of procs in various states */
@@ -128,90 +122,3 @@ int        whichqs;                /* bit mask summarizing non-empty qs's */
 #define        ISSIG(p) \
        ((p)->p_sig && ((p)->p_flag&STRC || \
         ((p)->p_sig &~ ((p)->p_sigignore | (p)->p_sigmask))) && issig())
-
-#ifndef KERNEL
-#ifndef __P
-#ifdef __STDC__
-#define __P(args) args
-#else
-#define __P(args) ()
-#endif
-#endif
-
-/* gen/setegid.c */
-int setegid __P((int egid));
-
-/* gen/seteuid.c */
-int seteuid __P((int euid));
-
-/* gen/setgid.c */
-int setgid __P((int gid));
-
-/* gen/setrgid.c */
-int setrgid __P((int rgid));
-
-/* gen/setruid.c */
-int setruid __P((int ruid));
-
-/* gen/setuid.c */
-int setuid __P((int uid));
-
-/* sys/brk.c */
-void *brk __P((void *a));
-
-/* sys/chdir.c */
-int chdir __P((char *s));
-
-/* sys/chroot.c */
-int chroot __P((char *d));
-
-/* sys/_exit.c */
-void _exit __P((int s));
-
-/* sys/fork.c */
-int fork __P((void));
-
-/* sys/getegid.c */
-gid_t getegid __P((void));
-
-/* sys/geteuid.c */
-uid_t geteuid __P((void));
-
-/* sys/getgid.c */
-gid_t getgid __P((void));
-
-/* sys/getgroups.c */
-int getgroups __P((int n, int *g));
-
-/* sys/getpgrp.c */
-int getpgrp __P((int p));
-
-/* sys/getpid.c */
-int getpid __P((void));
-
-/* sys/getppid.c */
-int getppid __P((void));
-
-/* sys/getuid.c */
-uid_t getuid __P((void));
-
-/* sys/sbrk.c */
-void *sbrk __P((int i));
-
-/* sys/setgroups.c */
-int setgroups __P((int n, int *g));
-
-/* sys/setpgrp.c */
-int setpgrp __P((int g, int pg));
-
-/* sys/setregid.c */
-int setregid __P((int r, int e));
-
-/* sys/setreuid.c */
-int setreuid __P((int r, int e));
-
-/* sys/vfork.c */
-int vfork __P((void));
-#endif
-
-#endif
index bf0265b..968fa28 100644 (file)
@@ -1,6 +1,3 @@
-#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
@@ -182,7 +179,5 @@ char        *prcorequests[] = {
 #endif
 
 #ifdef KERNEL
-/*extern       struct protosw *pffindproto(), *pffindtype();*/
-#endif
-
+extern struct protosw *pffindproto(), *pffindtype();
 #endif
index 9ff92fb..88a8f75 100644 (file)
@@ -1,6 +1,3 @@
-#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
@@ -9,8 +6,8 @@
  *     @(#)ptrace.h    7.1 (Berkeley) 6/4/86
  */
 
-/*#ifndef _PTRACE_*/
-/*#define _PTRACE_*/
+#ifndef _PTRACE_
+#define _PTRACE_
 
 #define PT_TRACE_ME    0       /* child declares it's being traced */
 #define PT_READ_I      1       /* read word in child's I space */
 #define PT_KILL                8       /* kill the child process */
 #define PT_STEP                9       /* single step the child */
 
-/*#endif*/
-
-#ifndef KERNEL
-#ifndef __P
-#ifdef __STDC__
-#define __P(args) args
-#else
-#define __P(args) ()
-#endif
-#endif
-
-/* sys/ptrace.c */
-int ptrace __P((int r, int p, int *a, int d));
-#endif
-
 #endif
index b8903d6..429790c 100644 (file)
@@ -1,9 +1,3 @@
-#ifndef _SYS_QUOTA_H_
-#define _SYS_QUOTA_H_
-
-#include <sys/param.h>
-/*#include <sys/types.h> sys/param.h*/
-
 /*
  * Copyright (c) 1982, 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -43,7 +37,7 @@ struct quota {
 #if defined(KERNEL) && defined(QUOTA)
 struct quota *quota, *quotaNQUOTA;
 int    nquota;
-/*struct       quota *getquota(), *qfind();*/
+struct quota *getquota(), *qfind();
 #endif
 
 /*
@@ -119,7 +113,7 @@ struct      dquot {
 #if defined(KERNEL) && defined(QUOTA)
 struct dquot *dquot, *dquotNDQUOT;
 int    ndquot;
-/*struct       dquot *discquota(), *inoquota(), *dqalloc(), *dqp();*/
+struct dquot *discquota(), *inoquota(), *dqalloc(), *dqp();
 #endif
 
 /*
@@ -148,21 +142,3 @@ struct     dqwarn {
        u_char  dw_bwarn;
        u_char  dw_iwarn;
 };
-
-#ifndef KERNEL
-#ifndef __P
-#ifdef __STDC__
-#define __P(args) args
-#else
-#define __P(args) ()
-#endif
-#endif
-
-/* sys/quota.c */
-int quota __P((int c, int u, int a, void *ad));
-
-/* sys/setquota.c */
-int setquota __P((char *s, char *f));
-#endif
-
-#endif
index 1d56f62..1776012 100644 (file)
@@ -1,6 +1,3 @@
-#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
@@ -43,5 +40,3 @@
 #define        B_TYPEMASK      0xff
 #define        B_MAGICMASK     0xf0000000
 #define        B_DEVMAGIC      0xa0000000
-
-#endif
index ade4acc..16d50d7 100644 (file)
@@ -1,8 +1,3 @@
-#ifndef _SYS_RESOURCE_H_
-#define _SYS_RESOURCE_H_
-
-#include <sys/time.h>
-
 /*
  * Copyright (c) 1982, 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -67,33 +62,3 @@ struct rlimit {
        int     rlim_cur;               /* current (soft) limit */
        int     rlim_max;               /* maximum value for rlim_cur */
 };
-
-#ifndef KERNEL
-#ifndef __P
-#ifdef __STDC__
-#define __P(args) args
-#else
-#define __P(args) ()
-#endif
-#endif
-
-/* compat-4.1/nice.c */
-int nice __P((int incr));
-
-/* sys/getpriority.c */
-int getpriority __P((int w, int who));
-
-/* sys/getrlimit.c */
-int getrlimit __P((int res, struct rlimit *rip));
-
-/* sys/getrusage.c */
-int getrusage __P((int res, struct rusage *rip));
-
-/* sys/setpriority.c */
-int setpriority __P((int w, int who, int pri));
-
-/* sys/setrlimit.c */
-int setrlimit __P((int res, struct rlimit *rip));
-#endif
-
-#endif
index 2d97aa8..6810735 100644 (file)
@@ -1,8 +1,3 @@
-#ifndef _SYS_SEG_H_
-#define _SYS_SEG_H_
-
-#include <vax/pte.h>
-
 /*
  * Copyright (c) 1982, 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -17,5 +12,3 @@
 
 #define        RO      PG_URKR         /* access abilities */
 #define        RW      PG_UW
-
-#endif
index d4424cd..c861a51 100644 (file)
@@ -1,11 +1,4 @@
-#ifndef _SYS_SELECT_H_
-#define _SYS_SELECT_H_
-
-#include <strings.h>
 #include <sys/param.h>
-#include <sys/time.h>
-
-/*#include <sys/param.h>*/
 
 /* moved this from sys/types.h */
 /*
@@ -33,18 +26,3 @@ typedef      struct fd_set {
 #define        FD_CLR(n, p)    ((p)->fds_bits[(n)/NFDBITS] &= ~(1 << ((n) % NFDBITS)))
 #define        FD_ISSET(n, p)  ((p)->fds_bits[(n)/NFDBITS] & (1 << ((n) % NFDBITS)))
 #define FD_ZERO(p)     bzero((char *)(p), sizeof(*(p)))
-
-#ifndef KERNEL
-#ifndef __P
-#ifdef __STDC__
-#define __P(args) args
-#else
-#define __P(args) ()
-#endif
-#endif
-
-/* sys/select.c */
-int select __P((int n, fd_set *r, fd_set *w, fd_set *e, struct timeval *t));
-#endif
-
-#endif
index 469941b..3242faf 100644 (file)
@@ -1,6 +1,3 @@
-#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
@@ -9,7 +6,7 @@
  *     @(#)signal.h    7.1 (Berkeley) 6/4/86
  */
 
-/*#ifndef      NSIG*/
+#ifndef        NSIG
 #define NSIG   32
 
 #define        SIGHUP  1       /* hangup */
 #define SIGUSR2 31     /* user defined signal 2 */
 
 #ifndef KERNEL
-/*void (*signal())();*/
+void   (*signal())();
 #endif
 
 /*
  * Signal vector "template" used in sigvec call.
  */
-
-#ifndef __P
-#ifdef __STDC__
-#define __P(args) args
-#else
-#define __P(args) ()
-#endif
-#endif
-
-struct sigcontext; /* forward reference for sv_handler below (in ANSI case) */
-
 struct sigvec {
-       void    (*sv_handler) __P((int sig, int code, struct sigcontext *scp)); /* signal handler */
+       void    (*sv_handler)();        /* signal handler */
        int     sv_mask;                /* signal mask to apply */
        int     sv_flags;               /* see signal options below */
 };
@@ -111,55 +97,18 @@ struct     sigcontext {
        int     sc_ps;                  /* psl to restore */
 };
 
-#define        BADSIG          (void (*) __P((int sig)))-1
-#define        SIG_DFL         (void (*) __P((int sig)))0
-#define        SIG_IGN         (void (*) __P((int sig)))1
+#define        BADSIG          (void (*)())-1
+#define        SIG_DFL         (void (*)())0
+#define        SIG_IGN         (void (*)())1
 
 #ifdef KERNEL
-#define        SIG_CATCH       (void (*) __P((int sig)))2
-#define        SIG_HOLD        (void (*) __P((int sig)))3
+#define        SIG_CATCH       (void (*)())2
+#define        SIG_HOLD        (void (*)())3
+#endif
 #endif
-/*#endif*/
 
 /*
  * Macro for converting signal number to a mask suitable for
  * sigblock().
  */
 #define sigmask(m)     (1 << ((m)-1))
-
-#ifndef KERNEL
-/* gen/psignal.c */
-int psignal __P((unsigned sig, char *s));
-
-/* gen/siginterrupt.c */
-int siginterrupt __P((int sig, int flag));
-
-/* gen/signal.c */
-void (*signal __P((int s, void (*a)(int sig)))) __P((int sig));
-
-/* sys/kill.c */
-int kill __P((int p, int s));
-
-/* sys/killpg.c */
-int killpg __P((int pg, int s));
-
-/* sys/sigblock.c */
-int sigblock __P((int m));
-
-/* sys/sigpause.c */
-void sigpause __P((int m));
-
-/* sys/sigreturn.c */
-int sigreturn __P((struct sigcontext *scp));
-
-/* sys/sigsetmask.c */
-int sigsetmask __P((int m));
-
-/* sys/sigstack.c */
-int sigstack __P((struct sigstack *ss, struct sigstack *oss));
-
-/* sys/sigvec.c */
-int sigvec __P((int c, struct sigvec *f, struct sigvec *m));
-#endif
-
-#endif
index 0f41a77..6883e8c 100644 (file)
@@ -1,8 +1,3 @@
-#ifndef _SYS_SOCKET_H_
-#define _SYS_SOCKET_H_
-
-#include <sys/types.h>
-
 /*
  * Copyright (c) 1982,1985, 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -148,63 +143,3 @@ struct msghdr {
 #define        MSG_DONTROUTE   0x4             /* send without using routing tables */
 
 #define        MSG_MAXIOVLEN   16
-
-#ifndef KERNEL
-#ifndef __P
-#ifdef __STDC__
-#define __P(args) args
-#else
-#define __P(args) ()
-#endif
-#endif
-
-/* sys/accept.c */
-int accept __P((int s, struct sockaddr *a, int *l));
-
-/* sys/bind.c */
-int bind __P((int s, struct sockaddr *n, int l));
-
-/* sys/connect.c */
-int connect __P((int s, struct sockaddr *n, int l));
-
-/* sys/getpeername.c */
-int getpeername __P((int s, struct sockaddr *n, int *l));
-
-/* sys/getsockname.c */
-int getsockname __P((int s, struct sockaddr *name, int *namelen));
-
-/* sys/getsockopt.c */
-int getsockopt __P((int s, int level, int opt, void *buf, int *len));
-
-/* sys/listen.c */
-int listen __P((int s, int b));
-
-/* sys/recv.c */
-int recv __P((int s, void *b, int l, int f));
-
-/* sys/recvfrom.c */
-int recvfrom __P((int s, void *b, int l, int f, struct sockaddr *fr, int *fl));
-
-/* sys/recvmsg.c */
-int recvmsg __P((int s, struct msghdr m[], int f));
-
-/* sys/send.c */
-int send __P((int s, void *m, int l, int f));
-
-/* sys/sendmsg.c */
-int sendmsg __P((int s, struct msghdr m[], int l));
-
-/* sys/sendto.c */
-int sendto __P((int s, void *m, int l, int f, struct sockaddr *t, int tl));
-
-/* sys/setsockopt.c */
-int setsockopt __P((int s, int level, int opt, void *buf, int len));
-
-/* sys/socket.c */
-int socket __P((int a, int t, int p));
-
-/* sys/socketpair.c */
-int socketpair __P((int d, int t, int p, int s[2]));
-#endif
-
-#endif
index c3e844b..90779c2 100644 (file)
@@ -1,12 +1,3 @@
-#ifndef _SYS_SOCKETVAR_H_
-#define _SYS_SOCKETVAR_H_
-
-#include <sys/mbuf.h>
-/*#include <sys/param.h> sys/mbuf.h*/
-#include <sys/protosw.h>
-#include <sys/time.h>
-/*#include <sys/types.h> sys/mbuf.h*/
-
 /*
  * Copyright (c) 1982, 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -86,6 +77,7 @@ struct socket {
 #define        SS_NBIO                 0x100   /* non-blocking ops */
 #define        SS_ASYNC                0x200   /* async i/o notify */
 
+
 /*
  * Macros for sockets and socket buffering.
  */
@@ -150,7 +142,5 @@ struct socket {
 #define        sowwakeup(so)   sowakeup((so), &(so)->so_snd)
 
 #ifdef KERNEL
-/*struct       socket *sonewconn();*/
-#endif
-
+struct socket *sonewconn();
 #endif
index cd12645..d5dfbcd 100644 (file)
@@ -1,8 +1,3 @@
-#ifndef _SYS_STAT_H_
-#define _SYS_STAT_H_
-
-#include <sys/types.h>
-
 /*
  * Copyright (c) 1982, 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -11,7 +6,8 @@
  *     @(#)stat.h      7.1 (Berkeley) 6/4/86
  */
 
-struct stat {
+struct stat
+{
        dev_t   st_dev;
        ino_t   st_ino;
        unsigned short st_mode;
@@ -44,39 +40,3 @@ struct       stat {
 #define        S_IREAD 0000400         /* read permission, owner */
 #define        S_IWRITE 0000200        /* write permission, owner */
 #define        S_IEXEC 0000100         /* execute/search permission, owner */
-
-#ifndef KERNEL
-#ifndef __P
-#ifdef __STDC__
-#define __P(args) args
-#else
-#define __P(args) ()
-#endif
-#endif
-
-/* sys/chmod.c */
-int chmod __P((char *s, int m));
-
-/* sys/fchmod.c */
-int fchmod __P((int f, int m));
-
-/* sys/fstat.c */
-int fstat __P((int f, struct stat *b));
-
-/* sys/lstat.c */
-int lstat __P((char *s, struct stat *b));
-
-/* sys/mkdir.c */
-int mkdir __P((char *p, int m));
-
-/* sys/mknod.c */
-int mknod __P((char *n, int m, int a));
-
-/* sys/stat.c */
-int stat __P((char *s, struct stat *b));
-
-/* sys/umask.c */
-int umask __P((int n));
-#endif
-
-#endif
index 0022051..5d2c0b9 100644 (file)
@@ -1,6 +1,3 @@
-#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
 #define        LOG_ODELAY      0x04    /* delay open until syslog() is called */
 #define LOG_NDELAY     0x08    /* don't delay open */
 #define LOG_NOWAIT     0x10    /* if forking to log on console, don't wait() */
-
-#ifndef KERNEL
-#ifndef __P
-#ifdef __STDC__
-#define __P(args) args
-#else
-#define __P(args) ()
-#endif
-#endif
-
-/* gen/syslog.c */
-void syslog __P((int pri, char *fmt, ...));
-void openlog __P((char *ident, int logstat, int logfac));
-void closelog __P((void));
-int setlogmask __P((int pmask));
-#endif
-
-#endif
index a300d06..bcd7b5d 100644 (file)
@@ -1,8 +1,3 @@
-#ifndef _SYS_SYSTM_H_
-#define _SYS_SYSTM_H_
-
-#include <sys/types.h>
-
 /*
  * Copyright (c) 1982, 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -61,17 +56,18 @@ extern      int icode[];            /* user init code */
 extern int szicode;            /* its size */
 #endif
 
-/*daddr_t      bmap();*/
-/*caddr_t      calloc();*/
-/*int  memall();*/
-/*int  vmemall();*/
-/*caddr_t      wmemall();*/
-/*swblk_t      vtod();*/
+daddr_t        bmap();
+caddr_t        calloc();
+int    memall();
+int    vmemall();
+caddr_t        wmemall();
+swblk_t        vtod();
 
 /*
  * Structure of the system-entry table
  */
-extern struct sysent {
+extern struct sysent
+{
        int     sy_narg;                /* total number of arguments */
        int     (*sy_call)();           /* handler */
 } sysent[];
@@ -87,5 +83,3 @@ extern        char vmmap[];           /* poor name! */
 /* casts to keep lint happy */
 #define        insque(q,p)     _insque((caddr_t)q,(caddr_t)p)
 #define        remque(q)       _remque((caddr_t)q)
-
-#endif
index 9ba4fd0..211678d 100644 (file)
@@ -1,8 +1,3 @@
-#ifndef _SYS_TABLET_H_
-#define _SYS_TABLET_H_
-
-#include <sys/ioctl.h>
-
 /*
  * Copyright (c) 1985, 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
  *     @(#)tablet.h    7.1 (Berkeley) 6/4/86
  */
 
-/*#ifndef _TABLET_*/
+#ifndef _TABLET_
 /*
  * Tablet line discipline.
  */
 #ifdef KERNEL
 #include "../h/ioctl.h"
 #else
-/*#include <sys/ioctl.h>*/
+#include <sys/ioctl.h>
 #endif
 
 /*
@@ -69,6 +64,4 @@ struct        polpos {
 #define                TBHDGHIRES      0x0006          /* hdg-1111b, high res */
 #define BIOSTYPE       _IOW(b, 3, int)         /* set tablet type */
 #define BIOGTYPE       _IOR(b, 4, int)         /* get tablet type*/
-/*#endif*/
-
 #endif
index da09ed7..ac0594a 100644 (file)
@@ -1,8 +1,3 @@
-#ifndef _SYS_TEXT_H_
-#define _SYS_TEXT_H_
-
-#include <sys/types.h>
-
 /*
  * Copyright (c) 1982, 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -19,7 +14,8 @@
  */
 #define        NXDAD   12              /* param.h:MAXTSIZ / vmparam.h:DMTEXT */
 
-struct text {
+struct text
+{
        struct  text *x_forw;   /* forward link in free list */
        struct  text **x_back;  /* backward link in free list */
        swblk_t x_daddr[NXDAD]; /* disk addresses of dmtext-page segments */
@@ -63,5 +59,3 @@ struct xstats {
        u_long  free_cache;             /*      placed in cache */
        u_long  free_cacheswap;         /*      swapped out to place in cache */
 };
-
-#endif
index 5d2bb02..f81d40b 100644 (file)
@@ -1,8 +1,3 @@
-#ifndef _SYS_TIME_H_
-#define _SYS_TIME_H_
-
-/*#include <sys/types.h> time.h*/
-
 /*
  * Copyright (c) 1982, 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -59,51 +54,3 @@ struct       itimerval {
 #ifndef KERNEL
 #include <time.h>
 #endif
-
-#ifndef KERNEL
-#ifndef __P
-#ifdef __STDC__
-#define __P(args) args
-#else
-#define __P(args) ()
-#endif
-#endif
-
-/* compat-4.1/utime.c */
-int utime __P((char *name, int otv[]));
-
-/* gen/alarm.c */
-int alarm __P((int secs));
-
-/* gen/sleep.c */
-void sleep __P((unsigned n));
-
-/* gen/time.c */
-long time __P((time_t *t));
-
-/* gen/ualarm.c */
-unsigned ualarm __P((register unsigned usecs, register unsigned reload));
-
-/* gen/usleep.c */
-void usleep __P((unsigned n));
-
-/* sys/adjtime.c */
-int adjtime __P((struct timeval *delta, struct timeval *odelta));
-
-/* sys/getitimer.c */
-int getitimer __P((int w, struct itimerval *v));
-
-/* sys/gettimeofday.c */
-int gettimeofday __P((struct timeval *t, struct timezone *z));
-
-/* sys/setitimer.c */
-int setitimer __P((int w, struct itimerval *v, struct itimerval *ov));
-
-/* sys/settimeofday.c */
-int settimeofday __P((struct timeval *t, struct timezone *z));
-
-/* sys/utimes.c */
-int utimes __P((char *f, struct timeval t[2]));
-#endif
-
-#endif
index ccac933..47ee0e2 100644 (file)
@@ -1,8 +1,3 @@
-#ifndef _SYS_TIMEB_H_
-#define _SYS_TIMEB_H_
-
-#include <sys/types.h>
-
 /*
  * Copyright (c) 1982, 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
 /*
  * Structure returned by ftime system call
  */
-struct timeb {
+struct timeb
+{
        time_t  time;
        unsigned short millitm;
        short   timezone;
        short   dstflag;
 };
-
-#ifndef KERNEL
-#ifndef __P
-#ifdef __STDC__
-#define __P(args) args
-#else
-#define __P(args) ()
-#endif
-#endif
-
-/* compat-4.1/ftime.c */
-int ftime __P((register struct timeb *tp));
-#endif
-
-#endif
index 9ba63fc..546e7d1 100644 (file)
@@ -1,8 +1,3 @@
-#ifndef _SYS_TIMES_H_
-#define _SYS_TIMES_H_
-
-#include <sys/types.h>
-
 /*
  * Copyright (c) 1982, 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -20,18 +15,3 @@ struct tms {
        time_t  tms_cutime;             /* user time, children */
        time_t  tms_cstime;             /* system time, children */
 };
-
-#ifndef KERNEL
-#ifndef __P
-#ifdef __STDC__
-#define __P(args) args
-#else
-#define __P(args) ()
-#endif
-#endif
-
-/* compat-4.1/times.c */
-int times __P((register struct tms *tmsp));
-#endif
-
-#endif
index 853b44d..2e3e47f 100644 (file)
@@ -1,6 +1,3 @@
-#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
@@ -87,5 +84,3 @@ int   tracewhich;
 #define        trace(a,b,b)    ;
 #endif
 #endif
-
-#endif
index 4e5e58b..fe4ca20 100644 (file)
@@ -1,10 +1,3 @@
-#ifndef _SYS_TTY_H_
-#define _SYS_TTY_H_
-
-#include <sys/ioctl.h>
-/*#include <sys/ttychars.h> sys/ioctl.h*/
-/*#include <sys/types.h> sys/ioctl.h*/
-
 /*
  * Copyright (c) 1982, 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -17,8 +10,8 @@
 #include "ttychars.h"
 #include "ttydev.h"
 #else
-/*#include <sys/ttychars.h>*/
-/*#include <sys/ttydev.h> sys/ioctl.h*/
+#include <sys/ttychars.h>
+#include <sys/ttydev.h>
 #endif
 
 /*
@@ -144,5 +137,3 @@ extern      struct ttychars ttydefaults;
 #define        TAB             4
 #define        VTAB            5
 #define        RETURN          6
-
-#endif
index 551e91c..feb26a1 100644 (file)
@@ -1,6 +1,3 @@
-#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
@@ -13,8 +10,8 @@
  * User visible structures and constants
  * related to terminal handling.
  */
-/*#ifndef _TTYCHARS_*/
-/*#define      _TTYCHARS_*/
+#ifndef _TTYCHARS_
+#define        _TTYCHARS_
 struct ttychars {
        char    tc_erase;       /* erase last character */
        char    tc_kill;        /* erase entire line */
@@ -50,6 +47,4 @@ struct ttychars {
 #define        CFLUSH  CTRL(o)
 #define        CWERASE CTRL(w)
 #define        CLNEXT  CTRL(v)
-/*#endif*/
-
 #endif
index eea7e5c..0ccd9a3 100644 (file)
@@ -1,6 +1,3 @@
-#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
@@ -12,8 +9,8 @@
 /*
  * Terminal definitions related to underlying hardware.
  */
-/*#ifndef _TTYDEV_*/
-/*#define      _TTYDEV_*/
+#ifndef _TTYDEV_
+#define        _TTYDEV_
 
 /*
  * Speeds
@@ -51,6 +48,4 @@
 #define        DMBIC           2
 #define        DMGET           3
 #endif
-/*#endif*/
-
 #endif
index 612ebbf..37498ac 100644 (file)
@@ -1,6 +1,3 @@
-#ifndef _SYS_TYPES_H_
-#define _SYS_TYPES_H_
-
 /*
  * Copyright (c) 1982, 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -9,8 +6,8 @@
  *     @(#)types.h     7.1 (Berkeley) 6/4/86
  */
 
-/*#ifndef _TYPES_*/
-/*#define      _TYPES_*/
+#ifndef _TYPES_
+#define        _TYPES_
 /*
  * Basic system types and major/minor device constructing/busting macros.
  */
@@ -76,6 +73,4 @@ typedef       u_short gid_t;
 /*#define      FD_ISSET(n, p)  ((p)->fds_bits[(n)/NFDBITS] & (1 << ((n) % NFDBITS)))*/
 /*#define FD_ZERO(p)   bzero((char *)(p), sizeof(*(p)))*/
 
-/*#endif*/
-
 #endif
index bc382e4..5efd22b 100644 (file)
@@ -1,8 +1,3 @@
-#ifndef _SYS_UIO_H_
-#define _SYS_UIO_H_
-
-#include <sys/types.h>
-
 /*
  * Copyright (c) 1982, 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -11,8 +6,8 @@
  *     @(#)uio.h       7.1 (Berkeley) 6/4/86
  */
 
-/*#ifndef _UIO_*/
-/*#define      _UIO_*/
+#ifndef _UIO_
+#define        _UIO_
 
 struct iovec {
        caddr_t iov_base;
@@ -35,22 +30,4 @@ enum uio_rw { UIO_READ, UIO_WRITE };
 #define UIO_USERSPACE  0               /* from user data space */
 #define UIO_SYSSPACE   1               /* from system space */
 #define UIO_USERISPACE 2               /* from user I space */
-/*#endif*/
-
-#ifndef KERNEL
-#ifndef __P
-#ifdef __STDC__
-#define __P(args) args
-#else
-#define __P(args) ()
-#endif
-#endif
-
-/* sys/readv.c */
-int readv __P((int d, struct iovec *v, int l));
-
-/* sys/writev.c */
-int writev __P((int f, struct iovec *v, int l));
-#endif
-
 #endif
index 7d1dce3..9b7b6ee 100644 (file)
@@ -1,6 +1,3 @@
-#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
@@ -18,7 +15,5 @@ struct        sockaddr_un {
 };
 
 #ifdef KERNEL
-/*int  unp_discard();*/
-#endif
-
+int    unp_discard();
 #endif
index 39954a3..504b48d 100644 (file)
@@ -1,8 +1,3 @@
-#ifndef _SYS_UNPCB_H_
-#define _SYS_UNPCB_H_
-
-#include <sys/types.h>
-
 /*
  * Copyright (c) 1982, 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -49,5 +44,3 @@ struct        unpcb {
 };
 
 #define        sotounpcb(so)   ((struct unpcb *)((so)->so_pcb))
-
-#endif
index 66ec4af..e7cc971 100644 (file)
@@ -1,15 +1,3 @@
-#ifndef _SYS_USER_H_
-#define _SYS_USER_H_
-
-#include <sys/dmap.h>
-#include <sys/namei.h>
-/*#include <sys/param.h> sys/namei.h*/
-#include <sys/resource.h>
-#include <sys/signal.h>
-/*#include <sys/time.h> sys/resource.h*/
-/*#include <sys/types.h> sys/dmap.h*/
-#include <vax/pcb.h>
-
 /*
  * Copyright (c) 1982, 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
 #include "namei.h"
 #else
 #include <machine/pcb.h>
-/*#include <sys/dmap.h>*/
-/*#include <sys/time.h>*/
-/*#include <sys/resource.h>*/
-/*#include <sys/namei.h>*/
+#include <sys/dmap.h>
+#include <sys/time.h>
+#include <sys/resource.h>
+#include <sys/namei.h>
 #endif
 
 /*
@@ -157,5 +145,3 @@ extern      struct user xswap2utl;
 extern struct user pushutl;
 extern struct user vfutl;
 #endif
-
-#endif
index ea748b0..81650cf 100644 (file)
@@ -1,6 +1,3 @@
-#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
@@ -23,5 +20,3 @@
 #define        VA_ANOM 1
 #define        VA_SEQL 2
 #define        VA_FLUSH 3
-
-#endif
index 7e8391b..58d0255 100644 (file)
@@ -1,8 +1,3 @@
-#ifndef _SYS_VCMD_H_
-#define _SYS_VCMD_H_
-
-#include <sys/ioctl.h>
-
 /*
  * Copyright (c) 1982, 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -15,7 +10,7 @@
 #ifdef KERNEL
 #include "ioctl.h"
 #else
-/*#include <sys/ioctl.h>*/
+#include <sys/ioctl.h>
 #endif
 #endif
 
@@ -25,5 +20,3 @@
 
 #define        VGETSTATE       _IOR(v, 0, int)
 #define        VSETSTATE       _IOW(v, 1, int)
-
-#endif
index eb25a7b..25b829a 100644 (file)
@@ -1,6 +1,3 @@
-#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
 #define        NLIMITS         6
 
 #define        INFINITY        0x7fffffff
-
-#ifndef KERNEL
-#ifndef __P
-#ifdef __STDC__
-#define __P(args) args
-#else
-#define __P(args) ()
-#endif
-#endif
-
-/* compat-4.1/vlimit.c */
-int vlimit __P((int limit, int value));
-#endif
-
-#endif
index 76c7d8d..441e4d1 100644 (file)
@@ -1,6 +1,3 @@
-#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
@@ -25,5 +22,3 @@
 #include <sys/vmmeter.h>
 #include <sys/vmsystm.h>
 #endif
-
-#endif
index 01c5cf4..6581ea6 100644 (file)
@@ -1,15 +1,3 @@
-#ifndef _SYS_VMMAC_H_
-#define _SYS_VMMAC_H_
-
-/*#include <sys/param.h> vax/vmparam.h*/
-#include <sys/time.h>
-/*#include <sys/types.h> sys/param.h*/
-/*#include <vax/machparam.h> sys/param.h*/
-/*#include <vax/mtpr.h> vax/pcb.h*/
-#include <vax/pcb.h>
-/*#include <vax/pte.h> sys/param.h*/
-#include <vax/vmparam.h>
-
 /*
  * Copyright (c) 1982, 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -74,7 +62,7 @@
        (((v) < (p)->p_tsize + (p)->p_dsize) ? ((p)->p_p0br + (v)) : \
        ((p)->p_addr - (BTOPUSRSTACK - (v))))
 #ifdef notdef
-/*struct       pte *vtopte();*/
+struct pte *vtopte();
 #endif
 
 /* Bytes to pages without rounding, and back */
 /* moved this from sys/vmmac.h to avoid a circular dependency */
 #define        mapin(pte, v, pfnum, count, prot) \
        (*(int *)(pte) = (pfnum) | (prot), mtpr(TBIS, ptob(v)))
-
-#endif
index 29d80fe..9a04350 100644 (file)
@@ -1,6 +1,3 @@
-#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
@@ -12,7 +9,8 @@
 /*
  * Virtual memory related instrumentation
  */
-struct vmmeter {
+struct vmmeter
+{
 #define        v_first v_swtch
        unsigned v_swtch;       /* context switches */
        unsigned v_trap;        /* calls to trap */
@@ -52,7 +50,8 @@ struct        vmmeter cnt, rate, sum;
 #endif
 
 /* systemwide totals computed every five seconds */
-struct vmtotal {
+struct vmtotal
+{
        short   t_rq;           /* length of the run queue */
        short   t_dw;           /* jobs in ``disk wait'' (neg priority) */
        short   t_pw;           /* jobs in page wait */
@@ -109,5 +108,3 @@ int rres;
 unsigned rectime;              /* accumulator for reclaim times */
 unsigned pgintime;             /* accumulator for page in times */
 #endif
-
-#endif
index ed851b2..deecc6a 100644 (file)
@@ -1,6 +1,3 @@
-#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
@@ -25,5 +22,3 @@ int   klin;
 int    kltxt;
 int    klout;
 #endif
-
-#endif
index 2e1b69c..972a585 100644 (file)
@@ -1,6 +1,3 @@
-#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
@@ -36,7 +33,8 @@ int   fastscan;               /* fastest scan rate, clusters/second */
 /*
  * Fork/vfork accounting.
  */
-struct forkstat {
+struct forkstat
+{
        int     cntfork;
        int     cntvfork;
        int     sizfork;
@@ -49,7 +47,8 @@ struct        forkstat forkstat;
 /*
  * Swap kind accounting.
  */
-struct swptstat {
+struct swptstat
+{
        int     pteasy;         /* easy pt swaps */
        int     ptexpand;       /* pt expansion swaps */
        int     ptshrink;       /* pt shrinking swaps */
@@ -58,5 +57,3 @@ struct        swptstat {
 #ifdef KERNEL
 struct swptstat swptstat;
 #endif
-
-#endif
index 0c0d677..7a6fd1d 100644 (file)
@@ -1,9 +1,3 @@
-#ifndef _SYS_VSIO_H_
-#define _SYS_VSIO_H_
-
-#include <sys/ioctl.h>
-/*#include <sys/types.h> sys/ioctl.h*/
-
 /* @(#)vsio.h  7.1 (MIT) 6/4/86 */
  /****************************************************************************
  *                                                                         *
@@ -53,6 +47,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 */
 
@@ -122,5 +117,3 @@ typedef struct _vsIoAddr {
        vsBox    mbox;                  /* atomic read/write */
 } vsIoAddr;
 typedef vsIoAddr *vsIoAddrAddr;
-
-#endif
index 112a670..f970bd3 100644 (file)
@@ -1,6 +1,3 @@
-#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
@@ -31,18 +28,3 @@ struct vtimes {
 
 #ifdef KERNEL
 #endif
-
-#ifndef KERNEL
-#ifndef __P
-#ifdef __STDC__
-#define __P(args) args
-#else
-#define __P(args) ()
-#endif
-#endif
-
-/* compat-4.1/vtimes.c */
-int vtimes __P((register struct vtimes *par, register struct vtimes *chi));
-#endif
-
-#endif
index 748182f..ff44983 100644 (file)
@@ -1,8 +1,3 @@
-#ifndef _SYS_WAIT_H_
-#define _SYS_WAIT_H_
-
-#include <sys/resource.h>
-
 /*
  * Copyright (c) 1982, 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -51,6 +46,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 */
 
 /*
@@ -68,21 +64,3 @@ union wait   {
 #define WIFSTOPPED(x)  ((x).w_stopval == WSTOPPED)
 #define WIFSIGNALED(x) ((x).w_stopval != WSTOPPED && (x).w_termsig != 0)
 #define WIFEXITED(x)   ((x).w_stopval != WSTOPPED && (x).w_termsig == 0)
-
-#ifndef KERNEL
-#ifndef __P
-#ifdef __STDC__
-#define __P(args) args
-#else
-#define __P(args) ()
-#endif
-#endif
-
-/* sys/wait3.c */
-int wait3 __P((int *s, int o, struct rusage *r));
-
-/* sys/wait.c */
-int wait __P((int *s));
-#endif
-
-#endif
index 7a00375..676507b 100644 (file)
@@ -1,8 +1,3 @@
-#ifndef _NET_AF_H_
-#define _NET_AF_H_
-
-#include <sys/types.h>
-
 /*
  * Copyright (c) 1980, 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -38,5 +33,3 @@ struct afhash {
 #ifdef KERNEL
 struct afswitch afswitch[];
 #endif
-
-#endif
index e39fdcd..5a0cc23 100644 (file)
@@ -1,11 +1,3 @@
-#ifndef _NET_IF_H_
-#define _NET_IF_H_
-
-#include <net/if_arp.h>
-#include <sys/mbuf.h>
-/*#include <sys/socket.h> net/if_arp.h*/
-/*#include <sys/types.h> net/if_arp.h*/
-
 /*
  * Copyright (c) 1982, 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -215,10 +207,8 @@ struct     ifconf {
 #include "../net/if_arp.h"
 struct ifqueue rawintrq;               /* raw packet input queue */
 struct ifnet *ifnet;
-/*struct       ifaddr *ifa_ifwithaddr(), *ifa_ifwithnet();*/
-/*struct       ifaddr *ifa_ifwithdstaddr();*/
-#else
-/*#include <net/if_arp.h>*/
-#endif
-
-#endif
+struct ifaddr *ifa_ifwithaddr(), *ifa_ifwithnet();
+struct ifaddr *ifa_ifwithdstaddr();
+#else KERNEL
+#include <net/if_arp.h>
+#endif KERNEL
index efa09b9..4701f41 100644 (file)
@@ -1,9 +1,3 @@
-#ifndef _NET_IF_ARP_H_
-#define _NET_IF_ARP_H_
-
-#include <sys/socket.h>
-/*#include <sys/types.h> sys/socket.h*/
-
 /*
  * Copyright (c) 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -55,5 +49,3 @@ struct arpreq {
 #define        ATF_PERM        0x04    /* permanent entry */
 #define        ATF_PUBL        0x08    /* publish entry (respond for other host) */
 #define        ATF_USETRAILERS 0x10    /* has requested trailers */
-
-#endif
index 77d190d..6691e5f 100644 (file)
@@ -1,8 +1,3 @@
-#ifndef _NET_NETISR_H_
-#define _NET_NETISR_H_
-
-#include <vax/mtpr.h>
-
 /*
  * Copyright (c) 1980, 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -41,5 +36,3 @@
 int    netisr;                         /* scheduling bits for network */
 #endif
 #endif
-
-#endif
index ec7a9c7..3b8912a 100644 (file)
@@ -1,10 +1,3 @@
-#ifndef _NET_RAW_CB_H_
-#define _NET_RAW_CB_H_
-
-#include <net/route.h>
-/*#include <sys/socket.h> net/route.h*/
-/*#include <sys/types.h> net/route.h*/
-
 /*
  * Copyright (c) 1980, 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -60,5 +53,3 @@ struct raw_header {
 #ifdef KERNEL
 struct rawcb rawcb;                    /* head of list */
 #endif
-
-#endif
index 27c7597..0fc82da 100644 (file)
@@ -1,9 +1,3 @@
-#ifndef _NET_ROUTE_H_
-#define _NET_ROUTE_H_
-
-#include <sys/socket.h>
-/*#include <sys/types.h> sys/socket.h*/
-
 /*
  * Copyright (c) 1980, 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -84,5 +78,3 @@ struct        mbuf *rthost[RTHASHSIZ];
 struct mbuf *rtnet[RTHASHSIZ];
 struct rtstat  rtstat;
 #endif
-
-#endif
index 90464fb..32535ac 100644 (file)
@@ -1,9 +1,3 @@
-#ifndef _NETIMP_IF_IMP_H_
-#define _NETIMP_IF_IMP_H_
-
-#include <sys/param.h>
-/*#include <sys/types.h> sys/param.h*/
-
 /*
  * Copyright (c) 1982, 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -164,5 +158,3 @@ char *impleaders[IMPTYPE_READY+1] = {
        "NOTIFY", "TRYING", "READY"
 };
 #endif
-
-#endif
index 3104760..3b7bf4b 100644 (file)
@@ -1,12 +1,3 @@
-#ifndef _NETIMP_IF_IMPHOST_H_
-#define _NETIMP_IF_IMPHOST_H_
-
-#include <netdb.h>
-#include <netimp/if_imp.h>
-#include <netinet/in.h>
-#include <sys/mbuf.h>
-/*#include <sys/types.h> netimp/if_imp.h*/
-
 /*
  * Copyright (c) 1982, 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -94,9 +85,7 @@ struct hmbuf {
 };
 
 #ifdef KERNEL
-/*struct host *hostlookup();*/
-/*struct host *hostenter();*/
-/*struct mbuf *hostdeque();*/
-#endif
-
+struct host *hostlookup();
+struct host *hostenter();
+struct mbuf *hostdeque();
 #endif
index 2c50dc5..482615a 100644 (file)
@@ -1,8 +1,3 @@
-#ifndef _NETINET_ICMP_VAR_H_
-#define _NETINET_ICMP_VAR_H_
-
-#include <netinet/ip_icmp.h>
-
 /*
  * Copyright (c) 1982, 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -33,5 +28,3 @@ struct        icmpstat {
 #ifdef KERNEL
 struct icmpstat icmpstat;
 #endif
-
-#endif
index 401b72c..20167e8 100644 (file)
@@ -1,11 +1,3 @@
-#ifndef _NETINET_IF_ETHER_H_
-#define _NETINET_IF_ETHER_H_
-
-#include <net/if.h>
-/*#include <net/if_arp.h> net/if.h*/
-#include <netinet/in.h>
-/*#include <sys/types.h> net/if.h*/
-
 /*
  * Copyright (c) 1982, 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -58,6 +50,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
@@ -82,8 +75,6 @@ struct        arptab {
 
 #ifdef KERNEL
 u_char etherbroadcastaddr[6];
-/*struct       arptab *arptnew();*/
-/*char *ether_sprintf();*/
-#endif
-
+struct arptab *arptnew();
+char *ether_sprintf();
 #endif
index 1ea1666..1921022 100644 (file)
@@ -1,10 +1,3 @@
-#ifndef _NETINET_IN_H_
-#define _NETINET_IN_H_
-
-#include <sys/domain.h>
-#include <sys/protosw.h>
-#include <sys/types.h>
-
 /*
  * Copyright (c) 1982, 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -33,6 +26,7 @@
 #define        IPPROTO_RAW             255             /* raw IP packet */
 #define        IPPROTO_MAX             256
 
+
 /*
  * Ports < IPPORT_RESERVED are reserved for
  * privileged processes (e.g. root).
@@ -99,40 +93,12 @@ struct sockaddr_in {
 /*
  * Functions for number representation conversion.
  */
-/*u_short      ntohs(), htons();*/
-/*u_long       ntohl(), htonl();*/
+u_short        ntohs(), htons();
+u_long ntohl(), htonl();
 
 #ifdef KERNEL
 extern struct domain inetdomain;
 extern struct protosw inetsw[];
-/*struct       in_addr in_makeaddr();*/
-/*u_long       in_netof(), in_lnaof();*/
-#endif
-
-#ifndef KERNEL
-#ifndef __P
-#ifdef __STDC__
-#define __P(args) args
-#else
-#define __P(args) ()
-#endif
-#endif
-
-/* these should not be here, as they have moved to net.h to be shared with */
-/* netns/ns.h, but I've duplicated them here so that older programs won't */
-/* silently fail due to truncating the return value of ntohl() and htonl() */
-
-/* net/htonl.c */
-u_long htonl __P((u_long hostlong));
-
-/* net/htons.c */
-u_short htons __P((int hostshort));
-
-/* net/ntohl.c */
-u_long ntohl __P((u_long netlong));
-
-/* net/ntohs.c */
-u_short ntohs __P((int netshort));
-#endif
-
+struct in_addr in_makeaddr();
+u_long in_netof(), in_lnaof();
 #endif
index 534a66d..bba0e0f 100644 (file)
@@ -1,10 +1,3 @@
-#ifndef _NETINET_IN_PCB_H_
-#define _NETINET_IN_PCB_H_
-
-#include <net/route.h>
-#include <netinet/in.h>
-/*#include <sys/types.h> net/route.h*/
-
 /*
  * Copyright (c) 1982, 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -41,7 +34,5 @@ struct inpcb {
 #define        sotoinpcb(so)   ((struct inpcb *)(so)->so_pcb)
 
 #ifdef KERNEL
-/*struct       inpcb *in_pcblookup();*/
-#endif
-
+struct inpcb *in_pcblookup();
 #endif
index 60d7a12..1825d88 100644 (file)
@@ -1,8 +1,3 @@
-#ifndef _NETINET_IN_SYSTM_H_
-#define _NETINET_IN_SYSTM_H_
-
-#include <sys/types.h>
-
 /*
  * Copyright (c) 1982, 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -30,7 +25,5 @@ typedef u_long        n_long;                 /* long as received from the net */
 typedef        u_long  n_time;                 /* ms since 00:00 GMT, byte rev */
 
 #ifdef KERNEL
-/*n_time       iptime();*/
-#endif
-
+n_time iptime();
 #endif
index 1f9e12d..9225938 100644 (file)
@@ -1,10 +1,3 @@
-#ifndef _NETINET_IN_VAR_H_
-#define _NETINET_IN_VAR_H_
-
-#include <net/if.h>
-#include <netinet/in.h>
-/*#include <sys/types.h> net/if.h*/
-
 /*
  * Copyright (c) 1985, 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -45,8 +38,6 @@ struct in_ifaddr {
 
 #ifdef KERNEL
 struct in_ifaddr *in_ifaddr;
-/*struct       in_ifaddr *in_iaonnetof();*/
+struct in_ifaddr *in_iaonnetof();
 struct ifqueue ipintrq;                /* ip packet input queue */
 #endif
-
-#endif
index fbf53d8..809778c 100644 (file)
@@ -1,10 +1,3 @@
-#ifndef _NETINET_IP_H_
-#define _NETINET_IP_H_
-
-#include <netinet/in.h>
-#include <netinet/in_systm.h>
-/*#include <sys/types.h> netinet/in.h*/
-
 /*
  * Copyright (c) 1982, 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -113,5 +106,3 @@ struct      ip_timestamp {
 #define        IPTTLDEC        1               /* subtracted when forwarding */
 
 #define        IP_MSS          576             /* default maximum segment size */
-
-#endif
index 40f8a6b..a342e31 100644 (file)
@@ -1,11 +1,3 @@
-#ifndef _NETINET_IP_ICMP_H_
-#define _NETINET_IP_ICMP_H_
-
-/*#include <netinet/in.h> netinet/ip.h*/
-/*#include <netinet/in_systm.h> netinet/ip.h*/
-#include <netinet/ip.h>
-/*#include <sys/types.h> netinet/in.h*/
-
 /*
  * Copyright (c) 1982, 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -106,5 +98,3 @@ struct icmp {
 #define        ICMP_MASKREPLY          18              /* address mask reply */
 
 #define        ICMP_MAXTYPE            18
-
-#endif
index c5b1892..d28c3f8 100644 (file)
@@ -1,10 +1,3 @@
-#ifndef _NETINET_IP_VAR_H_
-#define _NETINET_IP_VAR_H_
-
-#include <netinet/in.h>
-#include <sys/socket.h>
-/*#include <sys/types.h> netinet/in.h*/
-
 /*
  * Copyright (c) 1982, 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -100,7 +93,5 @@ struct       ipstat  ipstat;
 struct ipq     ipq;                    /* ip reass. queue */
 u_short        ip_id;                          /* ip packet ctr, for ids */
 
-/*struct       mbuf *ip_srcroute();*/
-#endif
-
+struct mbuf *ip_srcroute();
 #endif
index f6fbd89..8409c43 100644 (file)
@@ -1,11 +1,3 @@
-#ifndef _NETINET_TCP_H_
-#define _NETINET_TCP_H_
-
-#include <netinet/ip.h>
-#include <netinet/ip_var.h>
-#include <sys/param.h>
-/*#include <sys/types.h> netinet/ip.h*/
-
 /*
  * Copyright (c) 1982, 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -62,5 +54,3 @@ struct tcphdr {
  */
 #define        TCP_NODELAY     0x01    /* don't delay send to coalesce packets */
 #define        TCP_MAXSEG      0x02    /* set maximum segment size */
-
-#endif
index 51c236a..3dd6279 100644 (file)
@@ -1,11 +1,3 @@
-#ifndef _NETINET_TCP_DEBUG_H_
-#define _NETINET_TCP_DEBUG_H_
-
-/*#include <netinet/in_systm.h> netinet/tcp_var.h*/
-#include <netinet/tcp_var.h>
-#include <netinet/tcpip.h>
-/*#include <sys/types.h> netinet/in_systm.h*/
-
 /*
  * Copyright (c) 1982, 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -38,5 +30,3 @@ char  *tanames[] =
 #define        TCP_NDEBUG 100
 struct tcp_debug tcp_debug[TCP_NDEBUG];
 int    tcp_debx;
-
-#endif
index 0b60692..3ef9026 100644 (file)
@@ -1,10 +1,3 @@
-#ifndef _NETINET_TCP_FSM_H_
-#define _NETINET_TCP_FSM_H_
-
-#include <netinet/tcp.h>
-/*#include <sys/protosw.h> netinet/tcp.h*/
-/*#include <sys/types.h> netinet/tcp.h*/
-
 /*
  * Copyright (c) 1982, 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -63,5 +56,3 @@ char *tcpstates[] = {
        "LAST_ACK",     "FIN_WAIT_2",   "TIME_WAIT",
 };
 #endif
-
-#endif
index deddd92..14c2865 100644 (file)
@@ -1,8 +1,3 @@
-#ifndef _NETINET_TCP_SEQ_H_
-#define _NETINET_TCP_SEQ_H_
-
-#include <netinet/tcp.h>
-
 /*
  * Copyright (c) 1982, 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -38,5 +33,3 @@
 #ifdef KERNEL
 tcp_seq        tcp_iss;                /* tcp initial send seq # */
 #endif
-
-#endif
index 8aef842..d6071fd 100644 (file)
@@ -1,8 +1,3 @@
-#ifndef _NETINET_TCP_TIMER_H_
-#define _NETINET_TCP_TIMER_H_
-
-#include <sys/protosw.h>
-
 /*
  * Copyright (c) 1982, 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -113,5 +108,3 @@ float       tcp_alpha, tcp_beta;
        if ((tv) > (tvmax)) \
                (tv) = (tvmax); \
 }
-
-#endif
index 096d8dd..f1745ea 100644 (file)
@@ -1,11 +1,3 @@
-#ifndef _NETINET_TCP_VAR_H_
-#define _NETINET_TCP_VAR_H_
-
-#include <netinet/in_pcb.h>
-#include <netinet/tcp.h>
-#include <netinet/tcp_timer.h>
-/*#include <sys/types.h> netinet/in_pcb.h*/
-
 /*
  * Copyright (c) 1982, 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -94,9 +86,7 @@ struct        tcpstat {
 #ifdef KERNEL
 struct inpcb tcb;              /* head of queue of active tcpcb's */
 struct tcpstat tcpstat;        /* tcp statistics */
-/*struct       tcpiphdr *tcp_template();*/
-/*struct       tcpcb *tcp_close(), *tcp_drop();*/
-/*struct       tcpcb *tcp_timers(), *tcp_disconnect(), *tcp_usrclosed();*/
-#endif
-
+struct tcpiphdr *tcp_template();
+struct tcpcb *tcp_close(), *tcp_drop();
+struct tcpcb *tcp_timers(), *tcp_disconnect(), *tcp_usrclosed();
 #endif
index 354ae4e..8356c39 100644 (file)
@@ -1,9 +1,3 @@
-#ifndef _NETINET_TCPIP_H_
-#define _NETINET_TCPIP_H_
-
-/*#include <netinet/ip_var.h> netinet/tcp.h*/
-#include <netinet/tcp.h>
-
 /*
  * Copyright (c) 1982, 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -36,5 +30,3 @@ struct tcpiphdr {
 #define        ti_win          ti_t.th_win
 #define        ti_sum          ti_t.th_sum
 #define        ti_urp          ti_t.th_urp
-
-#endif
index 6c25e77..6a7f020 100644 (file)
@@ -1,8 +1,3 @@
-#ifndef _NETINET_UDP_H_
-#define _NETINET_UDP_H_
-
-#include <sys/types.h>
-
 /*
  * Copyright (c) 1982, 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -21,5 +16,3 @@ struct udphdr {
        short   uh_ulen;                /* udp length */
        u_short uh_sum;                 /* udp checksum */
 };
-
-#endif
index b6022fe..cfca943 100644 (file)
@@ -1,10 +1,3 @@
-#ifndef _NETINET_UDP_VAR_H_
-#define _NETINET_UDP_VAR_H_
-
-#include <netinet/in_pcb.h>
-#include <netinet/ip_var.h>
-#include <netinet/udp.h>
-
 /*
  * Copyright (c) 1982, 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -44,5 +37,3 @@ struct        udpstat {
 struct inpcb udb;
 struct udpstat udpstat;
 #endif
-
-#endif
index 90bca6b..ba6eef8 100644 (file)
@@ -1,9 +1,3 @@
-#ifndef _NETNS_IDP_H_
-#define _NETNS_IDP_H_
-
-#include <netns/ns.h>
-/*#include <sys/types.h> netns/ns.h*/
-
 /*
  * Copyright (c) 1984, 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -23,5 +17,3 @@ struct idp {
        struct ns_addr  idp_dna;        /* Destination Network Address */
        struct ns_addr  idp_sna;        /* Source Network Address */
 };
-
-#endif
index 8171a15..0c86598 100644 (file)
@@ -1,6 +1,3 @@
-#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
@@ -23,5 +20,3 @@ struct        idpstat {
 #ifdef KERNEL
 struct idpstat idpstat;
 #endif
-
-#endif
index 4688d87..5fdf1e7 100644 (file)
@@ -1,10 +1,3 @@
-#ifndef _NETNS_NS_H_
-#define _NETNS_NS_H_
-
-#include <sys/domain.h>
-#include <sys/socket.h>
-/*#include <sys/types.h> sys/socket.h*/
-
 /*
  * Copyright (c) 1984, 1985, 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -29,6 +22,7 @@
 #define NSPROTO_RAW    255             /* Placemarker*/
 #define NSPROTO_MAX    256             /* Placemarker*/
 
+
 /*
  * Port/Socket numbers: network standard functions
  */
@@ -61,6 +55,7 @@
 #define        SO_ALL_PACKETS          7
 #define SO_MTU                 8
 
+
 /*
  * NS addressing
  */
@@ -111,8 +106,8 @@ struct sockaddr_ns {
 /*
  * Functions for number representation conversion.
  */
-/*u_short      ntohs(), htons();*/
-/*u_long       ntohl(), htonl();*/
+u_short        ntohs(), htons();
+u_long ntohl(), htonl();
 
 #ifdef KERNEL
 extern struct domain nsdomain;
@@ -121,39 +116,5 @@ union ns_host ns_zerohost;
 union ns_host ns_broadhost;
 union ns_net ns_zeronet;
 union ns_net ns_broadnet;
-/*u_short ns_cksum();*/
-#endif
-
-#ifndef KERNEL
-#ifndef __P
-#ifdef __STDC__
-#define __P(args) args
-#else
-#define __P(args) ()
-#endif
-#endif
-
-/* these should not be here, as they have moved to net.h to be shared with */
-/* netinet/in.h, but I've duplicated them here so that older programs won't */
-/* silently fail due to truncating the return value of ntohl() and htonl() */
-
-/* net/htonl.c */
-u_long htonl __P((u_long hostlong));
-
-/* net/htons.c */
-u_short htons __P((int hostshort));
-
-/* net/ntohl.c */
-u_long ntohl __P((u_long netlong));
-
-/* net/ntohs.c */
-u_short ntohs __P((int netshort));
-
-/* 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
-
+u_short ns_cksum();
 #endif
index da01dc3..c98119f 100644 (file)
@@ -1,9 +1,3 @@
-#ifndef _NETNS_NS_ERROR_H_
-#define _NETNS_NS_ERROR_H_
-
-#include <netns/idp.h>
-/*#include <sys/types.h> netns/idp.h*/
-
 /*
  * Copyright (c) 1984, 1985, 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -68,5 +62,3 @@ struct        ns_errstat {
 #ifdef KERNEL
 struct ns_errstat ns_errstat;
 #endif
-
-#endif
index 1f87ca7..a349ab4 100644 (file)
@@ -1,10 +1,3 @@
-#ifndef _NETNS_NS_IF_H_
-#define _NETNS_NS_IF_H_
-
-#include <net/if.h>
-#include <netns/ns.h>
-/*#include <sys/socket.h> net/if.h*/
-
 /*
  * Copyright (c) 1985, 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -55,8 +48,6 @@ struct nsip_req {
 
 #ifdef KERNEL
 struct ns_ifaddr *ns_ifaddr;
-/*struct       ns_ifaddr *ns_iaonnetof();*/
+struct ns_ifaddr *ns_iaonnetof();
 struct ifqueue nsintrq;        /* XNS input packet queue */
 #endif
-
-#endif
index 9ffe9a5..06a8487 100644 (file)
@@ -1,10 +1,3 @@
-#ifndef _NETNS_NS_PCB_H_
-#define _NETNS_NS_PCB_H_
-
-#include <net/route.h>
-#include <netns/ns.h>
-/*#include <sys/types.h> net/route.h*/
-
 /*
  * Copyright (c) 1984, 1985, 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -53,9 +46,8 @@ struct nspcb {
 #define        NSSNDQ          2048
 #define        NSRCVQ          2048
 
+
 #ifdef KERNEL
 struct nspcb nspcb;                    /* head of list */
-/*struct       nspcb *ns_pcblookup();*/
-#endif
-
+struct nspcb *ns_pcblookup();
 #endif
index 53ee606..bf13709 100644 (file)
@@ -1,8 +1,3 @@
-#ifndef _NETNS_SP_H_
-#define _NETNS_SP_H_
-
-#include <sys/types.h>
-
 /*
  * Copyright (c) 1984, 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -28,5 +23,3 @@ struct sphdr {
        u_short sp_ack;         /* acknowledge number */
        u_short sp_alo;         /* allocation number */
 };
-
-#endif
index 6d960e1..10715ad 100644 (file)
@@ -1,9 +1,3 @@
-#ifndef _NETNS_SPIDP_H_
-#define _NETNS_SPIDP_H_
-
-#include <netns/idp.h>
-#include <netns/sp.h>
-
 /*
  * Copyright (c) 1984, 1985, 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -39,5 +33,3 @@ struct spidp_q {
 #define si_seq si_s.sp_seq
 #define si_ack si_s.sp_ack
 #define si_alo si_s.sp_alo
-
-#endif
index 1448afa..1f06c96 100644 (file)
@@ -1,10 +1,3 @@
-#ifndef _NETNS_SPP_DEBUG_H_
-#define _NETNS_SPP_DEBUG_H_
-
-/*#include <netns/spidp.h> netns/spp_var.h*/
-#include <netns/spp_var.h>
-/*#include <sys/types.h> netns/spidp.h*/
-
 /*
  * Copyright (c) 1984, 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -37,5 +30,3 @@ char  *sanames[] =
 #define        SPP_NDEBUG 100
 struct spp_debug spp_debug[SPP_NDEBUG];
 int    spp_debx;
-
-#endif
index 30d1460..de0bb31 100644 (file)
@@ -1,12 +1,3 @@
-#ifndef _NETNS_SPP_VAR_H_
-#define _NETNS_SPP_VAR_H_
-
-#include <netinet/tcp_timer.h>
-#include <netns/ns_pcb.h>
-/*#include <netns/sp.h> netns/spidp.h*/
-#include <netns/spidp.h>
-/*#include <sys/types.h> netns/ns_pcb.h*/
-
 /*
  * Copyright (c) 1984, 1985, 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -99,5 +90,3 @@ extern struct sppcb *spp_close(), *spp_disconnect(),
 #define        SSEQ_LEQ(a,b)   (((short)((a)-(b))) <= 0)
 #define        SSEQ_GT(a,b)    (((short)((a)-(b))) > 0)
 #define        SSEQ_GEQ(a,b)   (((short)((a)-(b))) >= 0)
-
-#endif
index e70f12f..67a3f95 100644 (file)
@@ -1,8 +1,3 @@
-#ifndef _VAX_CLOCK_H_
-#define _VAX_CLOCK_H_
-
-#include <vax/mtpr.h>
-
 /*
  * Copyright (c) 1982, 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -42,5 +37,3 @@
  * Software clock is software interrupt level 8,
  * implemented as mtpr(SIRR, 0x8) in asm.sed.
  */
-
-#endif
index f674f43..f947eb4 100644 (file)
@@ -1,6 +1,3 @@
-#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
@@ -40,5 +37,3 @@
 #define        TXDB_BOOT       0x02            /* reboot */
 #define        TXDB_CWSI       0x03            /* clear warm start inhibit */
 #define        TXDB_CCSI       0x04            /* clear cold-start inhibit */
-
-#endif
index 5567254..3acf3fc 100644 (file)
@@ -1,8 +1,3 @@
-#ifndef _VAX_CPU_H_
-#define _VAX_CPU_H_
-
-#include <sys/types.h>
-
 /*
  * Copyright (c) 1982, 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -114,5 +109,3 @@ int cpu;
 struct percpu percpu[];
 #endif
 #endif
-
-#endif
index 53ff4a7..8759364 100644 (file)
@@ -1,6 +1,3 @@
-#ifndef _VAX_CRL_H_
-#define _VAX_CRL_H_
-
 /* 
  * @(#)crl.h   7.1 (Berkeley) 6/5/86
  */
@@ -72,6 +69,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"
@@ -79,5 +77,3 @@
 #define        CRLCS_BITS \
 "\20\20CE\17DE\16NXM\15DLT\14DCRC\13OPI\1DRDY"
 #endif
-
-#endif
index 23fb2ed..acd4a58 100644 (file)
@@ -1,8 +1,3 @@
-#ifndef _VAX_DKIO_H_
-#define _VAX_DKIO_H_
-
-#include <sys/ioctl.h>
-
 /*
  * Copyright (c) 1982, 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -21,5 +16,3 @@
 
 /* disk io control commands */
 #define DKIOCHDR       _IO(d, 1)       /* next I/O will read/write header */
-
-#endif
index ba14da6..faceb76 100644 (file)
@@ -1,6 +1,3 @@
-#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
@@ -52,5 +49,3 @@
 #define        FL_OPEN         1
 #define        FL_BUSY         2
 #endif
-
-#endif
index 750c2b3..347e6a9 100644 (file)
@@ -1,8 +1,3 @@
-#ifndef _VAX_FRAME_H_
-#define _VAX_FRAME_H_
-
-#include <sys/types.h>
-
 /*
  * Copyright (c) 1982, 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -25,5 +20,3 @@ struct frame {
        int     fr_savfp;               /* saved frame pointer */
        int     fr_savpc;               /* saved program counter */
 };
-
-#endif
index 6e41553..e2e7ff2 100644 (file)
@@ -1,8 +1,3 @@
-#ifndef _VAX_IOA_H_
-#define _VAX_IOA_H_
-
-#include <sys/types.h>
-
 /*
  * @(#)ioa.h   7.1 (Berkeley) 6/5/86
  */
@@ -38,7 +33,8 @@
 #define        IOA8600(i)      ((caddr_t)(0x20080000+IOASIZE*i))
 
 #ifndef LOCORE
-struct sbia_regs {
+struct sbia_regs
+{
        int sbi_cfg;
        int sbi_csr;
        int sbi_errsum;
@@ -85,10 +81,8 @@ struct       ioa {
 };
 #ifdef KERNEL
 struct ioa ioa[MAXNIOA];
-#endif
-#endif
+#endif  KERNEL
+#endif LOCORE
 
 #define IOA_TYPMSK 0xf0
 #define IOA_SBIA       0x10
-
-#endif
index 871ee32..8d1a331 100644 (file)
@@ -1,8 +1,3 @@
-#ifndef _VAX_KA630_H_
-#define _VAX_KA630_H_
-
-#include <sys/types.h>
-
 /*
  *     @(#)ka630.h     7.1 (Berkeley) 6/5/86
  *
@@ -81,5 +76,3 @@ struct ka630cpu {
 };
 #endif
 #endif
-
-#endif
index 2e6dac2..04cec5d 100644 (file)
@@ -1,8 +1,3 @@
-#ifndef _VAX_MACHPARAM_H_
-#define _VAX_MACHPARAM_H_
-
-#include <vax/psl.h>
-
 /*
  * Copyright (c) 1982, 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -56,8 +51,6 @@ int   cpuspeed;
 #endif
 #define        DELAY(n)        { register int N = cpuspeed * (n); while (--N > 0); }
 
-#else
+#else KERNEL
 #define        DELAY(n)        { register int N = (n); while (--N > 0); }
-#endif
-
-#endif
+#endif KERNEL
index c8e3ad7..e89add7 100644 (file)
@@ -1,8 +1,3 @@
-#ifndef _VAX_MEM_H_
-#define _VAX_MEM_H_
-
-#include <vax/mtpr.h>
-
 /*
  * Copyright (c) 1982, 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -88,7 +83,7 @@ struct        mcr {
 \5WR_DT_PE_B0\4CHE_RD_DT_PE\3CHE_SEL\2ANY_REFL\1CP_BW_CHE_DT_PE"
 #define M8600_MSTAT2_BITS "\20\20CP_BYT_WR\17ABUS_BD_DT_CODE\10MULT_ERR\
 \7CHE_TAG_PE\6CHE_TAG_W_PE\5CHE_WRTN_BIT\4NXM\3CP-IO_BUF_ERR\2MBOX_LOCK"
-#endif
+#endif VAX8600
 
 #if VAX780
 #define        M780_ICRD       0x40000000      /* inhibit crd interrupts, in [2] */
@@ -173,5 +168,3 @@ int nmcr;
 struct mcr *mcraddr[MAXNMCR];
 int    mcrtype[MAXNMCR];
 #endif
-
-#endif
index 9bd3546..e821159 100644 (file)
@@ -1,8 +1,3 @@
-#ifndef _VAX_MSCP_H_
-#define _VAX_MSCP_H_
-
-#include <sys/types.h>
-
 /*
  * Copyright (c) 1982, 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -15,6 +10,7 @@
  * Definitions for the Mass Storage Control Protocol
  */
 
+
 /*
  * Control message opcodes
  */
@@ -40,6 +36,7 @@
 #define        M_OP_ACPTH      0102    /* Access path attention message */
 #define        M_OP_END        0200    /* End message flag */
 
+
 /*
  * Generic command modifiers
  */
@@ -92,6 +89,7 @@
  */
 #define        M_MD_PRIMR      0000001         /* Primary replacement block */
 
+
 /*
  * End message flags
  */
 #define        M_EF_ERLOG      0040    /* Error log generated */
 #define        M_EF_SEREX      0020    /* Serious exception */
 
+
 /*
  * Controller flags
  */
 #define        M_CF_SHADW      0002    /* Shadowing */
 #define        M_CF_576        0001    /* 576 byte sectors */
 
+
 /*
  * Unit flags
  */
 #define        M_UF_CMPWR      0000002         /* Compare writes */
 #define        M_UF_CMPRD      0000001         /* Compare reads */
 
+
 /*
  * Status codes
  */
@@ -270,6 +271,7 @@ struct mscp {
 #define        mscp_cntcmdl    mscp_usefrac
 #define        mscp_cntid      mscp_unitid
 
+
 /*
  * Error Log message format codes
  */
@@ -316,4 +318,3 @@ struct mslg {
 #define        mslg_busaddr    mslg_unitid.val[0]
 #define        mslg_sdecyl     mslg_group
 
-#endif
index 669380c..eeb0ca1 100644 (file)
@@ -1,6 +1,3 @@
-#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
@@ -94,5 +91,3 @@
 #define        IUR     0x37            /* init unibus register */
 #define        TB      0x3b            /* translation buffer */
 #endif
-
-#endif
index e2ff63e..7bb6217 100644 (file)
@@ -1,8 +1,3 @@
-#ifndef _VAX_NEXUS_H_
-#define _VAX_NEXUS_H_
-
-#include <sys/types.h>
-
 /*
  * Copyright (c) 1982, 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -46,7 +41,7 @@
 
 #if VAX8600
 #define        MAXNNEXUS (2 * NNEXSBI)
-#else
+#else 
 #define        MAXNNEXUS NNEXSBI
 #endif
 
@@ -120,5 +115,3 @@ struct nexus nexus[MAXNNEXUS];
 #define        NEX_MEM256U     0x72            /* 256K chips, non-interleaved, upper */
 #define        NEX_MEM256UI    0x73            /* 256K chips, ext-interleaved, upper */
 #define        NEX_MEM256I     0x74            /* 256K chips, interleaved */
-
-#endif
index b280893..fe970aa 100644 (file)
@@ -1,8 +1,3 @@
-#ifndef _VAX_PCB_H_
-#define _VAX_PCB_H_
-
-#include <vax/mtpr.h>
-
 /*
  * Copyright (c) 1982, 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -15,7 +10,8 @@
  * VAX process control block
  */
 
-struct pcb {
+struct pcb
+{
        int     pcb_ksp;        /* kernel stack pointer */
        int     pcb_esp;        /* exec stack pointer */
        int     pcb_ssp;        /* supervisor stack pointer */
@@ -69,5 +65,3 @@ struct pcb {
        { \
                mtpr(ASTLVL, ASTLVL_NONE); \
        }
-
-#endif
index 5f19c21..40917ee 100644 (file)
@@ -1,6 +1,3 @@
-#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
@@ -34,5 +31,3 @@
 
 #define        PSL_USERSET     (PSL_PRVMOD|PSL_CURMOD)
 #define        PSL_USERCLR     (PSL_IS|PSL_IPL|PSL_MBZ)
-
-#endif
index 0c29781..86d0987 100644 (file)
@@ -1,6 +1,3 @@
-#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
@@ -20,7 +17,8 @@
  */
 
 #ifndef LOCORE
-struct pte {
+struct pte
+{
 unsigned int   pg_pfnum:21,            /* core page frame number or 0 */
                :2,
                pg_vreadm:1,            /* modified since vread (or with _m) */
@@ -30,12 +28,14 @@ unsigned int        pg_pfnum:21,            /* core page frame number or 0 */
                pg_prot:4,              /* access control */
                pg_v:1;                 /* valid bit */
 };
-struct hpte {
+struct hpte
+{
 unsigned int   pg_pfnum:21,
                :2,
                pg_high:9;              /* special for clustering */
 };
-struct fpte {
+struct fpte
+{
 unsigned int   pg_blkno:24,            /* file system block number */
                pg_fileno:1,            /* file mapped from or TEXT or ZERO */
                pg_fod:1,               /* is fill on demand (=1) */
@@ -93,5 +93,3 @@ extern        struct pte Ka630map[];
 #endif
 #endif
 #endif
-
-#endif
index a6c2420..6847fd2 100644 (file)
@@ -1,6 +1,3 @@
-#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
@@ -34,5 +31,3 @@
 #define        SP      (-5)
 #define        PS      (-1)
 #define        PC      (-2)
-
-#endif
index f5342a9..0ec2eb3 100644 (file)
@@ -1,6 +1,3 @@
-#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
@@ -24,5 +21,3 @@ struct rpb {
 #ifdef KERNEL
 extern struct rpb rpb;
 #endif
-
-#endif
index c0829b9..3b5279c 100644 (file)
@@ -1,9 +1,3 @@
-#ifndef _VAX_RSP_H_
-#define _VAX_RSP_H_
-
-#include <stdio.h>
-/*#include <sys/types.h> stdio.h*/
-
 /*
  * Copyright (c) 1982, 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -89,4 +83,3 @@ struct packet {
  */
 #define        TUSW_MRSP       010             /* use Modified RSP */
 
-#endif
index e497212..fa438c5 100644 (file)
@@ -1,6 +1,3 @@
-#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
@@ -67,5 +64,3 @@ extern        struct scb scb;
 #define        SCB_ISTACK      1
 #define        SCB_WCS         2
 #define        SCB_HALT        3
-
-#endif
index 87c3f02..91de976 100644 (file)
@@ -1,8 +1,3 @@
-#ifndef _VAX_TMSCP_H_
-#define _VAX_TMSCP_H_
-
-#include <sys/types.h>
-
 /*     @(#)tmscp.h     7.1 (Berkeley) 6/5/86 */
 
 /*
@@ -325,4 +320,3 @@ struct mslg {
 #define        mslg_busaddr    mslg_unitid.val[0]
 #define        mslg_sdecyl     mslg_group
 
-#endif
index 23ec8f6..b46d1c5 100644 (file)
@@ -1,6 +1,3 @@
-#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
@@ -29,5 +26,3 @@
 #define        T_COMPATFLT     11              /* compatibility mode fault */
 #define        T_PAGEFLT       12              /* page fault */
 #define        T_TABLEFLT      13              /* page table fault */
-
-#endif
index f016450..a17cf61 100644 (file)
@@ -1,9 +1,3 @@
-#ifndef _VAX_VMPARAM_H_
-#define _VAX_VMPARAM_H_
-
-#include <sys/param.h>
-/*#include <vax/machparam.h> sys/param.h*/
-
 /*
  * Copyright (c) 1982, 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
 /* moved this to sys/vmmac.h to avoid a circular dependency */
 /*#define      mapin(pte, v, pfnum, count, prot) \
        (*(int *)(pte) = (pfnum) | (prot), mtpr(TBIS, ptob(v)))*/
-
-#endif
index 5842ad8..4b501ff 100644 (file)
@@ -1,8 +1,3 @@
-#ifndef _VAXIF_IF_ACCREG_H_
-#define _VAXIF_IF_ACCREG_H_
-
-#include <sys/types.h>
-
 /*
  * Copyright (c) 1982, 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -68,5 +63,3 @@ struct accdevice {
 
 #define ACC_OUTBITS \
 "\20\20ERR\17NXM\12TMR\10RDY\7IE\4BBACK\3ENLB\2RESET\1GO"
-
-#endif
index e013692..1934eac 100644 (file)
@@ -1,8 +1,3 @@
-#ifndef _VAXIF_IF_CSSREG_H_
-#define _VAXIF_IF_CSSREG_H_
-
-#include <sys/types.h>
-
 /*
  * Copyright (c) 1982, 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -61,6 +56,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
  */
@@ -69,5 +65,3 @@ struct cssdevice {
 
 #define CSS_OUTBITS \
 "\20\20ERR\17NXM\16ATTN\15MAINT\11CYCLE\10RDY\7IE\6XBA17\5XBA16\4TXEC\3ENLB\2CLR\1GO"
-
-#endif
index 58d38fb..c541842 100644 (file)
@@ -1,10 +1,6 @@
-#ifndef _VAXIF_IF_DDNREG_H_
-#define _VAXIF_IF_DDNREG_H_
-
-#include <sys/types.h>
-
 /*     @(#)if_ddnreg.h 7.1 (Berkeley) 6/5/86 */
 
+
 /************************************************************************\
 
      ________________________________________________________
@@ -31,6 +27,7 @@
        part of this software must include a copy of ACC's
        copyright notice.
 
+
 File:
                if_ddnreg.h
 
@@ -129,5 +126,3 @@ struct ddnregs {                    /* device registers */
 #define DDNXODD                2       /* start with odd address */
 #define DDNNUMR                4       /* non-UMR transfer */
 #define DDNXABT                8       /* abort transfer */
-
-#endif
index 4e950b5..4e63eb8 100644 (file)
@@ -1,8 +1,7 @@
-#ifndef _VAXIF_IF_DDNVAR_H_
-#define _VAXIF_IF_DDNVAR_H_
-
 /*     @(#)if_ddnvar.h 7.1 (Berkeley) 6/5/86 */
 
+
+
 /************************************************************************\
 
      ________________________________________________________
@@ -29,6 +28,7 @@
        part of this software must include a copy of ACC's
        copyright notice.
 
+
 File:
                if_ddnvar.h
 
@@ -118,5 +118,3 @@ typedef int         boolean;
 
 /* X25 protocols */
 #define        X25_PROTO_IP    0xcc            /* X25 IP protocol type code    */
-
-#endif
index 6e3a527..7c9dd9c 100644 (file)
@@ -1,9 +1,3 @@
-#ifndef _VAXIF_IF_DEREG_H_
-#define _VAXIF_IF_DEREG_H_
-
-#include <netinet/if_ether.h>
-/*#include <sys/types.h> netinet/if_ether.h*/
-
 /*
  * Copyright (c) 1982, 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -195,5 +189,3 @@ struct      de_buf {
        char    db_data[ETHERMTU];      /* packet data */
        int     db_crc;                 /* CRC - on receive only */
 };
-
-#endif
index 497ba58..b391532 100644 (file)
@@ -1,6 +1,3 @@
-#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
@@ -101,5 +98,3 @@ struct dmc_header {
 #define        DMC_FATAL (DMC_ERROR|DMC_NEXMEM|DMC_START|DMC_LOSTDATA|DMC_MAINTREC)
 #define        CNTLO_BITS      \
    "\10\12ERROR\11NEXMEM\10START\7DISC\5LSTDATA\4MAINT\3NOBUF\2TIMEO\1DATACK"
-
-#endif
index 8347d2e..28b76b5 100644 (file)
@@ -1,6 +1,3 @@
-#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
@@ -66,5 +63,3 @@ struct ecdevice {
 #define        ECRHBF          15              /* Last buffer for receive */
 
 #define        ECRDOFF         528             /* Packet offset in read buffer */
-
-#endif
index 2f34b1f..d82b785 100644 (file)
@@ -1,8 +1,3 @@
-#ifndef _VAXIF_IF_EN_H_
-#define _VAXIF_IF_EN_H_
-
-#include <sys/types.h>
-
 /*
  * Copyright (c) 1982, 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -33,5 +28,3 @@ struct        en_header {
 #define        ENTYPE_NTRAILER 16
 
 #define EN_BROADCAST   0               /* Hardware broadcast address */
-
-#endif
index 61936ac..623ad80 100644 (file)
@@ -1,6 +1,3 @@
-#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
@@ -39,5 +36,3 @@ struct endevice {
 #define        EN_BITS "\10\20ERR\10OPDONE\7IEN\2PROM\1GO"
 
 #define        spl_enet()      spl5()
-
-#endif
index 05c3c69..68a0968 100644 (file)
@@ -1,8 +1,3 @@
-#ifndef _VAXIF_IF_EXREG_H_
-#define _VAXIF_IF_EXREG_H_
-
-#include <sys/types.h>
-
 /*
  * Copyright (c) 1982, 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -11,6 +6,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 +248,3 @@ struct      confmsg {
 /*80*/
 };
 
-#endif
index 8cf0b5c..2f8f625 100644 (file)
@@ -1,10 +1,6 @@
-#ifndef _VAXIF_IF_HDHREG_H_
-#define _VAXIF_IF_HDHREG_H_
-
-#include <sys/types.h>
-
 /*     @(#)if_hdhreg.h 7.1 (Berkeley) 6/5/86 */
 
+
 /* $Header$ */
 
 /*
@@ -103,5 +99,3 @@ struct hdhregs {                     /* device registers */
 #define HDHDTERR       (HDHSUP+0x0600) /* host data error detected */
 #define HDHSQRCV       (HDHSUP+0x0700) /* HDLC sequence error detected by IMP */
 #define HDHSQERR       (HDHSUP+0x0800) /* HDLC sequence error detected by if-11 */
-
-#endif
index 1fb85b2..af50b7f 100644 (file)
@@ -1,10 +1,3 @@
-#ifndef _VAXIF_IF_HY_H_
-#define _VAXIF_IF_HY_H_
-
-/*#include <net/if.h> sys/ioctl.h*/
-#include <sys/ioctl.h>
-/*#include <sys/types.h> net/if.h*/
-
 /*
  * Copyright (c) 1982, 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -52,6 +45,7 @@
  *
  */
 
+
 /*
  * Structure of a HYPERchannel adapter header
  */
@@ -66,6 +60,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]
@@ -309,4 +304,3 @@ char *hy_state_names[] = {
 };
 #endif
 
-#endif
index 638c087..ca7dec3 100644 (file)
@@ -1,8 +1,3 @@
-#ifndef _VAXIF_IF_HYREG_H_
-#define _VAXIF_IF_HYREG_H_
-
-#include <sys/types.h>
-
 /*
  *     @(#)if_hyreg.h  7.1 (Berkeley) 6/5/86
  *
@@ -15,6 +10,7 @@
  *
  */
 
+
 /*
  * Network Systems Corporation Hyperchannel interface
  *
@@ -187,5 +183,3 @@ struct      hydevice {
 #define        HYF_END_OP      0xE4    /* end operation */
 #define        HYF_CLRWFMSG    0xE6    /* clear wait for mwssage */
 #define        HYF_WAITFORMSG  0xE8    /* wait for message */
-
-#endif
index 5a6cf0a..75ba5dc 100644 (file)
@@ -1,8 +1,3 @@
-#ifndef _VAXIF_IF_IL_H_
-#define _VAXIF_IF_IL_H_
-
-#include <sys/types.h>
-
 /*
  * Copyright (c) 1982, 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -55,5 +50,3 @@ struct        il_collis {
        u_short ilc_length;             /* Length (should be 0-32) */
        u_short ilc_delay[16];          /* Delay Times */
 };
-
-#endif
index da3e6e2..0cad2f1 100644 (file)
@@ -1,6 +1,3 @@
-#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
@@ -123,5 +120,3 @@ char *ildiag[NILDIAGS] = {
 #define        ILFSTAT_C       0x1             /* CRC error */
 #define        ILFSTAT_A       0x2             /* alignment error */
 #define        ILFSTAT_L       0x4             /* 1+ frames lost just before */
-
-#endif
index 179a4b0..c708c1a 100644 (file)
@@ -1,8 +1,3 @@
-#ifndef _VAXIF_IF_IX_H_
-#define _VAXIF_IF_IX_H_
-
-#include <sys/types.h>
-
 /*
  * Copyright (c) 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -59,5 +54,3 @@ union ix_stats {
 #define IXC_CSCLR      IXC_MAP(10)             /* Clear Channel Statistics */
 #define IXC_RESET      IXC_MAP(11)             /* Reset DLA module */
 #define IXC_LDPA       IXC_MAP(12)             /* Load Physical Address */
-
-#endif
index b88660a..8841025 100644 (file)
@@ -1,8 +1,3 @@
-#ifndef _VAXIF_IF_PCLREG_H_
-#define _VAXIF_IF_PCLREG_H_
-
-#include <sys/types.h>
-
 /*
  * Copyright (c) 1982, 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -62,5 +57,3 @@ struct pcldevice  {
 
 #define PCL_RERRBITS   "\20\20ERR\17NXL\16MEM_OFL\15TXM_ERR\14PARITY\13TIM_OUT\12BC_OFL\11DTO_RDY\10SUC_TXF\07BUSY\06REJ_COMP\05CHN_OPN"
 #define PCL_RCSRBITS   "\20\20REJ\17RC_NPR\16RCV_WD\10LD_SILO\07IE\04DTI_RDY\03INH_ADI\02RC_INIT\01RCV_DAT"
-
-#endif
index e57ebb1..7293f70 100644 (file)
@@ -1,8 +1,3 @@
-#ifndef _VAXIF_IF_QEREG_H_
-#define _VAXIF_IF_QEREG_H_
-
-#include <sys/types.h>
-
 /*     @(#)if_qereg.h  7.1 (Berkeley) 6/5/86 */
 
 /* @(#)if_qereg.h      1.2 (ULTRIX) 1/3/85 */
@@ -138,5 +133,3 @@ struct qe_ring      {
 #define QE_NOTYET              0x8000  /* Descriptor not in use yet    */
 #define QE_INUSE               0x4000  /* Descriptor being used by QNA */
 #define QE_MASK                        0xc000  /* Lastnot/error/used mask      */
-
-#endif
index 90de07f..f9d3805 100644 (file)
@@ -1,9 +1,3 @@
-#ifndef _VAXIF_IF_UBA_H_
-#define _VAXIF_IF_UBA_H_
-
-#include <sys/types.h>
-#include <vax/pte.h>
-
 /*
  * Copyright (c) 1982, 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -107,7 +101,5 @@ struct ifuba {
                if_ubaget(&(ifu)->ifu_info, &(ifu)->ifu_r, totlen, off0, ifp)
 #define        if_wubaput(ifu, m) \
                if_ubaput(&(ifu)->ifu_info, &(ifu)->ifu_xmt, m)
-/*struct       mbuf *if_ubaget();*/
-#endif
-
+struct mbuf *if_ubaget();
 #endif
index 3994e1b..0bc18d6 100644 (file)
@@ -1,8 +1,3 @@
-#ifndef _VAXIF_IF_VV_H_
-#define _VAXIF_IF_VV_H_
-
-#include <sys/types.h>
-
 /*
  * Copyright (c) 1982, 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -115,5 +110,3 @@ struct vvreg {
 #define VVIDENTSUCC 5          /* number of successes required in self-test */
 #define VVIDENTRETRY 10                /* identify loop attempt limit */
 #define VVTIMEOUT 60           /* seconds before a transmit timeout */
-
-#endif
index 36e7c00..a2b7a3d 100644 (file)
@@ -1,6 +1,3 @@
-#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
@@ -9,7 +6,8 @@
  *     @(#)hpreg.h     7.1 (Berkeley) 6/5/86
  */
 
-struct hpdevice {
+struct hpdevice
+{
        int     hpcs1;          /* control and status register 1 */
        int     hpds;           /* drive status */
        int     hper1;          /* error register 1 */
@@ -166,5 +164,3 @@ struct hpdevice {
 
 #define        SIRM03  0x8000          /* RM03 indication */
 #define        SIRM05  0x0000          /* RM05 pseudo-indication */
-
-#endif
index 051b535..91b4802 100644 (file)
@@ -1,6 +1,3 @@
-#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
@@ -9,7 +6,8 @@
  *     @(#)htreg.h     7.1 (Berkeley) 6/5/86
  */
 
-struct htdevice {
+struct htdevice
+{
        int     htcs1;          /* control status register */
        int     htds;           /* drive status register */
        int     hter;           /* error register */
@@ -112,5 +110,3 @@ struct      htdevice {
 
 #define        b_repcnt  b_bcount
 #define        b_command b_resid
-
-#endif
index 9b652f0..3a5a9a9 100644 (file)
@@ -1,8 +1,3 @@
-#ifndef _VAXMBA_MBAREG_H_
-#define _VAXMBA_MBAREG_H_
-
-#include <vax/pte.h>
-
 /*
  * Copyright (c) 1982, 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -15,7 +10,8 @@
  * VAX MASSBUS adapter registers
  */
 
-struct mba_regs {
+struct mba_regs
+{
        int     mba_csr;                /* configuration register */
        int     mba_cr;                 /* control register */
        int     mba_sr;                 /* status register */
@@ -137,5 +133,3 @@ extern      char    mbsr_bits[];
 #define        MBDT_TU45       052
 #define        MBDT_TU77       054
 #define        MBDT_TU78       0101
-
-#endif
index 4103ed7..04c7c78 100644 (file)
@@ -1,8 +1,3 @@
-#ifndef _VAXMBA_MBAVAR_H_
-#define _VAXMBA_MBAVAR_H_
-
-#include <sys/buf.h>
-
 /*
  * Copyright (c) 1982, 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -142,11 +137,9 @@ struct mba_driver {
 int    nummba;
 #if NMBA > 0
 struct mba_hd mba_hd[NMBA];
-/*extern       Xmba0int(), Xmba1int(), Xmba2int(), Xmba3int();*/
+extern Xmba0int(), Xmba1int(), Xmba2int(), Xmba3int();
 
 extern struct  mba_device mbdinit[];
 extern struct  mba_slave mbsinit[];
 #endif
 #endif
-
-#endif
index 138326a..05f6b6e 100644 (file)
@@ -1,6 +1,3 @@
-#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
@@ -132,5 +129,3 @@ struct mtdevice {
 
 #define        b_repcnt  b_bcount
 #define        b_command b_resid
-
-#endif
index fd3a631..9455b65 100644 (file)
@@ -1,8 +1,3 @@
-#ifndef _VAXUBA_ADREG_H_
-#define _VAXUBA_ADREG_H_
-
-#include <sys/ioctl.h>
-
 /*
  * Copyright (c) 1982, 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -32,5 +27,3 @@ struct addevice {
 #define AD_DONE                0200
 #define AD_INCENABLE           040000
 #define AD_ERROR               0100000
-
-#endif
index 00c3a4b..f672234 100644 (file)
@@ -1,8 +1,3 @@
-#ifndef _VAXUBA_DHREG_H_
-#define _VAXUBA_DHREG_H_
-
-#include <sys/types.h>
-
 /*
  * Copyright (c) 1982, 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -56,5 +51,3 @@ struct dhdevice {
 #define        DH_PE           0010000         /* parity error */
 #define        DH_FE           0020000         /* framing error */
 #define        DH_DO           0040000         /* data overrun */
-
-#endif
index ca629f6..cacb946 100644 (file)
@@ -1,6 +1,3 @@
-#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
@@ -142,5 +139,3 @@ struct dhudevice {
 #define        DML_RTS         0000004         /* request to send */
 #define        DML_DTR         0000002         /* data terminal ready */
 #define        DML_LE          0000001         /* line enable */
-
-#endif
index a756ba7..333b00e 100644 (file)
@@ -1,8 +1,3 @@
-#ifndef _VAXUBA_DMFREG_H_
-#define _VAXUBA_DMFREG_H_
-
-#include <sys/types.h>
-
 /*
  * Copyright (c) 1982, 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -150,5 +145,3 @@ struct dmfdevice {
 #define DMFC_LP                0x2000          /* LP dma parallel lineprinter i'face */
 #define DMFC_SYNC      0x4000          /* Synchronous serial interface */
 #define DMFC_ASYNC     0x8000          /* 8 Serial ports */
-
-#endif
index c431b6f..49aefc4 100644 (file)
@@ -1,6 +1,3 @@
-#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
@@ -44,5 +41,3 @@ struct dmdevice {
 
 #define        DML_ON          (DML_DTR|DML_RTS|DML_LE)
 #define        DML_OFF         (DML_LE)
-
-#endif
index 79e74be..efe6cec 100644 (file)
@@ -1,8 +1,3 @@
-#ifndef _VAXUBA_DMZREG_H_
-#define _VAXUBA_DMZREG_H_
-
-#include <sys/types.h>
-
 /*
  * Copyright (c) 1985, 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -132,6 +127,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 */
 
@@ -147,5 +143,3 @@ struct dmzdevice {
 
 #define        DMZ_NOC_MASK    03
 #define        DMZ_INTERFACE   000
-
-#endif
index cfb6e7b..872a402 100644 (file)
@@ -1,6 +1,3 @@
-#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
@@ -90,5 +87,3 @@ struct dzdevice {
 #define        DML_RTS         0000004         /* request to send */
 #define        DML_DTR         0000002         /* data terminal ready */
 #define        DML_LE          0000001         /* line enable */
-
-#endif
index 20799d6..caa47cf 100644 (file)
@@ -1,6 +1,3 @@
-#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
@@ -16,7 +13,8 @@
 #define        NRB80TRK        14      /* RB80 tracks/cylinder */
 #define        NRB80CYL        559     /* RB80 cylinders/disk */
 
-struct idcdevice {
+struct idcdevice
+{
        int     idccsr;         /* control status register */
        int     idcbar;         /* bus address register */
        int     idcbcr;         /* byte count register */
@@ -105,5 +103,3 @@ struct idcdevice {
 
 #define        IDCRB80DS_BITS \
 "\10\16WTP\15DRDY\14ONCY\13SKE\12PLGV\11FLT\5SEC4\4SEC3\3SEC2\2SEC1\1SEC0"
-
-#endif
index e461b9a..5d11725 100644 (file)
@@ -1,9 +1,3 @@
-#ifndef _VAXUBA_IKREG_H_
-#define _VAXUBA_IKREG_H_
-
-#include <sys/ioctl.h>
-/*#include <sys/types.h> sys/ioctl.h*/
-
 /*
  * Copyright (c) 1982, 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -118,5 +112,3 @@ struct ikdevice {
  */
 
 #define FMG0           060200000
-
-#endif
index fcab961..bb62761 100644 (file)
@@ -1,9 +1,3 @@
-#ifndef _VAXUBA_NPREG_H_
-#define _VAXUBA_NPREG_H_
-
-#include <sys/buf.h>
-/*#include <sys/types.h> sys/buf.h*/
-
 /*
  * Copyright (c) 1986 MICOM-Interlan, Inc., Boxborough Mass
  * All rights reserved.  The Berkeley software License Agreement
@@ -22,6 +16,7 @@
  * Specification.
  */
 
+
 #define NNPCNN         4       /* Number of connections per board */
 #define NPUNIT(a)      ((minor(a) >> 4) & 0x0F)
 #define NPCONN(a)      ((minor(a)) & 0x03)
@@ -138,10 +133,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 */
@@ -470,5 +467,3 @@ struct npbase {
 #define        DEBCSR          0x1000          /* debug CSR commands */
 #define        DEBLOCK         0x2000          /* debug lock / unlock calls */
 #define NOBOARD                0x4000          /* debug user/host interface */
-
-#endif
index 7517cbb..b19e03d 100644 (file)
@@ -1,6 +1,3 @@
-#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
@@ -16,5 +13,3 @@ struct pdma {
        int     p_arg;
        int     (*p_fcn)();
 };
-
-#endif
index dc916df..efa46f5 100644 (file)
@@ -1,8 +1,3 @@
-#ifndef _VAXUBA_PSREG_H_
-#define _VAXUBA_PSREG_H_
-
-#include <sys/ioctl.h>
-
 /*
  * Copyright (c) 1982, 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -11,6 +6,7 @@
  *     @(#)psreg.h     7.1 (Berkeley) 6/5/86
  */
 
+
 /*
  *     The Real Nitty Gritty Device Registers
  */
@@ -209,5 +205,3 @@ struct psdevice {
 
 #define FSWR           0177626
 #define FSLR           0177627
-
-#endif
index 08e3cba..5c8b4aa 100644 (file)
@@ -1,8 +1,3 @@
-#ifndef _VAXUBA_RKREG_H_
-#define _VAXUBA_RKREG_H_
-
-#include <sys/types.h>
-
 /*
  * Copyright (c) 1982, 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -16,7 +11,8 @@
 #define NRKSECT                22
 #define NRKTRK         3
 
-struct rkdevice {
+struct rkdevice
+{
        short   rkcs1;          /* control status reg 1 */
        short   rkwc;           /* word count */
        u_short rkba;           /* bus address */
@@ -138,5 +134,3 @@ struct rkdevice {
 #define        RKAS_M800       0240            /*  -800 RK06,  -400 RK07 */
 #define        RKAS_P1200      0060            /*  +800 RK06,  +400 RK07 */
 #define        RKAS_M1200      0260            /* -1200 RK06, -1200 RK07 */
-
-#endif
index 5155067..e7d6304 100644 (file)
@@ -1,8 +1,3 @@
-#ifndef _VAXUBA_RLREG_H_
-#define _VAXUBA_RLREG_H_
-
-#include <sys/types.h>
-
 /*
  * Copyright (c) 1982, 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -116,5 +111,3 @@ struct rldevice {
 #define        RLER_BITS \
 "\10\20WDE\17CHE\16WL\15SKTO\14SPE\13WGE\12VC\11DSE\
 \10DT\7HS\6CO\5HO\4BH\3STC\2STB\1STA"
-
-#endif
index 3eeb202..e1c80e9 100644 (file)
@@ -1,8 +1,3 @@
-#ifndef _VAXUBA_RXREG_H_
-#define _VAXUBA_RXREG_H_
-
-#include <sys/ioctl.h>
-
 /*
  * Copyright (c) 1982, 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -14,7 +9,7 @@
 #ifdef KERNEL
 #include "ioctl.h"
 #else
-/*#include <sys/ioctl.h>*/
+#include <sys/ioctl.h>
 #endif
 
 /*
@@ -108,5 +103,3 @@ struct rxdeferr {
        { 0,    "Undefined error code" }
 };
 #endif
-
-#endif
index e3be2e9..bf77bd3 100644 (file)
@@ -1,8 +1,3 @@
-#ifndef _VAXUBA_TMREG_H_
-#define _VAXUBA_TMREG_H_
-
-#include <sys/types.h>
-
 /*
  * Copyright (c) 1982, 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -100,6 +95,4 @@ struct tmdevice {
 #define        FSR_BITS \
 "\10\20REJ\17TMS\16OVRN\15DATACHK\14SSC\13EOTS\12WRTS\11ROMPS\10CRERR\
 \7ONLS\6BOTS\5HDENS\4BUPER\3FPTS\2REWS\1RDYS"
-#endif
-
-#endif
+#endif AVIV
index e7b79b1..19ea140 100644 (file)
@@ -1,6 +1,3 @@
-#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        */
@@ -83,5 +80,3 @@ struct mscp_header {
        char    tmscp_credits;  /* low 4 bits: credits, high 4 bits: msgtype */
        char    tmscp_vcid;     /* virtual circuit id (connection id) */
 };
-
-#endif
index ea0e5c4..b7aaf4d 100644 (file)
@@ -1,8 +1,3 @@
-#ifndef _VAXUBA_TSREG_H_
-#define _VAXUBA_TSREG_H_
-
-#include <sys/types.h>
-
 /*
  * Copyright (c) 1982, 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -127,6 +122,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,10 +158,9 @@ struct ts_char {
        u_short char_mode;              /* characteristics */
 };
 
+
 /* characteristics */
 #define        TS_ESS  0200            /* enable skip tape marks stop */
 #define        TS_ENB  0100            /* ??? */
 #define        TS_EAI  0040            /* enable attention interrupts */
 #define        TS_ERI  0020            /* enable message buffer release interrupts */
-
-#endif
index 86aeed2..4474995 100644 (file)
@@ -1,11 +1,3 @@
-#ifndef _VAXUBA_UBAREG_H_
-#define _VAXUBA_UBAREG_H_
-
-/*#include <sys/types.h> vax/cpu.h*/
-#include <vax/cpu.h>
-#include <vax/machparam.h>
-#include <vax/pte.h>
-
 /*
  * Copyright (c) 1982, 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -34,7 +26,8 @@
 /*
  * UBA hardware registers
  */
-struct uba_regs {
+struct uba_regs
+{
        int     uba_cnfgr;              /* configuration register */
        int     uba_cr;                 /* control register */
        int     uba_sr;                 /* status register */
@@ -144,6 +137,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 */
@@ -194,4 +189,3 @@ struct uba_regs {
  */
 #define        ubdevreg(addr)  (0760000|((addr)&017777))
 
-#endif
index 810718f..c9e71ad 100644 (file)
@@ -1,11 +1,3 @@
-#ifndef _VAXUBA_UBAVAR_H_
-#define _VAXUBA_UBAVAR_H_
-
-#include <sys/buf.h>
-/*#include <sys/types.h> sys/buf.h*/
-/*#include <vax/machparam.h> sys/buf.h*/
-/*#include <vax/pte.h> sys/buf.h*/
-
 /*
  * Copyright (c) 1982, 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -208,9 +200,7 @@ extern      int (*UNI1vec[])();                     /* unibus vec for uba1 */
  * UNIbus adaptors to vector to locore unibus adaptor interrupt dispatchers
  * which make 780's look like the other VAXen.
  */
-/*extern       Xua0int(), Xua1int(), Xua2int(), Xua3int();*/
-#endif
-#endif
-#endif
-
-#endif
+extern Xua0int(), Xua1int(), Xua2int(), Xua3int();
+#endif VAX780
+#endif KERNEL
+#endif !LOCORE
index b659ce3..6f8adfd 100644 (file)
@@ -1,6 +1,3 @@
-#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 +27,7 @@ struct udadevice {
 #define        UDA_PI          0000001 /* host requests adapter purge interrupts */
 #define        UDA_GO          0000001 /* start operation, after init */
 
+
 /*
  * UDA Communications Area
  */
@@ -57,5 +55,3 @@ struct mscp_header {
        char    uda_credits;    /* low 4 bits: credits, high 4 bits: msgtype */
        char    uda_vcid;       /* virtual circuit id */
 };
-
-#endif
index 6820d7f..c0d8802 100644 (file)
@@ -1,8 +1,3 @@
-#ifndef _VAXUBA_UPREG_H_
-#define _VAXUBA_UPREG_H_
-
-#include <sys/types.h>
-
 /*
  * Copyright (c) 1982, 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -16,7 +11,8 @@
  * registers and bits.
  */
 
-struct updevice {
+struct updevice
+{
        u_short upcs1;          /* control and status register 1 */
        short   upwc;           /* word count register */
        u_short upba;           /* UNIBUS address register */
@@ -168,5 +164,3 @@ struct updevice {
 #define        UPOF_M800       0240            /*  -800 uinches */
 #define        UPOF_P1200      0060            /* +1200 uinches */
 #define        UPOF_M1200      0260            /* -1200 uinches */
-
-#endif
index 622f2ce..7a0442d 100644 (file)
@@ -1,9 +1,3 @@
-#ifndef _VAXUBA_UTREG_H_
-#define _VAXUBA_UTREG_H_
-
-#include <sys/buf.h>
-/*#include <sys/types.h> sys/buf.h*/
-
 /*
  * Copyright (c) 1982, 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -179,5 +173,3 @@ struct utdevice {
 #define        b_repcnt  b_bcount
 #define        b_command b_resid
 #define        b_state   b_active  
-
-#endif
index 29fbb97..de64ab7 100644 (file)
@@ -1,6 +1,3 @@
-#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 +6,7 @@
  *     @(#)uureg.h     7.1 (Berkeley) 6/5/86
  */
 
+
 /*
  * DL11-E/DL11-W UNIBUS (for TU58) controller registers
  */
@@ -37,4 +35,3 @@ struct uudevice {
 
 #define        UUDB_DMASK      0x00ff  /* data mask (send and receive data) */
 
-#endif
index ed9b5a8..13860bb 100644 (file)
@@ -1,9 +1,3 @@
-#ifndef _VAXUBA_VPREG_H_
-#define _VAXUBA_VPREG_H_
-
-#include <sys/param.h>
-/*#include <sys/types.h> sys/param.h*/
-
 /*
  * Copyright (c) 1982, 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
@@ -36,5 +30,3 @@ struct        vpdevice {
 #define        VP_CLRCOM       0000004
 #define        VP_RESET        0000002
 #define        VP_SPP          0000001
-
-#endif
index aaec333..b799d52 100644 (file)
@@ -1,8 +1,3 @@
-#ifndef _VAXUBA_VSREG_H_
-#define _VAXUBA_VSREG_H_
-
-#include <sys/types.h>
-
 /* @(#)vsreg.h 7.1 (MIT) 6/5/86 */
  /****************************************************************************
  *                                                                         *
@@ -213,6 +208,7 @@ struct vs_fparm{
 #define        vs_cxr          vs_csr5
 #define        vs_cyr          vs_csr6
 
+
 /* 
  * CSR 7 - Interrupt vector in fiber cable machines
  */
@@ -236,5 +232,3 @@ struct vs_fparm{
  */
 
 #define        vs_ivr2         vs_csrf
-
-#endif