~ubuntu-branches/debian/sid/subversion/sid

« back to all changes in this revision

Viewing changes to tools/client-side/svn-bench/client_errors.h

  • Committer: Package Import Robot
  • Author(s): James McCoy
  • Date: 2015-08-07 21:32:47 UTC
  • mfrom: (0.2.15) (4.1.7 experimental)
  • Revision ID: package-import@ubuntu.com-20150807213247-ozyewtmgsr6tkewl
Tags: 1.9.0-1
* Upload to unstable
* New upstream release.
  + Security fixes
    - CVE-2015-3184: Mixed anonymous/authenticated path-based authz with
      httpd 2.4
    - CVE-2015-3187: svn_repos_trace_node_locations() reveals paths hidden
      by authz
* Add >= 2.7 requirement for python-all-dev Build-Depends, needed to run
  tests.
* Remove Build-Conflicts against ruby-test-unit.  (Closes: #791844)
* Remove patches/apache_module_dependency in favor of expressing the
  dependencies in authz_svn.load/dav_svn.load.
* Build-Depend on apache2-dev (>= 2.4.16) to ensure ap_some_authn_required()
  is available when building mod_authz_svn and Depend on apache2-bin (>=
  2.4.16) for runtime support.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * client_errors.h:  error codes this command line client features
3
 
 *
4
 
 * ====================================================================
5
 
 *    Licensed to the Apache Software Foundation (ASF) under one
6
 
 *    or more contributor license agreements.  See the NOTICE file
7
 
 *    distributed with this work for additional information
8
 
 *    regarding copyright ownership.  The ASF licenses this file
9
 
 *    to you under the Apache License, Version 2.0 (the
10
 
 *    "License"); you may not use this file except in compliance
11
 
 *    with the License.  You may obtain a copy of the License at
12
 
 *
13
 
 *      http://www.apache.org/licenses/LICENSE-2.0
14
 
 *
15
 
 *    Unless required by applicable law or agreed to in writing,
16
 
 *    software distributed under the License is distributed on an
17
 
 *    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
18
 
 *    KIND, either express or implied.  See the License for the
19
 
 *    specific language governing permissions and limitations
20
 
 *    under the License.
21
 
 * ====================================================================
22
 
 */
23
 
 
24
 
/* ==================================================================== */
25
 
 
26
 
 
27
 
 
28
 
#ifndef SVN_CLIENT_ERRORS_H
29
 
#define SVN_CLIENT_ERRORS_H
30
 
 
31
 
#ifdef __cplusplus
32
 
extern "C" {
33
 
#endif /* __cplusplus */
34
 
 
35
 
/*
36
 
 * This error defining system is copied from and explained in
37
 
 * ../../include/svn_error_codes.h
38
 
 */
39
 
 
40
 
/* Process this file if we're building an error array, or if we have
41
 
   not defined the enumerated constants yet.  */
42
 
#if defined(SVN_ERROR_BUILD_ARRAY) || !defined(SVN_CMDLINE_ERROR_ENUM_DEFINED)
43
 
 
44
 
#if defined(SVN_ERROR_BUILD_ARRAY)
45
 
 
46
 
#error "Need to update err_defn for r1464679 and un-typo 'CDMLINE'"
47
 
 
48
 
#define SVN_ERROR_START \
49
 
        static const err_defn error_table[] = { \
50
 
          { SVN_ERR_CDMLINE__WARNING, "Warning" },
51
 
#define SVN_ERRDEF(n, s) { n, s },
52
 
#define SVN_ERROR_END { 0, NULL } };
53
 
 
54
 
#elif !defined(SVN_CMDLINE_ERROR_ENUM_DEFINED)
55
 
 
56
 
#define SVN_ERROR_START \
57
 
        typedef enum svn_client_errno_t { \
58
 
          SVN_ERR_CDMLINE__WARNING = SVN_ERR_LAST + 1,
59
 
#define SVN_ERRDEF(n, s) n,
60
 
#define SVN_ERROR_END SVN_ERR_CMDLINE__ERR_LAST } svn_client_errno_t;
61
 
 
62
 
#define SVN_CMDLINE_ERROR_ENUM_DEFINED
63
 
 
64
 
#endif
65
 
 
66
 
/* Define custom command line client error numbers */
67
 
 
68
 
SVN_ERROR_START
69
 
 
70
 
  /* BEGIN Client errors */
71
 
 
72
 
SVN_ERRDEF(SVN_ERR_CMDLINE__TMPFILE_WRITE,
73
 
           "Failed writing to temporary file.")
74
 
 
75
 
       SVN_ERRDEF(SVN_ERR_CMDLINE__TMPFILE_STAT,
76
 
                  "Failed getting info about temporary file.")
77
 
 
78
 
       SVN_ERRDEF(SVN_ERR_CMDLINE__TMPFILE_OPEN,
79
 
                  "Failed opening temporary file.")
80
 
 
81
 
  /* END Client errors */
82
 
 
83
 
 
84
 
SVN_ERROR_END
85
 
 
86
 
#undef SVN_ERROR_START
87
 
#undef SVN_ERRDEF
88
 
#undef SVN_ERROR_END
89
 
 
90
 
#endif /* SVN_ERROR_BUILD_ARRAY || !SVN_CMDLINE_ERROR_ENUM_DEFINED */
91
 
 
92
 
 
93
 
#ifdef __cplusplus
94
 
}
95
 
#endif /* __cplusplus */
96
 
 
97
 
#endif /* SVN_CLIENT_ERRORS_H */