From: Roy T. Fielding Date: Thu, 26 Aug 1999 07:21:44 +0000 (+0000) Subject: Replace file descriptor with APRFile [Dean] X-Git-Tag: PRE_APR_CHANGES~40 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b09d9fa1cc6c901a165b0cf3777f545b1bd5f075;p=apache Replace file descriptor with APRFile [Dean] git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@83762 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/include/http_protocol.h b/include/http_protocol.h index 3824c1aba0..dedf134589 100644 --- a/include/http_protocol.h +++ b/include/http_protocol.h @@ -131,8 +131,8 @@ API_EXPORT(int) ap_meets_conditions(request_rec *r); * (Ditto the send_header stuff). */ -API_EXPORT(long) ap_send_fd(FILE *f, request_rec *r); -API_EXPORT(long) ap_send_fd_length(FILE *f, request_rec *r, long length); +API_EXPORT(long) ap_send_fd(APRFile fd, request_rec *r); +API_EXPORT(long) ap_send_fd_length(APRFile fd, request_rec *r, long length); API_EXPORT(long) ap_send_fb(BUFF *f, request_rec *r); API_EXPORT(long) ap_send_fb_length(BUFF *f, request_rec *r, long length); diff --git a/include/httpd.h b/include/httpd.h index 7f19d99cc5..3dbe5e4dca 100644 --- a/include/httpd.h +++ b/include/httpd.h @@ -72,6 +72,7 @@ extern "C" { #include "alloc.h" #include "buff.h" #include "ap.h" +#include "apr.h" /* ----------------------------- config dir ------------------------------ */ @@ -1110,7 +1111,7 @@ extern API_VAR_EXPORT time_t ap_restart_time; #ifdef NO_SLACK #define ap_slack(fd,line) (fd) #else -int ap_slack(int fd, int line); +APRFile ap_slack(APRFile fd, int line); #define AP_SLACK_LOW 1 #define AP_SLACK_HIGH 2 #endif diff --git a/include/util_md5.h b/include/util_md5.h index 0a0dc9c9b3..58cfefd680 100644 --- a/include/util_md5.h +++ b/include/util_md5.h @@ -70,7 +70,7 @@ API_EXPORT(char *) ap_md5contextTo64(pool *p, AP_MD5_CTX * context); #ifdef CHARSET_EBCDIC API_EXPORT(char *) ap_md5digest(pool *p, FILE *infile, int convert); #else -API_EXPORT(char *) ap_md5digest(pool *p, FILE *infile); +API_EXPORT(char *) ap_md5digest(pool *p, APRFile infile); #endif /* CHARSET_EBCDIC */ #ifdef __cplusplus