home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / sys / amiga / programm / 17731 < prev    next >
Encoding:
Internet Message Format  |  1992-12-23  |  3.7 KB

  1. Xref: sparky comp.sys.amiga.programmer:17731 comp.sys.amiga.datacomm:8334 comp.unix.amiga:2598
  2. Newsgroups: comp.sys.amiga.programmer,comp.sys.amiga.datacomm,comp.unix.amiga
  3. Path: sparky!uunet!sybus.sybus.com!myrddin!tct!ckctpa!crash
  4. From: crash@ckctpa.UUCP (Frank "Crash" Edwards)
  5. Subject: Re: Compiling DNet with SysVr4 patches...
  6. Message-ID: <1992Dec23.033259.4181@ckctpa.UUCP>
  7. Date: Wed, 23 Dec 1992 03:32:59 GMT
  8. Reply-To: crash%ckctpa@myrddin.sybus.com (Frank "Crash" Edwards)
  9. References: <1h6b24INNh4e@uwm.edu>
  10. Organization: Edwards & Edwards Consulting
  11. Followup-To: comp.unix.amiga
  12. Lines: 73
  13.  
  14. [Note the Followup-to: line -- set for comp.unix.amiga]
  15.  
  16. bloc1469@ee.uwm.edu (Gregory R Block) writes:
  17. >Has anyone been able to get the SysVr4 patches to work with DNet?
  18. >They refuse to apply, it seems, correctly.  I'd be grateful if someone
  19. >could apply the patches in #ifdef manner and manage to put it out for
  20. >FTP somewhere.
  21.  
  22. Michael B. Smith was going to put them on amiga.physik; let me see if
  23. I can find the email message...
  24.  
  25. Referring to the dnet package using Markus Wilde's BSD43-emul library:
  26. > It would go on amiga.physik.unizh.ch in /pub/amiga/comm/dnet.
  27.  
  28. Referring to the BSD43-emul library itself:
  29. > It's on amiga.physik in /pub/amix.
  30.   ...
  31. >                          Markus updates it regularly.
  32.  
  33. I said I'd post some additional patches that were needed, so here they
  34. are.  Maybe people that lose this article will hear of it.  If so, I can
  35. send the patches via email as well.
  36.  
  37. >Greg  
  38.  
  39. Add these lines starting at line 20.  Sorry it's not in patch format,
  40. but I don't know what version of the file was put on amiga.physik, so
  41. I didn't have any choice.
  42.  
  43. The first block used to have
  44.     #include <sys/stropts.h>
  45. in it, and as you can see, that was taken out and moved below.
  46. Basically, the pty code would have tried to use the BSD /dev/pty*
  47. stuff and failed every time.  This is because I based the SVR4 code
  48. on "#ifdef I_PUSH" and I_PUSH is only defined in <sys/stropts.h> which
  49. isn't included unless __svr4__ is defined, and of course it wasn't.
  50. (Whew!  If you understand _that_, more power to you. :-)
  51. ------------------------------------------------------------------------
  52.     #ifdef __svr4__
  53.     # include <string.h>
  54.     #else
  55.     # include <strings.h>
  56.     #endif
  57.  
  58.     #if defined(AMIX) || defined(__svr4__)
  59.     typedef unsigned char unchar;
  60.     # define FMNAMESZ    8
  61.     # include "/usr/include/sys/stropts.h"
  62.     #endif
  63. ------------------------------------------------------------------------
  64. My code compiles and links.  If you'd like to try a DNet connection
  65. and tell me that it works or doesn't work, go right ahead.  You can
  66. get to my machine via 1-813-787-3675, login as guest, no password
  67. (just hit RETURN).  It's a restricted account, so just the DNet binaries
  68. and a small subset of Unix commands are available.  You'll be dumped in
  69. a fake "/" which is the top-level directory where I keep my archived
  70. sources.  Feel free to browse and "putfiles" (ie, download) anything you
  71. want.  When you log in and start dnet, it will automatically append to a
  72. log file that'll record which DNet clients started up and their execution
  73. status (for debugging purposes).
  74.  
  75. The DNet source that the executables were built from is in /Comm/DnetWorks
  76. and it's subdirectories.
  77.  
  78. Since I can't allow "mail" to be executed, the only way to leave a message
  79. is either to use regular email from your home acount, or to use the file
  80. transfer facilities to leave a file in /tmp.
  81. -- 
  82. Frank "Crash" Edwards          Edwards & Edwards Consulting
  83. Fax:  813/786-6526             crash%ckctpa@myrddin.sybus.com, but please
  84. Home: 813/786-3675             don't ask UUNET to route it -- it's sloooow.
  85.     "You can't have everything.  Where would you put it?"
  86.         -- Steven Wright
  87.