From: William A. Rowe Jr Date: Sun, 20 Jan 2002 22:45:14 +0000 (+0000) Subject: Several final namespace changes. Exports (with an ap_ prefix!) the X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cfe8c0644f8969ae7bd7b9ddb0cdc3f38ee58058;p=thirdparty%2Fapache%2Fhttpd.git Several final namespace changes. Exports (with an ap_ prefix!) the useful sendwithtimeout/recvwithtimeout symbols. How useful? SSL needs them, and proxy_connect should probably use them as well. And corrects two newly exported (never released) symbols since they did not require the _NONSTD semantics. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/1.3.x@92953 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/ApacheCore.def b/src/ApacheCore.def index 684878dfbe0..7e05c45e9a3 100644 --- a/src/ApacheCore.def +++ b/src/ApacheCore.def @@ -440,3 +440,5 @@ EXPORTS ap_set_callback_and_alarm @432 ap_set_sub_req_protocol @433 ap_update_child_status @434 + ap_sendwithtimeout @435 + ap_recvwithtimeout @436 diff --git a/src/include/http_main.h b/src/include/http_main.h index 38edb338dea..b9593c813c9 100644 --- a/src/include/http_main.h +++ b/src/include/http_main.h @@ -125,7 +125,7 @@ API_EXPORT(void) ap_child_terminate(request_rec *r); API_EXPORT(void) ap_sync_scoreboard_image(void); API_EXPORT(int) ap_update_child_status(int child_num, int status, request_rec *r); void ap_time_process_request(int child_num, int status); -API_EXPORT_NONSTD(unsigned int) ap_set_callback_and_alarm(void (*fn) (int), int x); +API_EXPORT(unsigned int) ap_set_callback_and_alarm(void (*fn) (int), int x); API_EXPORT(int) ap_check_alarm(void); void setup_signal_names(char *prefix); diff --git a/src/include/http_vhost.h b/src/include/http_vhost.h index 60618963d63..87f5ace62ab 100644 --- a/src/include/http_vhost.h +++ b/src/include/http_vhost.h @@ -73,7 +73,7 @@ API_EXPORT(void) ap_fini_vhost_config(pool *p, server_rec *main_server); API_EXPORT(const char *) ap_parse_vhost_addrs(pool *p, const char *hostname, server_rec *s); /* handle NameVirtualHost directive */ -API_EXPORT_NONSTD(const char *) ap_set_name_virtual_host (cmd_parms *cmd, void *dummy, char *arg); +API_EXPORT(const char *) ap_set_name_virtual_host (cmd_parms *cmd, void *dummy, char *arg); /* given an ip address only, give our best guess as to what vhost it is */ API_EXPORT(void) ap_update_vhost_given_ip(conn_rec *conn); diff --git a/src/main/buff.c b/src/main/buff.c index 55346597c68..8c5fdc2a955 100644 --- a/src/main/buff.c +++ b/src/main/buff.c @@ -128,7 +128,7 @@ select() sometimes returns 1 even though the write will block. We must work around this. */ -int sendwithtimeout(int sock, const char *buf, int len, int flags) +API_EXPORT(int) ap_sendwithtimeout(int sock, const char *buf, int len, int flags) { int iostate = 1; fd_set fdset; @@ -195,7 +195,7 @@ int sendwithtimeout(int sock, const char *buf, int len, int flags) } -int recvwithtimeout(int sock, char *buf, int len, int flags) +API_EXPORT(int) ap_recvwithtimeout(int sock, char *buf, int len, int flags) { int iostate = 1; fd_set fdset; @@ -284,7 +284,7 @@ static ap_inline int buff_read(BUFF *fb, void *buf, int nbyte) #if defined (WIN32) || defined(NETWARE) || defined(CYGWIN_WINSOCK) if (fb->flags & B_SOCKET) { - rv = recvwithtimeout(fb->fd_in, buf, nbyte, 0); + rv = ap_recvwithtimeout(fb->fd_in, buf, nbyte, 0); if (rv == SOCKET_ERROR) errno = WSAGetLastError(); } @@ -361,7 +361,7 @@ static ap_inline int buff_write(BUFF *fb, const void *buf, int nbyte) #if defined(WIN32) || defined(NETWARE) if (fb->flags & B_SOCKET) { - rv = sendwithtimeout(fb->fd, buf, nbyte, 0); + rv = ap_sendwithtimeout(fb->fd, buf, nbyte, 0); if (rv == SOCKET_ERROR) errno = WSAGetLastError(); } diff --git a/src/main/http_main.c b/src/main/http_main.c index 23cac62f2dc..e491c86b7cf 100644 --- a/src/main/http_main.c +++ b/src/main/http_main.c @@ -1582,7 +1582,7 @@ static void alrm_handler(int sig) } #endif -API_EXPORT_NONSTD(unsigned int) ap_set_callback_and_alarm(void (*fn) (int), int x) +API_EXPORT(unsigned int) ap_set_callback_and_alarm(void (*fn) (int), int x) { unsigned int old; diff --git a/src/main/http_vhost.c b/src/main/http_vhost.c index 9947e8d8adb..a35d83e76da 100644 --- a/src/main/http_vhost.c +++ b/src/main/http_vhost.c @@ -268,7 +268,7 @@ API_EXPORT(const char *) ap_parse_vhost_addrs(pool *p, const char *hostname, ser } -API_EXPORT_NONSTD(const char *) ap_set_name_virtual_host (cmd_parms *cmd, void *dummy, char *arg) +API_EXPORT(const char *) ap_set_name_virtual_host (cmd_parms *cmd, void *dummy, char *arg) { /* use whatever port the main server has at this point */ return get_addresses(cmd->pool, arg, &name_vhost_list_tail, diff --git a/src/os/netware/ApacheCore.imp b/src/os/netware/ApacheCore.imp index 9fbbb9b01bc..5458f7d082e 100644 --- a/src/os/netware/ApacheCore.imp +++ b/src/os/netware/ApacheCore.imp @@ -415,3 +415,5 @@ ap_set_callback_and_alarm, ap_set_sub_req_protocol, ap_update_child_status, + ap_sendwithtimeout, + ap_recvwithtimeout,