const char *pathname;
apr_file_t *file = NULL;
dav_error *err = NULL;
- apr_size_t amt;
apr_status_t rv;
if (pbuf->buf == NULL)
pathname));
}
- amt = pbuf->cur_len;
- if ((rv = apr_file_write_full(file, pbuf->buf, amt, &amt)) != APR_SUCCESS
- || amt != pbuf->cur_len) {
+ if ((rv = apr_file_write_full(file, pbuf->buf, pbuf->cur_len, NULL))
+ != APR_SUCCESS) {
err = dav_new_error(p, HTTP_INTERNAL_SERVER_ERROR, 0, rv,
apr_psprintf(p,
"Error writing %" APR_SIZE_T_FMT
apr_status_t rv;
apr_size_t hdr_len;
char header[HEADER_LEN + 1];
- apr_size_t bytes;
if (!ctx->count) {
return APR_SUCCESS;
ctx->uuid, ctx->count);
ap_xlate_proto_to_ascii(header, hdr_len);
- rv = apr_file_write_full(ctx->conn->file, header, hdr_len, &bytes);
+ rv = apr_file_write_full(ctx->conn->file, header, hdr_len, NULL);
if (APR_SUCCESS != rv) {
if (ctx->conn->suppress) {
/* ignore the error */
&log_forensic_module);
const char *id;
hlog h;
- apr_size_t n;
apr_status_t rv;
if (!cfg->fd || r->prev) {
ap_assert(h.pos < h.end);
*h.pos++ = '\n';
- n = h.count-1;
- rv = apr_file_write_full(cfg->fd, h.log, n, &n);
- ap_assert(rv == APR_SUCCESS && n == h.count-1);
+ rv = apr_file_write_full(cfg->fd, h.log, h.count-1, NULL);
+ ap_assert(rv == APR_SUCCESS);
apr_table_setn(r->notes, "forensic-id", id);
const char *id = ap_get_module_config(r->request_config,
&log_forensic_module);
char *s;
- apr_size_t l, n;
+ apr_size_t n;
apr_status_t rv;
if (!cfg->fd || id == NULL) {
}
s = apr_pstrcat(r->pool, "-", id, "\n", NULL);
- l = n = strlen(s);
- rv = apr_file_write_full(cfg->fd, s, n, &n);
- ap_assert(rv == APR_SUCCESS && n == l);
+ n = strlen(s);
+ rv = apr_file_write_full(cfg->fd, s, n, NULL);
+ ap_assert(rv == APR_SUCCESS);
return OK;
}
HANDLE hDup;
HANDLE os_start;
HANDLE hScore;
- apr_size_t BytesWritten;
if (!DuplicateHandle(hCurrentProcess, child_ready_event, hProcess, &hDup,
EVENT_MODIFY_STATE | SYNCHRONIZE, FALSE, 0)) {
"Parent: Unable to duplicate the ready event handle for the child");
return -1;
}
- if ((rv = apr_file_write_full(child_in, &hDup, sizeof(hDup), &BytesWritten))
+ if ((rv = apr_file_write_full(child_in, &hDup, sizeof(hDup), NULL))
!= APR_SUCCESS) {
ap_log_error(APLOG_MARK, APLOG_CRIT, rv, ap_server_conf, APLOGNO(00393)
"Parent: Unable to send the exit event handle to the child");
"Parent: Unable to duplicate the exit event handle for the child");
return -1;
}
- if ((rv = apr_file_write_full(child_in, &hDup, sizeof(hDup), &BytesWritten))
+ if ((rv = apr_file_write_full(child_in, &hDup, sizeof(hDup), NULL))
!= APR_SUCCESS) {
ap_log_error(APLOG_MARK, APLOG_CRIT, rv, ap_server_conf, APLOGNO(00395)
"Parent: Unable to send the exit event handle to the child");
"Parent: Unable to duplicate the start mutex to the child");
return -1;
}
- if ((rv = apr_file_write_full(child_in, &hDup, sizeof(hDup), &BytesWritten))
+ if ((rv = apr_file_write_full(child_in, &hDup, sizeof(hDup), NULL))
!= APR_SUCCESS) {
ap_log_error(APLOG_MARK, APLOG_CRIT, rv, ap_server_conf, APLOGNO(00398)
"Parent: Unable to send the start mutex to the child");
"Parent: Unable to duplicate the scoreboard handle to the child");
return -1;
}
- if ((rv = apr_file_write_full(child_in, &hDup, sizeof(hDup), &BytesWritten))
+ if ((rv = apr_file_write_full(child_in, &hDup, sizeof(hDup), NULL))
!= APR_SUCCESS) {
ap_log_error(APLOG_MARK, APLOG_CRIT, rv, ap_server_conf, APLOGNO(00401)
"Parent: Unable to send the scoreboard handle to the child");
if (APR_SUCCESS == (status = apr_file_open(&handle, native, APR_WRITE
| APR_CREATE | APR_APPEND, APR_OS_DEFAULT, pool))) {
if (APR_SUCCESS != (status = apr_file_write_full(handle, str, len,
- &len))) {
+ NULL))) {
apr_file_printf(file->file_err,
"Could not write fragment body to file '%s': %pm\n",
native, &status);
status.nMessCount++;
}
if (config.echo) {
- if (apr_file_write_full(f_stdout, buf, nRead, &nWrite)) {
+ if (apr_file_write_full(f_stdout, buf, nRead, NULL)) {
fprintf(stderr, "Unable to write to stdout\n");
exit(4);
}