Bugzilla bug 132940: the HPUX, Solaris, AIX, and Linux SendFile functions

should call pt_MapError, if only to be consistent with the other I/O
functions.
This commit is contained in:
wtc%netscape.com 2002-03-27 15:30:09 +00:00
parent 1becbadf07
commit dd39f845b3

View File

@ -2162,7 +2162,7 @@ static PRInt32 pt_AIXSendFile(PRFileDesc *sd, PRSendFileData *sfd,
}
if (count == -1) {
_MD_aix_map_sendfile_error(syserrno);
pt_MapError(_MD_aix_map_sendfile_error, syserrno);
return -1;
}
if (flags & PR_TRANSMITFILE_CLOSE_SOCKET) {
@ -2285,7 +2285,7 @@ static PRInt32 pt_HPUXSendFile(PRFileDesc *sd, PRSendFileData *sfd,
}
if (count == -1) {
_MD_hpux_map_sendfile_error(syserrno);
pt_MapError(_MD_hpux_map_sendfile_error, syserrno);
return -1;
}
if (flags & PR_TRANSMITFILE_CLOSE_SOCKET) {
@ -2415,7 +2415,7 @@ static PRInt32 pt_SolarisSendFile(PRFileDesc *sd, PRSendFileData *sfd,
done:
if (count == -1) {
_MD_solaris_map_sendfile_error(syserrno);
pt_MapError(_MD_solaris_map_sendfile_error, syserrno);
return -1;
}
if (flags & PR_TRANSMITFILE_CLOSE_SOCKET) {
@ -2582,7 +2582,7 @@ static PRInt32 pt_LinuxSendFile(PRFileDesc *sd, PRSendFileData *sfd,
count = pt_Continue(&op);
syserrno = op.syserrno;
if (count == -1) {
_MD_linux_map_sendfile_error(syserrno);
pt_MapError(_MD_linux_map_sendfile_error, syserrno);
goto failed;
}
}