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

« back to all changes in this revision

Viewing changes to subversion/include/private/svn_atomic.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:
46
46
 */
47
47
 
48
48
/** The type used by all the other atomic operations. */
49
 
#if APR_VERSION_AT_LEAST(1, 0, 0)
50
49
#define svn_atomic_t apr_uint32_t
51
 
#else
52
 
#define svn_atomic_t apr_atomic_t
53
 
#endif
54
50
 
55
51
/** Atomically read an #svn_atomic_t from memory. */
56
 
#if APR_VERSION_AT_LEAST(1, 0, 0)
57
52
#define svn_atomic_read(mem) apr_atomic_read32((mem))
58
 
#else
59
 
#define svn_atomic_read(mem) apr_atomic_read((mem))
60
 
#endif
61
53
 
62
54
/** Atomically set an #svn_atomic_t in memory. */
63
 
#if APR_VERSION_AT_LEAST(1, 0, 0)
64
55
#define svn_atomic_set(mem, val) apr_atomic_set32((mem), (val))
65
 
#else
66
 
#define svn_atomic_set(mem, val) apr_atomic_set((mem), (val))
67
 
#endif
68
56
 
69
57
/** Atomically increment an #svn_atomic_t. */
70
 
#if APR_VERSION_AT_LEAST(1, 0, 0)
71
58
#define svn_atomic_inc(mem) apr_atomic_inc32(mem)
72
 
#else
73
 
#define svn_atomic_inc(mem) apr_atomic_inc(mem)
74
 
#endif
75
59
 
76
60
/** Atomically decrement an #svn_atomic_t. */
77
 
#if APR_VERSION_AT_LEAST(1, 0, 0)
78
61
#define svn_atomic_dec(mem) apr_atomic_dec32(mem)
79
 
#else
80
 
#define svn_atomic_dec(mem) apr_atomic_dec(mem)
81
 
#endif
82
62
 
83
63
/**
84
64
 * Atomic compare-and-swap.
91
71
 *       that on some platforms, the CAS function is implemented in a
92
72
 *       way that is incompatible with the other atomic operations.
93
73
 */
94
 
#if APR_VERSION_AT_LEAST(1, 0, 0)
95
74
#define svn_atomic_cas(mem, with, cmp) \
96
75
    apr_atomic_cas32((mem), (with), (cmp))
97
 
#else
98
 
#define svn_atomic_cas(mem, with, cmp) \
99
 
    apr_atomic_cas((mem), (with), (cmp))
100
 
#endif
101
76
/** @} */
102
77
 
103
78
/**