You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by bj...@locus.apache.org on 2000/03/03 06:26:41 UTC
cvs commit: apache-2.0/src/lib/apr/file_io/os2 readwrite.c
bjh 00/03/02 21:26:40
Modified: src/lib/apr/file_io/os2 readwrite.c
Log:
OS/2: Update ap_writev() to take new parameters.
Revision Changes Path
1.13 +4 -4 apache-2.0/src/lib/apr/file_io/os2/readwrite.c
Index: readwrite.c
===================================================================
RCS file: /home/cvs/apache-2.0/src/lib/apr/file_io/os2/readwrite.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- readwrite.c 2000/02/21 16:41:39 1.12
+++ readwrite.c 2000/03/03 05:26:40 1.13
@@ -183,15 +183,15 @@
#ifdef HAVE_WRITEV
-ap_status_t ap_writev(struct file_t *thefile, const struct iovec *vec, ap_ssize_t *iocnt)
+ap_status_t ap_writev(struct file_t *thefile, const struct iovec *vec, ap_size_t nvec, ap_ssize_t *nbytes)
{
int bytes;
- if ((bytes = writev(thefile->filedes, vec, *iocnt)) < 0) {
- *iocnt = bytes;
+ if ((bytes = writev(thefile->filedes, vec, nvec)) < 0) {
+ *nbytes = 0;
return errno;
}
else {
- *iocnt = bytes;
+ *nbytes = bytes;
return APR_SUCCESS;
}
}