ANSI (real bug fix!), break up into multiple directories, new style
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Sun, 3 Mar 1991 05:13:49 +0000 (21:13 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Sun, 3 Mar 1991 05:13:49 +0000 (21:13 -0800)
Makefiles

SCCS-vsn: usr.bin/uucp/libacu/Makefile 5.1
SCCS-vsn: usr.bin/uucp/libacu/att2224.c 1.3
SCCS-vsn: usr.bin/uucp/libacu/bsdtcp.c 4.5
SCCS-vsn: usr.bin/uucp/libacu/cds224.c 1.3
SCCS-vsn: usr.bin/uucp/libacu/df12.c 4.3
SCCS-vsn: usr.bin/uucp/libacu/df2.c 4.4
SCCS-vsn: usr.bin/uucp/libacu/dk.c 4.3
SCCS-vsn: usr.bin/uucp/libacu/dn.c 4.4
SCCS-vsn: usr.bin/uucp/libacu/hys.c 4.8
SCCS-vsn: usr.bin/uucp/libacu/hys24.c 1.7
SCCS-vsn: usr.bin/uucp/libacu/hysq.c 4.3
SCCS-vsn: usr.bin/uucp/libacu/mic.c 4.3
SCCS-vsn: usr.bin/uucp/libacu/nov.c 4.3
SCCS-vsn: usr.bin/uucp/libacu/pen.c 4.4
SCCS-vsn: usr.bin/uucp/libacu/pnet.c 4.4
SCCS-vsn: usr.bin/uucp/libacu/rvmacs.c 4.6
SCCS-vsn: usr.bin/uucp/libacu/sy.c 4.3
SCCS-vsn: usr.bin/uucp/libacu/unet.c 4.3
SCCS-vsn: usr.bin/uucp/libacu/va212.c 4.4
SCCS-vsn: usr.bin/uucp/libacu/va811.c 4.3
SCCS-vsn: usr.bin/uucp/libacu/va820.c 4.5
SCCS-vsn: usr.bin/uucp/libacu/vad.c 4.4
SCCS-vsn: usr.bin/uucp/libacu/vent.c 4.4
SCCS-vsn: usr.bin/uucp/libacu/vmacs.c 4.6

24 files changed:
usr/src/usr.bin/uucp/libacu/Makefile
usr/src/usr.bin/uucp/libacu/att2224.c
usr/src/usr.bin/uucp/libacu/bsdtcp.c
usr/src/usr.bin/uucp/libacu/cds224.c
usr/src/usr.bin/uucp/libacu/df12.c
usr/src/usr.bin/uucp/libacu/df2.c
usr/src/usr.bin/uucp/libacu/dk.c
usr/src/usr.bin/uucp/libacu/dn.c
usr/src/usr.bin/uucp/libacu/hys.c
usr/src/usr.bin/uucp/libacu/hys24.c
usr/src/usr.bin/uucp/libacu/hysq.c
usr/src/usr.bin/uucp/libacu/mic.c
usr/src/usr.bin/uucp/libacu/nov.c
usr/src/usr.bin/uucp/libacu/pen.c
usr/src/usr.bin/uucp/libacu/pnet.c
usr/src/usr.bin/uucp/libacu/rvmacs.c
usr/src/usr.bin/uucp/libacu/sy.c
usr/src/usr.bin/uucp/libacu/unet.c
usr/src/usr.bin/uucp/libacu/va212.c
usr/src/usr.bin/uucp/libacu/va811.c
usr/src/usr.bin/uucp/libacu/va820.c
usr/src/usr.bin/uucp/libacu/vad.c
usr/src/usr.bin/uucp/libacu/vent.c
usr/src/usr.bin/uucp/libacu/vmacs.c

index 03ad991..fa1e46c 100644 (file)
@@ -1,50 +1,10 @@
-#
-# Copyright (c) 1987 The Regents of the University of California.
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms are permitted
-# provided that the above copyright notice and this paragraph are
-# duplicated in all such forms and that any documentation,
-# advertising materials, and other materials related to such
-# distribution and use acknowledge that the software was developed
-# by the University of California, Berkeley.  The name of the
-# University may not be used to endorse or promote products derived
-# from this software without specific prior written permission.
-# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
-# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
-# WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
-#
-#      @(#)Makefile    4.12 (Berkeley) %G%
-#
-CFLAGS=        -DUSE_OLD_TTY -O
-LIBC=  /lib/libc.a
+#      @(#)Makefile    5.1 (Berkeley) %G%
+
+LIB=   acu
+CFLAGS+=-I${.CURDIR}/../includes
 SRCS=  bsdtcp.c df2.c df12.c dk.c dn.c hys.c hysq.c mic.c nov.c pen.c pnet.c \
        rvmacs.c sy.c unet.c va212.c va811.c va820.c vad.c vent.c vmacs.c \
        hys24.c cds224.c att2224.c
 SRCS=  bsdtcp.c df2.c df12.c dk.c dn.c hys.c hysq.c mic.c nov.c pen.c pnet.c \
        rvmacs.c sy.c unet.c va212.c va811.c va820.c vad.c vent.c vmacs.c \
        hys24.c cds224.c att2224.c
-OBJS=  bsdtcp.o df2.o df12.o dk.o dn.o hys.o hysq.o mic.o nov.o pen.o pnet.o \
-       rvmacs.o sy.o unet.o va212.o va811.o va820.o vad.o vent.o vmacs.o \
-       hys24.o cds224.o att2224.o
-P=
-
-all: aculib.a
-
-aculib.a: $(P) ${OBJS}
-       ar cr aculib.a ${OBJS}
-       -ranlib aculib.a 2>&1 | sed '/no symbol table/d'
-
-clean:
-       rm -f ${OBJS} core aculib.a
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep ${CFLAGS} ${SRCS}
-
-lint: ${SRCS}
-       lint ${CFLAGS} ${SRCS}
 
 
-tags: ${SRCS}
-       ctags ${SRCS}
+.include <bsd.lib.mk>
 
 
-install:
index da7db22..5bd7a35 100644 (file)
@@ -1,8 +1,8 @@
 #ifndef lint
 #ifndef lint
-static char sccsid[] = "@(#)att2224.c  1.2 (Berkeley) %G%";
+static char sccsid[] = "@(#)att2224.c  1.3 (Berkeley) %G%";
 #endif
 
 #endif
 
-#include "../condevs.h"
+#include "condevs.h"
 
 attopn(telno, flds, dev)
 char *telno, *flds[];
 
 attopn(telno, flds, dev)
 char *telno, *flds[];
index 727e44b..464022d 100644 (file)
@@ -1,8 +1,8 @@
 #ifndef lint
 #ifndef lint
-static char sccsid[] = "@(#)bsdtcp.c   4.4 (Berkeley) %G%";
+static char sccsid[] = "@(#)bsdtcp.c   4.5 (Berkeley) %G%";
 #endif
 
 #endif
 
-#include "../condevs.h"
+#include "condevs.h"
 #include <netdb.h>
 #include <sys/socket.h>
 #include <netinet/in.h>
 #include <netdb.h>
 #include <sys/socket.h>
 #include <netinet/in.h>
@@ -59,7 +59,7 @@ register char *flds[];
        if (s < 0)
                goto bad;
 #ifndef BSD2_9
        if (s < 0)
                goto bad;
 #ifndef BSD2_9
-       if (bind(s, (char *)&hisctladdr, sizeof (hisctladdr), 0) < 0)
+       if (bind(s, (struct sockaddr *)&hisctladdr, sizeof (hisctladdr)) < 0)
                goto bad;
 #endif BSD2_9
        bcopy(hp->h_addr, (char *)&hisctladdr.sin_addr, hp->h_length);
                goto bad;
 #endif BSD2_9
        bcopy(hp->h_addr, (char *)&hisctladdr.sin_addr, hp->h_length);
@@ -67,7 +67,7 @@ register char *flds[];
 #ifdef BSD2_9
        if (connect(s, (char *)&hisctladdr) < 0)
 #else BSD4_2
 #ifdef BSD2_9
        if (connect(s, (char *)&hisctladdr) < 0)
 #else BSD4_2
-       if (connect(s, (char *)&hisctladdr, sizeof (hisctladdr), 0) < 0)
+       if (connect(s, (struct sockaddr *)&hisctladdr, sizeof (hisctladdr)) < 0)
 #endif BSD4_2
                goto bad;
        alarm(0);
 #endif BSD4_2
                goto bad;
        alarm(0);
index 8aea472..bfa3d79 100644 (file)
@@ -1,8 +1,8 @@
 #ifndef lint
 #ifndef lint
-static char sccsid[] = "@(#)cds224.c   1.2 (Berkeley) %G%";
+static char sccsid[] = "@(#)cds224.c   1.3 (Berkeley) %G%";
 #endif !lint
 
 #endif !lint
 
-#include "../condevs.h"
+#include "condevs.h"
 
 /*
  *     conopn: establish dial-out connection through a Concord CDS 224.
 
 /*
  *     conopn: establish dial-out connection through a Concord CDS 224.
@@ -21,7 +21,7 @@ struct Devices *dev;
        int     i, ok, er = 0, delay;
        extern errno;
        char dcname[20];
        int     i, ok, er = 0, delay;
        extern errno;
        char dcname[20];
-       char *tempbuf[20];
+       char tempbuf[20];
 
        sprintf(dcname, "/dev/%s", dev->D_line);
        if (setjmp(Sjbuf)) {
 
        sprintf(dcname, "/dev/%s", dev->D_line);
        if (setjmp(Sjbuf)) {
index e3250e3..537e979 100644 (file)
@@ -1,8 +1,8 @@
 #ifndef lint
 #ifndef lint
-static char sccsid[] = "@(#)df12.c     4.2 (Berkeley) %G%";
+static char sccsid[] = "@(#)df12.c     4.3 (Berkeley) %G%";
 #endif
 
 #endif
 
-#include "../condevs.h"
+#include "condevs.h"
 
 /*
  *     df12popn(telno, flds, dev) connect to df12 modem (pulse call)
 
 /*
  *     df12popn(telno, flds, dev) connect to df12 modem (pulse call)
index 7b206b8..7c13836 100644 (file)
@@ -1,8 +1,8 @@
 #ifndef lint
 #ifndef lint
-static char sccsid[] = "@(#)df2.c      4.3 (Berkeley) %G%";
+static char sccsid[] = "@(#)df2.c      4.4 (Berkeley) %G%";
 #endif
 
 #endif
 
-#include "../condevs.h"
+#include "condevs.h"
 
 /*
  *     df2opn(ph, flds, dev)   dial remote machine
 
 /*
  *     df2opn(ph, flds, dev)   dial remote machine
index 3bea0c2..b0b9512 100644 (file)
@@ -1,8 +1,8 @@
 #ifndef lint
 #ifndef lint
-static char sccsid[] = "@(#)dk.c       4.2 (Berkeley) %G%";
+static char sccsid[] = "@(#)dk.c       4.3 (Berkeley) %G%";
 #endif
 
 #endif
 
-#include "../condevs.h"
+#include "condevs.h"
 #ifdef DATAKIT
 #include <dk.h>
 #define DKTRIES 2
 #ifdef DATAKIT
 #include <dk.h>
 #define DKTRIES 2
index c8a5533..a1d469a 100644 (file)
@@ -1,8 +1,8 @@
 #ifndef lint
 #ifndef lint
-static char sccsid[] = "@(#)dn.c       4.3 (Berkeley) %G%";
+static char sccsid[] = "@(#)dn.c       4.4 (Berkeley) %G%";
 #endif
 
 #endif
 
-#include "../condevs.h"
+#include "condevs.h"
 #define ACULAST "-<"
 
 /***
 #define ACULAST "-<"
 
 /***
index 06042da..90211eb 100644 (file)
@@ -1,8 +1,8 @@
 #ifndef lint
 #ifndef lint
-static char sccsid[] = "@(#)hys.c      4.7 (Berkeley) %G%";
+static char sccsid[] = "@(#)hys.c      4.8 (Berkeley) %G%";
 #endif
 
 #endif
 
-#include "../condevs.h"
+#include "condevs.h"
 
 #ifdef USR2400
 #define DROPDTR
 
 #ifdef USR2400
 #define DROPDTR
index 369aa05..e0d64b9 100644 (file)
@@ -1,8 +1,8 @@
 #ifndef lint
 #ifndef lint
-static char sccsid[] = "@(#)hys24.c    1.6     (Berkeley) %G%";
+static char sccsid[] = "@(#)hys24.c    1.7     (Berkeley) %G%";
 #endif !lint
 
 #endif !lint
 
-#include "../condevs.h"
+#include "condevs.h"
 
 /*
  * hyspopn24(telno, flds, dev) connect to hayes smartmodem (pulse call)
 
 /*
  * hyspopn24(telno, flds, dev) connect to hayes smartmodem (pulse call)
index e90959a..f03b526 100644 (file)
@@ -1,8 +1,8 @@
 #ifndef lint
 #ifndef lint
-static char sccsid[] = "@(#)hysq.c     4.2 (Berkeley) %G%";
+static char sccsid[] = "@(#)hysq.c     4.3 (Berkeley) %G%";
 #endif
 
 #endif
 
-#include "../condevs.h"
+#include "condevs.h"
 
 /*
  * New dialout routine to work with Hayes' SMART MODEM
 
 /*
  * New dialout routine to work with Hayes' SMART MODEM
index ec6e886..00e60c4 100644 (file)
@@ -1,8 +1,8 @@
 #ifndef lint
 #ifndef lint
-static char sccsid[] = "@(#)mic.c      4.2 (Berkeley) %G%";
+static char sccsid[] = "@(#)mic.c      4.3 (Berkeley) %G%";
 #endif
 
 #endif
 
-#include "../condevs.h"
+#include "condevs.h"
 #ifdef MICOM
 
 /*
 #ifdef MICOM
 
 /*
index 776a060..1c0e800 100644 (file)
@@ -1,8 +1,8 @@
 #ifndef lint
 #ifndef lint
-static char sccsid[] = "@(#)nov.c      4.2 (Berkeley) %G%";
+static char sccsid[] = "@(#)nov.c      4.3 (Berkeley) %G%";
 #endif
 
 #endif
 
-#include "../condevs.h"
+#include "condevs.h"
 
 /***
  *     novopn(telno, flds, dev) connect to novation Smart-Cat
 
 /***
  *     novopn(telno, flds, dev) connect to novation Smart-Cat
index daa57c8..bb154f2 100644 (file)
@@ -1,11 +1,11 @@
 #ifndef lint
 #ifndef lint
-static char sccsid[] = "@(#)pen.c      4.3 (Berkeley) %G%";
+static char sccsid[] = "@(#)pen.c      4.4 (Berkeley) %G%";
 #endif
 
 /*
  *     Speaker's quick and dirty penril hack.  STA 4/1/85.
  */
 #endif
 
 /*
  *     Speaker's quick and dirty penril hack.  STA 4/1/85.
  */
-#include "../condevs.h"
+#include "condevs.h"
 
 penopn(telno, flds, dev)
 char *flds[], *telno;
 
 penopn(telno, flds, dev)
 char *flds[], *telno;
index fc9b5de..904dcd7 100644 (file)
@@ -1,8 +1,8 @@
 #ifndef lint
 #ifndef lint
-static char sccsid[] = "@(#)pnet.c     4.3 (Berkeley) %G%";
+static char sccsid[] = "@(#)pnet.c     4.4 (Berkeley) %G%";
 #endif
 
 #endif
 
-#include "../condevs.h"
+#include "condevs.h"
 #ifdef PNET
 
 /***
 #ifdef PNET
 
 /***
index 75a74fd..0a5c9a5 100644 (file)
@@ -1,8 +1,8 @@
 #ifndef lint
 #ifndef lint
-static char sccsid[] = "@(#)rvmacs.c   4.5 (Berkeley) %G%";
+static char sccsid[] = "@(#)rvmacs.c   4.6 (Berkeley) %G%";
 #endif
 
 #endif
 
-#include "../condevs.h"
+#include "condevs.h"
 
 /*
  * Racal-Vadic 'RV820' MACS system with 831 adaptor.
 
 /*
  * Racal-Vadic 'RV820' MACS system with 831 adaptor.
index e9ff395..4de54c2 100644 (file)
@@ -1,8 +1,8 @@
 #ifndef lint
 #ifndef lint
-static char sccsid[] = "@(#)sy.c       4.2 (Berkeley) %G%";
+static char sccsid[] = "@(#)sy.c       4.3 (Berkeley) %G%";
 #endif
 
 #endif
 
-#include "../condevs.h"
+#include "condevs.h"
 
 #ifdef SYTEK
 
 
 #ifdef SYTEK
 
index c5d6dfd..b475cb9 100644 (file)
@@ -1,8 +1,8 @@
 #ifndef lint
 #ifndef lint
-static char sccsid[] = "@(#)unet.c     4.2 (Berkeley) %G%";
+static char sccsid[] = "@(#)unet.c     4.3 (Berkeley) %G%";
 #endif
 
 #endif
 
-#include "../condevs.h"
+#include "condevs.h"
 #ifdef UNETTCP
 
 /*
 #ifdef UNETTCP
 
 /*
index 92c0622..7c95ebb 100644 (file)
@@ -1,8 +1,8 @@
 #ifndef lint
 #ifndef lint
-static char sccsid[] = "@(#)va212.c    4.3 (Berkeley) %G%";
+static char sccsid[] = "@(#)va212.c    4.4 (Berkeley) %G%";
 #endif
 
 #endif
 
-#include "../condevs.h"
+#include "condevs.h"
 
 va212opn(telno, flds, dev)
 char *telno;
 
 va212opn(telno, flds, dev)
 char *telno;
index 053ad9d..cacfd31 100644 (file)
@@ -1,8 +1,8 @@
 #ifndef lint
 #ifndef lint
-static char sccsid[] = "@(#)va811.c    4.2 (Berkeley) %G%";
+static char sccsid[] = "@(#)va811.c    4.3 (Berkeley) %G%";
 #endif
 
 #endif
 
-#include "../condevs.h"
+#include "condevs.h"
 
 /*
  * Racal-Vadic VA811 dialer with 831 adaptor.
 
 /*
  * Racal-Vadic VA811 dialer with 831 adaptor.
index d63303b..8cf0e83 100644 (file)
@@ -1,8 +1,8 @@
 #ifndef lint
 #ifndef lint
-static char sccsid[] = "@(#)va820.c    4.4 (Berkeley) %G%";
+static char sccsid[] = "@(#)va820.c    4.5 (Berkeley) %G%";
 #endif
 
 #endif
 
-#include "../condevs.h"
+#include "condevs.h"
 
 /*
  * Racal-Vadic 'RV820' with 831 adaptor.
 
 /*
  * Racal-Vadic 'RV820' with 831 adaptor.
index b9d9f55..60f866a 100644 (file)
@@ -1,8 +1,8 @@
 #ifndef lint
 #ifndef lint
-static char sccsid[] = "@(#)vad.c      4.3 (Berkeley) %G%";
+static char sccsid[] = "@(#)vad.c      4.4 (Berkeley) %G%";
 #endif
 
 #endif
 
-#include "../condevs.h"
+#include "condevs.h"
 
 /*
  *     vadopn: establish dial-out connection through a Racal-Vadic 3450.
 
 /*
  *     vadopn: establish dial-out connection through a Racal-Vadic 3450.
index 3be35a4..2e977f3 100644 (file)
@@ -1,8 +1,8 @@
 #ifndef lint
 #ifndef lint
-static char sccsid[] = "@(#)vent.c     4.3 (Berkeley) %G%";
+static char sccsid[] = "@(#)vent.c     4.4 (Berkeley) %G%";
 #endif
 
 #endif
 
-#include "../condevs.h"
+#include "condevs.h"
 
 ventopn(telno, flds, dev)
 char *flds[], *telno;
 
 ventopn(telno, flds, dev)
 char *flds[], *telno;
index f5b466b..65ac4c9 100644 (file)
@@ -1,8 +1,8 @@
 #ifndef lint
 #ifndef lint
-static char sccsid[] = "@(#)vmacs.c    4.5 (Berkeley) %G%";
+static char sccsid[] = "@(#)vmacs.c    4.6 (Berkeley) %G%";
 #endif
 
 #endif
 
-#include "../condevs.h"
+#include "condevs.h"
 
 /*
  *
 
 /*
  *