Commit 999918be authored by ROOL's avatar ROOL 🤖
Browse files

This commit was manufactured by cvs2git to create branch 'Ursula'.

Sprout from master 1998-05-06 11:35:35 UTC Stewart Brodie <sbrodie@gitlab.riscosopen.org> 'Minor modification to Makefile to force a copy of sys.h.ioctl_comp to'
Cherrypick from master 1997-03-06 14:28:02 UTC Richard Buckley <rbuckley@gitlab.riscosopen.org> 'Imported from Babel':
    rpclib/rpc/Makefile
    rpclib/rpc/c/clnt_udp
Cherrypick from master 1998-06-09 14:42:28 UTC Carl Elkins <celkins@gitlab.riscosopen.org> 'Modified static buffer length used for hostname lookup in':
    inetlib/c/gethent
parent bba967d4
......@@ -37,7 +37,7 @@ static char sccsid[] = "@(#)gethostent.c 5.3 (Berkeley) 3/9/86";
* Internet version.
*/
#define MAXALIASES 35
#define MAXADDRSIZE 14
#define MAXADDRSIZE 64 /* This up'd from 14 : 980609 RCE */
#define LBUFSIZ 255
static char HOSTDB[] = "InetDBase:Hosts";
......
This diff is collapsed.
......@@ -37,14 +37,6 @@ static char sccsid[] = "@(#)clnt_udp.c 1.39 87/08/11 Copyr 1984 Sun Micro";
* Copyright (C) 1984, Sun Microsystems, Inc.
*/
/* Acorn modification history:
Date Who Comments
------------------------------------------------------------------------------
04-Mar-97 jmf Treat ENOBUFS from sendto() as transient (like EIO).
*/
#include <stdio.h>
#include <rpc/rpc.h>
#include <sys/socket.h>
......@@ -310,7 +302,7 @@ call_again:
send_again:
if (sendto(cu->cu_sock, cu->cu_outbuf, outlen, 0,
(struct sockaddr *)&(cu->cu_raddr), cu->cu_rlen)
!= outlen && errno != EIO && errno != ENOBUFS)
!= outlen && errno != EIO)
{
cu->cu_error.re_errno = errno;
return (cu->cu_error.re_status = RPC_CANTSEND);
......@@ -631,7 +623,7 @@ db(("co_sendagain "));
if (sendto(cu->cu_sock, cu->cu_outbuf, data->outlen, 0,
(struct sockaddr *)&(cu->cu_raddr), cu->cu_rlen)
!= data->outlen && errno != EIO && errno != ENOBUFS)
!= data->outlen && errno != EIO)
{
data->next_op = op_error;
cu->cu_error.re_errno = errno;
......@@ -899,6 +891,7 @@ db(("clntudp_polltransfer\n"));
res = schedule(data);
if (res != RPC_SUCCESS)
return res; /* return error */
else if (data->next_op == op_wait)
return RPC_BUSY; /* special return value to indicate we are awaiting a reply from the server */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment