From: crash@ckctpa.UUCP (Frank "Crash" Edwards)
Subject: Re: Compiling DNet with SysVr4 patches...
Date: Wed, 23 Dec 1992 03:32:59 GMT
Reply-To: crash%ckctpa@myrddin.sybus.com (Frank "Crash" Edwards)
Organization: Edwards & Edwards Consulting
Followup-To: comp.unix.amiga

[Note the Followup-to: line -- set for comp.unix.amiga]

bloc1469@ee.uwm.edu (Gregory R Block) writes:
>Has anyone been able to get the SysVr4 patches to work with DNet?
>They refuse to apply, it seems, correctly.  I'd be grateful if someone
>could apply the patches in #ifdef manner and manage to put it out for
>FTP somewhere.

Michael B. Smith was going to put them on amiga.physik; let me see if
I can find the email message...

Referring to the dnet package using Markus Wilde's BSD43-emul library:
> It would go on amiga.physik.unizh.ch in /pub/amiga/comm/dnet.

Referring to the BSD43-emul library itself:
> It's on amiga.physik in /pub/amix.
  ...
>                          Markus updates it regularly.

I said I'd post some additional patches that were needed, so here they
are.  Maybe people that lose this article will hear of it.  If so, I can
send the patches via email as well.

>Greg  

Add these lines starting at line 20.  Sorry it's not in patch format,
but I don't know what version of the file was put on amiga.physik, so
I didn't have any choice.

The first block used to have
	#include <sys/stropts.h>
in it, and as you can see, that was taken out and moved below.
Basically, the pty code would have tried to use the BSD /dev/pty*
stuff and failed every time.  This is because I based the SVR4 code
on "#ifdef I_PUSH" and I_PUSH is only defined in <sys/stropts.h> which
isn't included unless __svr4__ is defined, and of course it wasn't.
(Whew!  If you understand _that_, more power to you. :-)
------------------------------------------------------------------------
    #ifdef __svr4__
    # include <string.h>
    #else
    # include <strings.h>
    #endif

    #if defined(AMIX) || defined(__svr4__)
    typedef unsigned char unchar;
    # define FMNAMESZ	8
    # include "/usr/include/sys/stropts.h"
    #endif
------------------------------------------------------------------------
My code compiles and links.  If you'd like to try a DNet connection
and tell me that it works or doesn't work, go right ahead.  You can
get to my machine via 1-813-787-3675, login as guest, no password
(just hit RETURN).  It's a restricted account, so just the DNet binaries
and a small subset of Unix commands are available.  You'll be dumped in
a fake "/" which is the top-level directory where I keep my archived
sources.  Feel free to browse and "putfiles" (ie, download) anything you
want.  When you log in and start dnet, it will automatically append to a
log file that'll record which DNet clients started up and their execution
status (for debugging purposes).

The DNet source that the executables were built from is in /Comm/DnetWorks
and it's subdirectories.

Since I can't allow "mail" to be executed, the only way to leave a message
is either to use regular email from your home acount, or to use the file
transfer facilities to leave a file in /tmp.
-- 
Frank "Crash" Edwards          Edwards & Edwards Consulting
Fax:  813/786-6526             crash%ckctpa@myrddin.sybus.com, but please
Home: 813/786-3675             don't ask UUNET to route it -- it's sloooow.
    "You can't have everything.  Where would you put it?"
	    -- Steven Wright