Lines Matching refs:rv
31 apr_status_t rv;
33 rv = apr_filepath_merge(out, dirname, basename, 0, p);
34 if (rv != APR_SUCCESS) {
35 ap_log_error(APLOG_MARK, APLOG_ERR, rv, s,
40 return rv;
46 apr_status_t rv = apr_stat(&finfo, dirname, APR_FINFO_TYPE, p);
48 return rv == APR_SUCCESS && finfo.filetype == APR_DIR;
54 apr_status_t rv = apr_stat(&finfo, filename, APR_FINFO_TYPE, p);
56 return rv == APR_SUCCESS && finfo.filetype == APR_REG;
111 apr_status_t rv;
115 rv = errno; /* XXX Windows equivalent -- CreateFile + fdopen? */
118 rv = APR_SUCCESS;
121 return rv;
137 apr_status_t rv;
146 rv = apr_dir_open(&d, dirname, p);
147 if (rv != APR_SUCCESS) {
148 ap_log_error(APLOG_MARK, APLOG_ERR, rv, s,
151 return rv;
154 while ((rv = apr_dir_read(&finfo, APR_FINFO_NAME, d)) == APR_SUCCESS) {
158 rv = ctutil_path_join((char **)&fn, dirname, finfo.name, p, s);
159 if (rv != APR_SUCCESS) {
168 if (APR_STATUS_IS_ENOENT(rv)) {
169 rv = APR_SUCCESS;
171 else if (rv != APR_SUCCESS && !reported) {
172 ap_log_error(APLOG_MARK, APLOG_ERR, rv, s,
178 if (rv == APR_SUCCESS) {
182 return rv;
194 apr_status_t rv;
200 rv = apr_file_open(&f, fn, APR_READ | APR_BINARY, APR_FPROT_OS_DEFAULT, p);
201 if (rv != APR_SUCCESS) {
202 ap_log_error(APLOG_MARK, APLOG_ERR, rv, s,
204 return rv;
207 rv = apr_file_info_get(&finfo, APR_FINFO_SIZE, f);
208 if (rv != APR_SUCCESS) {
209 ap_log_error(APLOG_MARK, APLOG_ERR, rv, s,
212 return rv;
216 rv = APR_ENOSPC;
217 ap_log_error(APLOG_MARK, APLOG_ERR, rv, s,
221 return rv;
226 rv = apr_file_read_full(f, *contents, nbytes, contents_size);
227 if (rv != APR_SUCCESS) { /* shouldn't get APR_EOF since we know
230 ap_log_error(APLOG_MARK, APLOG_ERR, rv, s,
235 return rv;
242 apr_status_t rv;
247 rv = apr_pollset_create(&pollset, 2, p, 0);
248 ap_assert(rv == APR_SUCCESS);
256 rv = apr_pollset_add(pollset, &pfd);
257 ap_assert(rv == APR_SUCCESS);
261 rv = apr_pollset_add(pollset, &pfd);
262 ap_assert(rv == APR_SUCCESS);
271 rv = apr_pollset_poll(pollset, apr_time_from_sec(10),
273 if (rv != APR_SUCCESS && !APR_STATUS_IS_EINTR(rv)) {
274 ap_log_error(APLOG_MARK, APLOG_ERR, rv, s,
281 rv = apr_file_read(pdesc[i].desc.f, buf, &len);
282 if (APR_STATUS_IS_EOF(rv)) {
287 else if (rv != APR_SUCCESS) {
288 ap_log_error(APLOG_MARK, APLOG_ERR, rv, s,
302 apr_status_t rv;
317 rv = apr_file_read(fds[i], buf, &len);
318 if (APR_STATUS_IS_EOF(rv)) {
323 else if (APR_STATUS_IS_EAGAIN(rv)) {
328 else if (rv != APR_SUCCESS) {
329 ap_log_error(APLOG_MARK, APLOG_ERR, rv, s,
354 apr_status_t rv;
357 rv = apr_procattr_create(&attr, p);
358 if (rv != APR_SUCCESS) {
359 ap_log_error(APLOG_MARK, APLOG_ERR, rv, s,
361 return rv;
364 rv = apr_procattr_io_set(attr,
368 if (rv != APR_SUCCESS) {
369 ap_log_error(APLOG_MARK, APLOG_ERR, rv, s,
371 return rv;
386 rv = apr_proc_create(&proc, args[0], args, NULL, attr, p);
387 if (rv != APR_SUCCESS) {
388 ap_log_error(APLOG_MARK, APLOG_ERR, rv, s,
390 return rv;
395 rv = apr_proc_wait(&proc, &exitcode, &exitwhy, APR_WAIT);
396 rv = rv == APR_CHILD_DONE ? APR_SUCCESS : rv;
399 rv != APR_SUCCESS || exitcode ? APLOG_ERR : APLOG_DEBUG,
400 rv, s,
405 if (rv == APR_SUCCESS && exitcode) {
406 rv = APR_EGENERAL;
409 return rv;
414 apr_status_t rv = apr_thread_mutex_lock(m);
415 ap_assert(rv == APR_SUCCESS);
420 apr_status_t rv = apr_thread_mutex_unlock(m);
421 ap_assert(rv == APR_SUCCESS);
429 apr_status_t rv;
435 rv = apr_file_write(f, vals, &nbytes);
436 if (rv != APR_SUCCESS) {
437 ap_log_error(APLOG_MARK, APLOG_ERR, rv, s,
440 return rv;
448 apr_status_t rv;
455 rv = apr_file_write(f, vals, &nbytes);
456 if (rv != APR_SUCCESS) {
457 ap_log_error(APLOG_MARK, APLOG_ERR, rv, s,
460 return rv;
511 apr_status_t rv;
514 rv = deserialize_uint(mem, avail, 16, &val64);
516 return rv;
572 apr_status_t rv;
578 rv = ctutil_serialize_uint16(mem, avail, len);
579 if (rv != APR_SUCCESS) { /* should not occur */
580 return rv;
593 apr_status_t rv;
599 rv = ctutil_serialize_uint24(mem, avail, len);
600 if (rv != APR_SUCCESS) { /* should not occur */
601 return rv;
616 apr_status_t rv;
619 rv = ctutil_deserialize_uint16(mem, avail, &val);
620 if (rv == APR_SUCCESS) {
624 return rv;
645 apr_status_t rv;
647 rv = read_length_prefix(mem, avail, len);
648 if (rv != APR_SUCCESS) {
649 return rv;
652 rv = read_fixed_bytes(mem, avail, *len, start);
653 return rv;
669 apr_status_t rv;
682 rv = ctutil_serialize_uint64(&ch, &avail, 0xDEADBEEFCAFEBABE);
683 ap_assert(rv == APR_SUCCESS);
697 rv = ctutil_deserialize_uint64(&const_ch, &avail, &val64);
698 ap_assert(rv == APR_SUCCESS);
710 rv = ctutil_serialize_uint24(&ch, &avail, 0xDEADBE);
711 ap_assert(rv == APR_SUCCESS);
725 rv = ctutil_serialize_uint16(&ch, &avail, 0xDEAD);
726 ap_assert(rv == APR_SUCCESS);
734 rv = ctutil_deserialize_uint16(&const_ch, &avail, &val16);
735 ap_assert(rv == APR_SUCCESS);
746 rv = ctutil_serialize_uint8(&ch, &avail, 0xDE);
747 ap_assert(rv == APR_SUCCESS);
759 rv = ctutil_write_var16_bytes(&ch, &avail,
761 ap_assert(rv == APR_SUCCESS);
773 rv = ctutil_write_var16_bytes(&ch, &avail,
775 ap_assert(rv == APR_EINVAL);
779 rv = ctutil_write_var24_bytes(&ch, &avail,
781 ap_assert(rv == APR_SUCCESS);
794 rv = ctutil_write_var24_bytes(&ch, &avail,
796 ap_assert(rv == APR_EINVAL);