diff options
author | stoddard <stoddard@13f79535-47bb-0310-9956-ffa450edef68> | 2000-02-18 18:05:18 +0000 |
---|---|---|
committer | stoddard <stoddard@13f79535-47bb-0310-9956-ffa450edef68> | 2000-02-18 18:05:18 +0000 |
commit | 84088bde20344994d103f29b4229dc4bf02c70e5 (patch) | |
tree | 105c66c3054d61027442cf9361d8413857e8e417 | |
parent | 162b69b5cdbe6286941a830952bbc8fc18dc40ef (diff) | |
download | libapr-84088bde20344994d103f29b4229dc4bf02c70e5.tar.gz |
Pass ap_iovec_t on writev calls.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59660 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | aprlib.def | 2 | ||||
-rw-r--r-- | file_io/win32/readwrite.c | 11 | ||||
-rw-r--r-- | include/apr_file_io.h | 2 | ||||
-rw-r--r-- | libapr.def | 2 |
4 files changed, 14 insertions, 3 deletions
diff --git a/aprlib.def b/aprlib.def index ae6bf83c8..a82b8feea 100644 --- a/aprlib.def +++ b/aprlib.def @@ -20,7 +20,7 @@ EXPORTS ; ap_get_filesize @12 ; ap_get_fileatime @13 ; ap_get_filectime @14 -; ap_get_filemtime @15 + ap_make_iov @15 ap_dupfile @16 ap_getfileinfo @17 ap_open @18 diff --git a/file_io/win32/readwrite.c b/file_io/win32/readwrite.c index d3cb58209..9350f9495 100644 --- a/file_io/win32/readwrite.c +++ b/file_io/win32/readwrite.c @@ -63,6 +63,17 @@ #define GetFilePointer(hfile) SetFilePointer(hfile,0,NULL, FILE_CURRENT) +ap_status_t ap_make_iov(struct iovec_t **new, const struct iovec *iova, ap_context_t *cntxt) +{ + (*new) = ap_palloc(cntxt, sizeof(struct iovec_t)); + if ((*new) == NULL) { + return APR_ENOMEM; + } + (*new)->cntxt = cntxt; + (*new)->theiov = iova; + return APR_SUCCESS; +} + ap_status_t ap_read(struct file_t *thefile, void *buf, ap_ssize_t *nbytes) { DWORD bread; diff --git a/include/apr_file_io.h b/include/apr_file_io.h index a9b9e1237..b352bb307 100644 --- a/include/apr_file_io.h +++ b/include/apr_file_io.h @@ -146,7 +146,7 @@ ap_status_t ap_flush(ap_file_t *); API_EXPORT(int) ap_fprintf(ap_file_t *fptr, const char *format, ...) __attribute__((format(printf,2,3))); -ap_status_t ap_make_iov(ap_iovec_t **, struct iovec *, ap_context_t *); +ap_status_t ap_make_iov(ap_iovec_t **, const struct iovec *, ap_context_t *); ap_status_t ap_dupfile(ap_file_t **, ap_file_t *); ap_status_t ap_getfileinfo(ap_finfo_t *finfo, ap_file_t *thefile); ap_status_t ap_stat(ap_finfo_t *finfo, const char *fname, ap_context_t *cont); diff --git a/libapr.def b/libapr.def index ae6bf83c8..a82b8feea 100644 --- a/libapr.def +++ b/libapr.def @@ -20,7 +20,7 @@ EXPORTS ; ap_get_filesize @12 ; ap_get_fileatime @13 ; ap_get_filectime @14 -; ap_get_filemtime @15 + ap_make_iov @15 ap_dupfile @16 ap_getfileinfo @17 ap_open @18 |