/*
- * $Id: errorpage.cc,v 1.83 1997/10/21 17:21:32 kostas Exp $
+ * $Id: errorpage.cc,v 1.84 1997/10/24 18:10:36 wessels Exp $
*
* DEBUG: section 4 Error Generation
* AUTHOR: Duane Wessels
p = "UNKNOWN\n";
break;
case 'e':
- snprintf(buf, CVT_BUF_SZ, "%d", err->errno);
+ snprintf(buf, CVT_BUF_SZ, "%d", err->xerrno);
p = buf;
break;
case 'E':
- snprintf(buf, CVT_BUF_SZ, "(%d) %s", err->errno, strerror(err->errno));
+ snprintf(buf, CVT_BUF_SZ, "(%d) %s", err->xerrno, strerror(err->xerrno));
p = buf;
break;
case 'w':
/*
- * $Id: ftp.cc,v 1.148 1997/10/24 03:14:37 wessels Exp $
+ * $Id: ftp.cc,v 1.149 1997/10/24 18:10:37 wessels Exp $
*
* DEBUG: section 9 File Transfer Protocol (FTP)
* AUTHOR: Harvest Derived
if (entry->mem_obj->inmem_hi == 0) {
err = xcalloc(1, sizeof(ErrorState));
err->type = ERR_READ_ERROR;
- err->errno = errno;
+ err->xerrno = errno;
err->http_status = HTTP_INTERNAL_SERVER_ERROR;
err->request = requestLink(ftpState->request);
errorAppendEntry(entry, err);
} else if (len == 0 && entry->mem_obj->inmem_hi == 0) {
err = xcalloc(1, sizeof(ErrorState));
err->type = ERR_ZERO_SIZE_OBJECT;
- err->errno = errno;
+ err->xerrno = errno;
err->http_status = HTTP_SERVICE_UNAVAILABLE;
err->request = requestLink(ftpState->request);
errorAppendEntry(entry, err);
err = xcalloc(1, sizeof(ErrorState));
err->type = ERR_SOCKET_FAILURE;
err->http_status = HTTP_INTERNAL_SERVER_ERROR;
- err->errno = errno;
+ err->xerrno = errno;
err->request = requestLink(ftpState->request);
errorAppendEntry(entry, err);
storeAbort(entry, 0);
err = xcalloc(1, sizeof(ErrorState));
err->type = ERR_CONNECT_FAIL;
err->http_status = HTTP_SERVICE_UNAVAILABLE;
- err->errno = errno;
+ err->xerrno = errno;
err->host = xstrdup(request->host);
err->port = request->port;
err->request = requestLink(request);
err = xcalloc(1, sizeof(ErrorState));
err->type = ERR_WRITE_ERROR;
err->http_status = HTTP_SERVICE_UNAVAILABLE;
- err->errno = errno;
+ err->xerrno = errno;
err->request = requestLink(ftpState->request);
errorAppendEntry(entry, err);
}
err = xcalloc(1, sizeof(ErrorState));
err->type = ERR_READ_ERROR;
err->http_status = HTTP_INTERNAL_SERVER_ERROR;
- err->errno = errno;
+ err->xerrno = errno;
err->request = requestLink(ftpState->request);
errorAppendEntry(entry, err);
}
err = xcalloc(1, sizeof(ErrorState));
err->type = ERR_READ_ERROR;
err->http_status = HTTP_INTERNAL_SERVER_ERROR;
- err->errno = errno;
+ err->xerrno = errno;
err->request = requestLink(ftpState->request);
errorAppendEntry(entry, err);
}
err = xcalloc(1, sizeof(ErrorState));
err->type = ERR_CONNECT_FAIL;
err->http_status = HTTP_SERVICE_UNAVAILABLE;
- err->errno = errno;
+ err->xerrno = errno;
err->host = xstrdup(ftpState->data.host);
err->port = ftpState->data.port;
err->request = requestLink(request);
/*
- * $Id: gopher.cc,v 1.102 1997/10/23 16:38:10 wessels Exp $
+ * $Id: gopher.cc,v 1.103 1997/10/24 18:10:38 wessels Exp $
*
* DEBUG: section 10 Gopher
* AUTHOR: Harvest Derived
ErrorState *err;
err = xcalloc(1, sizeof(ErrorState));
err->type = ERR_READ_ERROR;
- err->errno = errno;
+ err->xerrno = errno;
err->http_status = HTTP_INTERNAL_SERVER_ERROR;
err->url = entry->url;
errorAppendEntry(entry, err);
ErrorState *err;
err = xcalloc(1, sizeof(ErrorState));
err->type = ERR_ZERO_SIZE_OBJECT;
- err->errno = errno;
+ err->xerrno = errno;
err->http_status = HTTP_SERVICE_UNAVAILABLE;
err->url = gopherState->request;
errorAppendEntry(entry, err);
ErrorState *err;
err = xcalloc(1, sizeof(ErrorState));
err->type = ERR_CONNECT_FAIL;
- err->errno = errno;
+ err->xerrno = errno;
err->host = xstrdup(gopherState->host);
err->port = gopherState->port;
err->http_status = HTTP_SERVICE_UNAVAILABLE;
/* was assert */
err = xcalloc(1, sizeof(ErrorState));
err->type = ERR_SOCKET_FAILURE;
- err->errno = errno;
+ err->xerrno = errno;
err->http_status = HTTP_INTERNAL_SERVER_ERROR;
if (entry && entry->url)
err->url = entry->url;
err = xcalloc(1, sizeof(ErrorState));
err->type = ERR_CONNECT_FAIL;
err->http_status = HTTP_SERVICE_UNAVAILABLE;
- err->errno = errno;
+ err->xerrno = errno;
err->host = xstrdup(gopherState->host);
err->port = gopherState->port;
err->url = entry->url;
/*
- * $Id: http.cc,v 1.198 1997/10/23 23:27:19 wessels Exp $
+ * $Id: http.cc,v 1.199 1997/10/24 18:10:39 wessels Exp $
*
* DEBUG: section 11 Hypertext Transfer Protocol (HTTP)
* AUTHOR: Harvest Derived
if (clen == 0) {
err = xcalloc(1, sizeof(ErrorState));
err->type = ERR_READ_ERROR;
- err->errno = errno;
+ err->xerrno = errno;
err->http_status = HTTP_INTERNAL_SERVER_ERROR;
err->request = requestLink(httpState->request);
errorAppendEntry(entry, err);
httpState->eof = 1;
err = xcalloc(1, sizeof(ErrorState));
err->type = ERR_ZERO_SIZE_OBJECT;
- err->errno = errno;
+ err->xerrno = errno;
err->http_status = HTTP_SERVICE_UNAVAILABLE;
err->request = requestLink(httpState->request);
errorAppendEntry(entry, err);
err = xcalloc(1, sizeof(ErrorState));
err->type = ERR_WRITE_ERROR;
err->http_status = HTTP_INTERNAL_SERVER_ERROR;
- err->errno = errno;
+ err->xerrno = errno;
err->request = requestLink(httpState->request);
errorAppendEntry(entry, err);
storeAbort(entry, 0);
err = xcalloc(1, sizeof(ErrorState));
err->type = ERR_SOCKET_FAILURE;
err->http_status = HTTP_INTERNAL_SERVER_ERROR;
- err->errno = errno;
+ err->xerrno = errno;
if (request)
err->request = requestLink(request);
errorAppendEntry(entry, err);
err = xcalloc(1, sizeof(ErrorState));
err->type = ERR_CONNECT_FAIL;
err->http_status = HTTP_SERVICE_UNAVAILABLE;
- err->errno = errno;
+ err->xerrno = errno;
err->host = xstrdup(request->host);
err->port = request->port;
err->request = requestLink(request);
/*
- * $Id: ssl.cc,v 1.63 1997/10/20 19:25:22 wessels Exp $
+ * $Id: ssl.cc,v 1.64 1997/10/24 18:10:40 wessels Exp $
*
* DEBUG: section 26 Secure Sockets Layer Proxy
* AUTHOR: Duane Wessels
err = xcalloc(1, sizeof(ErrorState));
err->type = ERR_CONNECT_FAIL;
err->http_status = HTTP_SERVICE_UNAVAILABLE;
- err->errno = errno;
+ err->xerrno = errno;
err->host = xstrdup(sslState->host);
err->port = sslState->port;
err->request = requestLink(request);
err = xcalloc(1, sizeof(ErrorState));
err->type = ERR_SOCKET_FAILURE;
err->http_status = HTTP_INTERNAL_SERVER_ERROR;
- err->errno = errno;
+ err->xerrno = errno;
err->request = requestLink(request);
errorSend(fd, err);
return;
http_status http_status;
request_t *request;
char *url;
- int errno;
+ int xerrno;
char *host;
u_short port;
char *dnsserver_msg;
/*
- * $Id: tunnel.cc,v 1.63 1997/10/20 19:25:22 wessels Exp $
+ * $Id: tunnel.cc,v 1.64 1997/10/24 18:10:40 wessels Exp $
*
* DEBUG: section 26 Secure Sockets Layer Proxy
* AUTHOR: Duane Wessels
err = xcalloc(1, sizeof(ErrorState));
err->type = ERR_CONNECT_FAIL;
err->http_status = HTTP_SERVICE_UNAVAILABLE;
- err->errno = errno;
+ err->xerrno = errno;
err->host = xstrdup(sslState->host);
err->port = sslState->port;
err->request = requestLink(request);
err = xcalloc(1, sizeof(ErrorState));
err->type = ERR_SOCKET_FAILURE;
err->http_status = HTTP_INTERNAL_SERVER_ERROR;
- err->errno = errno;
+ err->xerrno = errno;
err->request = requestLink(request);
errorSend(fd, err);
return;
/*
- * $Id: wais.cc,v 1.88 1997/10/23 16:38:16 wessels Exp $
+ * $Id: wais.cc,v 1.89 1997/10/24 18:10:41 wessels Exp $
*
* DEBUG: section 24 WAIS Relay
* AUTHOR: Harvest Derived
ErrorState *err;
err = xcalloc(1, sizeof(ErrorState));
err->type = ERR_ZERO_SIZE_OBJECT;
- err->errno = errno;
+ err->xerrno = errno;
err->http_status = HTTP_SERVICE_UNAVAILABLE;
err->request = urlParse(METHOD_CONNECT, waisState->request);
errorAppendEntry(entry, err);
ErrorState *err;
err = xcalloc(1, sizeof(ErrorState));
err->type = ERR_CONNECT_FAIL;
- err->errno = errno;
+ err->xerrno = errno;
err->host = xstrdup(waisState->relayhost);
err->port = waisState->relayport;
err->http_status = HTTP_SERVICE_UNAVAILABLE;
err = xcalloc(1, sizeof(ErrorState));
err->type = ERR_CONNECT_FAIL;
err->http_status = HTTP_SERVICE_UNAVAILABLE;
- err->errno = errno;
+ err->xerrno = errno;
err->host = xstrdup(waisState->relayhost);
err->port = waisState->relayport;
err->request = urlParse(METHOD_CONNECT, request);