003 File Manager
Current Path:
/usr/src/contrib/subversion/subversion/libsvn_ra_serf
usr
/
src
/
contrib
/
subversion
/
subversion
/
libsvn_ra_serf
/
📁
..
📄
blame.c
(12.16 KB)
📄
blncache.c
(5.44 KB)
📄
blncache.h
(3.44 KB)
📄
commit.c
(81.79 KB)
📄
eagain_bucket.c
(3.5 KB)
📄
get_deleted_rev.c
(5.66 KB)
📄
get_file.c
(12.05 KB)
📄
get_lock.c
(9.66 KB)
📄
getdate.c
(4.93 KB)
📄
getlocations.c
(5.98 KB)
📄
getlocationsegments.c
(6.46 KB)
📄
getlocks.c
(8.91 KB)
📄
inherited_props.c
(14.64 KB)
📄
libsvn_ra_serf.pc.in
(414 B)
📄
list.c
(9.19 KB)
📄
lock.c
(20.92 KB)
📄
log.c
(18.43 KB)
📄
merge.c
(14.29 KB)
📄
mergeinfo.c
(7.67 KB)
📄
multistatus.c
(23.68 KB)
📄
options.c
(28 KB)
📄
property.c
(29.11 KB)
📄
ra_serf.h
(60.75 KB)
📄
replay.c
(28.62 KB)
📄
request_body.c
(6.79 KB)
📄
sb_bucket.c
(5.08 KB)
📄
serf.c
(38.92 KB)
📄
stat.c
(17.59 KB)
📄
stream_bucket.c
(3.43 KB)
📄
update.c
(92.6 KB)
📄
util.c
(68.61 KB)
📄
util_error.c
(2.87 KB)
📄
xml.c
(29.94 KB)
Editing: util_error.c
/* * util_error.c : serf utility routines for wrapping serf status codes * * ==================================================================== * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. * ==================================================================== */ #include <serf.h> #include "svn_utf.h" #include "private/svn_error_private.h" #include "ra_serf.h" /* * Undefine the helpers for creating errors. * * *NOTE*: Any use of these functions in any other function may need * to call svn_error__locate() because the macro that would otherwise * do this is being undefined and the filename and line number will * not be properly set in the static error_file and error_line * variables. */ #undef svn_error_create #undef svn_error_createf #undef svn_error_quick_wrap #undef svn_error_wrap_apr #undef svn_ra_serf__wrap_err svn_error_t * svn_ra_serf__wrap_err(apr_status_t status, const char *fmt, ...) { const char *serf_err_msg = serf_error_string(status); svn_error_t *err; va_list ap; err = svn_error_create(status, NULL, NULL); if (serf_err_msg || fmt) { const char *msg; const char *err_msg; char errbuf[255]; /* Buffer for APR error message. */ if (serf_err_msg) { err_msg = serf_err_msg; } else { svn_error_t *utf8_err; /* Grab the APR error message. */ apr_strerror(status, errbuf, sizeof(errbuf)); utf8_err = svn_utf_cstring_to_utf8(&err_msg, errbuf, err->pool); if (utf8_err) err_msg = NULL; svn_error_clear(utf8_err); } /* Append it to the formatted message. */ if (fmt) { va_start(ap, fmt); msg = apr_pvsprintf(err->pool, fmt, ap); va_end(ap); } else { msg = "ra_serf"; } if (err_msg) { err->message = apr_pstrcat(err->pool, msg, ": ", err_msg, SVN_VA_NULL); } else { err->message = msg; } } return err; }
Upload File
Create Folder