[comp.sources.wanted] Need dial

heath@ncrcae.Columbia.NCR.COM (Robert Heath) (05/30/89)

Does anyone have a dial(3C) library that is compatible with HoneyDanBer UUCP ?
I've seen quite a few of these on the archive machines, but they
support  the older System 5.2 UUCP.
Surprisingly the dial(3C) which came with my UNIX 5.3 supports the older UUCP.
I'm informed that this is a common situation with UNIX 5.3.

	Thanks,
	Robert Heath
	TOWER Multiprocessor Systems
	NCR E&M--Columbia
	W. Columbia, SC

wnp@killer.DALLAS.TX.US (Wolf Paul) (05/31/89)

In article <4522@ncrcae.Columbia.NCR.COM> heath@ncrcae.Columbia.NCR.COM (Robert Heath) writes:
>Does anyone have a dial(3C) library that is compatible with HoneyDanBer UUCP ?
>I've seen quite a few of these on the archive machines, but they
>support  the older System 5.2 UUCP.
>Surprisingly the dial(3C) which came with my UNIX 5.3 supports the older UUCP.
>I'm informed that this is a common situation with UNIX 5.3.

Yes. I recently was looking at HDB source at a client's with a source license,
and there is a comment in there to the effect that HDB does not use dial(3).

Thus, since the authors of HDB chose not to use dial(3), apparently nobody
at AT&T saw a need to update it.

It is not just a matter of changing some file names and the location and
format of the lock files; to do it properly, you have to also include
support of the Dialers file. In order to do that, you really want to have
access to HDB source, to use the routines they use to parse the dialer file,
etc.

However, if all you need is superficial compatibility, primarily with
the HDB lockfile scheme, it would probably be not too difficult to
modify the dialinfo library by Gene Olson, which can be found in Volume 6
of comp.sources.unix, at your nearest friendly archive site.
-- 
Wolf N. Paul * 3387 Sam Rayburn Run * Carrollton TX 75007 * (214) 306-9101
UUCP:   {texbell, killer, dalsqnt}!dcs!wnp
DOMAIN: wnp@killer.dallas.tx.us or wnp%dcs@texbell.swbt.com

allbery@ncoast.ORG (Brandon S. Allbery) (06/04/89)

As quoted from <8244@killer.DALLAS.TX.US> by wnp@killer.DALLAS.TX.US (Wolf Paul):
+---------------
| In article <4522@ncrcae.Columbia.NCR.COM> heath@ncrcae.Columbia.NCR.COM (Robert Heath) writes:
| >Does anyone have a dial(3C) library that is compatible with HoneyDanBer UUCP ?
| 
| Yes. I recently was looking at HDB source at a client's with a source license,
| and there is a comment in there to the effect that HDB does not use dial(3).
+---------------

"Curiouser and curiouser."  The system I use supports an HDB dial(3) -- but
a few versions behind the rest of the system.  For example, it doesn't know
about the ",M" subfield in Devices, although it knows about Dialers et al.

+---------------
| However, if all you need is superficial compatibility, primarily with
| the HDB lockfile scheme, it would probably be not too difficult to
| modify the dialinfo library by Gene Olson, which can be found in Volume 6
| of comp.sources.unix, at your nearest friendly archive site.
+---------------

Yes, but what of us who want to be able to use dial(3) to access HDB services
and don't have HDB source?  (I've written a terminal program which keeps its
noise in the status line, rather than scribbling on the screen the way cu
does, and invokes rz/sz to do file transfers.  Unfortunately, not having
dial(3) use HDB facilities means that I'm going to have to do a lot of extra
work to make it a reasonable replacement for "cu" -- boo, hiss, AT&T has a
lot of gall to make it etremely difficult to improve on that ugly beast cu!)

++Brandon
-- 
Brandon S. Allbery, moderator of comp.sources.misc	     allbery@ncoast.org
uunet!hal.cwru.edu!ncoast!allbery		    ncoast!allbery@hal.cwru.edu
      Send comp.sources.misc submissions to comp-sources-misc@<backbone>
NCoast Public Access UN*X - (216) 781-6201, 300/1200/2400 baud, login: makeuser

wnp@killer.DALLAS.TX.US (Wolf Paul) (06/06/89)

In article <13695@ncoast.ORG> allbery@ncoast.UUCP (Brandon S. Allbery) writes:
>As quoted from <8244@killer.DALLAS.TX.US> by wnp@killer.DALLAS.TX.US (Wolf Paul):
>+---------------
>| In article <4522@ncrcae.Columbia.NCR.COM> heath@ncrcae.Columbia.NCR.COM (Robert Heath) writes:
>| >Does anyone have a dial(3C) library that is compatible with HoneyDanBer UUCP ?
>| 
>| Yes. I recently was looking at HDB source at a client's with a source license,
>| and there is a comment in there to the effect that HDB does not use dial(3).

This quote is misleading -- I was not saying, "Yes, I have a HDB-compatible
dial(3) library" but rather, "Yes, AT&T abandoned dial(3), HDB does not use it."


>+---------------
>
>"Curiouser and curiouser."  The system I use supports an HDB dial(3) -- but
>a few versions behind the rest of the system.  For example, it doesn't know
>about the ",M" subfield in Devices, although it knows about Dialers et al.
>
>+---------------
>| However, if all you need is superficial compatibility, primarily with
>| the HDB lockfile scheme, it would probably be not too difficult to
>| modify the dialinfo library by Gene Olson, which can be found in Volume 6
>| of comp.sources.unix, at your nearest friendly archive site.
>+---------------
>
>Yes, but what of us who want to be able to use dial(3) to access HDB services
>and don't have HDB source?  (I've written a terminal program which keeps its
>noise in the status line, rather than scribbling on the screen the way cu
>does, and invokes rz/sz to do file transfers.  Unfortunately, not having
>dial(3) use HDB facilities means that I'm going to have to do a lot of extra
>work to make it a reasonable replacement for "cu" -- boo, hiss, AT&T has a
>lot of gall to make it etremely difficult to improve on that ugly beast cu!)

I suspect that with a complete set of man pages (which describe the contents
of the HDB data files) one could come up with a more than superficially 
compatible modification to dial(3).

Basically, as I understand it, it works like this:

1. You can have multiple sets of files, a different one for each program,
   i.e. cu, uucico, as well as your own. $LIBDIR/Sysfiles lists these.
   So the first thing is to look up your program name in $LIBDIR/Sysfiles.

2. If a system name is specified, you next look into the appropriate Systems
   file and find the first entry for that system. Grab all the info from it.

3. Next look in the Devices file for an entry which matches the dev and 
   baud fields from the Systems entry. Grab its info, which should include
   the name of the dialer.

4. Go look into the Dialers file to find th chat script for your modem.

5. Now, check the lockfile for the device, and if it does not exist (
   if the PID it contains is dead) create your own and write your PID
   into it in the form "%10s\n\0".

6. And finally, using the info from all of the above data files, 
   talk to your modem and place the call. If it fails go back to step
   two and grab the next entry for that system, etc.


7. If no system is specified, but a phone number and speed, just skip step
   two and go directly to step three.

I am sure this is not complete, but it is a starting point. My problem is
that I don't currently have time to do this.
-- 
Wolf N. Paul * 3387 Sam Rayburn Run * Carrollton TX 75007 * (214) 306-9101
UUCP:   {texbell, killer, dalsqnt}!dcs!wnp
DOMAIN: wnp@killer.dallas.tx.us or wnp%dcs@texbell.swbt.com