Subject: Patch for HP/UX server problem

From: Pavel Curtis <[email-masked]>
Date: Thu, 10 Jun 1993 15:19:27 -0700

Below is a patch for problems folks have had with the LambdaMOO server on HP
machines.  The patch changes the server to use something that HP/UX recognizes
as a request for BSD-style non-blocking I/O on network connections.

-- If you've hacked the server file net_bsd_tcp.c to change the value assigned
   to `proto->believe_eof', restore that line to its original form:

	proto->believe_eof = 1;

Then make these two changes to net_multi.c:

-- Add this line among the #include's at the top:

	#include "my-ioctl.h"

-- Replace the entire implementation of set_non_blocking() with the following:

	int
	set_non_blocking(int fd)
	{
	    int	yes = 1;

	    if (ioctl(fd, FIONBIO, &yes) < 0)
		return 0;
	    else
		return 1;
	}

That should do it.  I'll add code to the next release that automatically
employs this workaround when required.

	Pavel

---

From: [email-masked]
Date: Wed, 21 Jul 1993 23:57:27 -0700

As the title says, I just successfully compiled Moo-1.7.0
for RS/6000 !

Inspired by the HP/UX patch Pavel suggested, I once again
tried to install the Moo, this time with this patch, and
it worked. I used gcc to compile, btw. 
Here is Pavel's patch:

---------- include patch

	proto->believe_eof = 1;

	#include "my-ioctl.h"

	int
	set_non_blocking(int fd)
	{
	    int	yes = 1;

---------- end of include

If anybody wants to have the binaries, just contact me.

Ah, yes: my configuration was NET_BSD/MP_SELECT.
I had to change the NDECL_SELECT to 0 in config.h 

-- Stefan