|
@@ -48,7 +48,7 @@ begin
|
|
{$else}
|
|
{$else}
|
|
r:=send(handle,bufptr^,bufpos,0);
|
|
r:=send(handle,bufptr^,bufpos,0);
|
|
{$endif}
|
|
{$endif}
|
|
- until (r<>-1) or (errno<>EsysEINTR);
|
|
|
|
|
|
+ until (r<>-1) or (socketerror<>EsockEINTR);
|
|
bufend:=r;
|
|
bufend:=r;
|
|
def_error:=101; {File write error.}
|
|
def_error:=101; {File write error.}
|
|
end;
|
|
end;
|
|
@@ -60,19 +60,19 @@ begin
|
|
{$else}
|
|
{$else}
|
|
r:=recv(handle,bufptr^,bufsize,0);
|
|
r:=recv(handle,bufptr^,bufsize,0);
|
|
{$endif}
|
|
{$endif}
|
|
- until (r<>-1) or (errno<>EsysEINTR);
|
|
|
|
|
|
+ until (r<>-1) or (socketerror<>EsockEINTR);
|
|
bufend:=r;
|
|
bufend:=r;
|
|
def_error:=100; {File read error.}
|
|
def_error:=100; {File read error.}
|
|
end;
|
|
end;
|
|
end;
|
|
end;
|
|
if r=-1 then
|
|
if r=-1 then
|
|
case errno of
|
|
case errno of
|
|
- EsysEBADF:
|
|
|
|
|
|
+ EsockEBADF:
|
|
{ EsysENOTSOCK:} {Why is this constant not defined? (DM)}
|
|
{ EsysENOTSOCK:} {Why is this constant not defined? (DM)}
|
|
inoutres:=6; {Invalid file handle.}
|
|
inoutres:=6; {Invalid file handle.}
|
|
- EsysEFAULT:
|
|
|
|
|
|
+ EsockEFAULT:
|
|
inoutres:=217;
|
|
inoutres:=217;
|
|
- EsysEINVAL:
|
|
|
|
|
|
+ EsockEINVAL:
|
|
inoutres:=218;
|
|
inoutres:=218;
|
|
else
|
|
else
|
|
inoutres:=def_error;
|
|
inoutres:=def_error;
|