~ubuntu-branches/ubuntu/intrepid/apache2/intrepid

« back to all changes in this revision

Viewing changes to srclib/apr/misc/win32/env.c

  • Committer: Bazaar Package Importer
  • Author(s): Stefan Fritsch
  • Date: 2007-10-18 19:35:40 UTC
  • mfrom: (0.13.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20071018193540-u9bl0154m45xppyj
Tags: 2.2.6-2
* Avoid calling apr_pollset_poll() and accept_func() when the listening
  sockets have already been closed on graceful stop or reload. This
  hopefully fixes processes not being killed (closes: #445263, #447164)
  and the "Bad file descriptor: apr_socket_accept: (client socket)"
  error message (closes: #400918, #443310)
* Allow logresolve to process long lines (Closes: #331631)
* Remove duplicate config examples (Closes: #294662)
* Include README.backtrace describing how to create a backtrace
* Add CVE reference to 2.2.6-1 changelog entry

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
#include "apr_pools.h"
25
25
#include "apr_strings.h"
26
26
 
27
 
 
28
 
#if APR_HAS_UNICODE_FS
 
27
#if APR_HAS_UNICODE_FS && !defined(_WIN32_WCE)
29
28
static apr_status_t widen_envvar_name (apr_wchar_t *buffer,
30
29
                                       apr_size_t bufflen,
31
30
                                       const char *envvar)
47
46
                                      const char *envvar,
48
47
                                      apr_pool_t *pool)
49
48
{
 
49
#if defined(_WIN32_WCE)
 
50
    return APR_ENOTIMPL;
 
51
#else
50
52
    char *val = NULL;
51
53
    DWORD size;
52
54
 
115
117
 
116
118
    *value = val;
117
119
    return APR_SUCCESS;
 
120
#endif
118
121
}
119
122
 
120
123
 
122
125
                                      const char *value,
123
126
                                      apr_pool_t *pool)
124
127
{
 
128
#if defined(_WIN32_WCE)
 
129
    return APR_ENOTIMPL;
 
130
#else
125
131
#if APR_HAS_UNICODE_FS
126
132
    IF_WIN_OS_IS_UNICODE
127
133
    {
153
159
#endif
154
160
 
155
161
    return APR_SUCCESS;
 
162
#endif
156
163
}
157
164
 
158
165
 
159
166
APR_DECLARE(apr_status_t) apr_env_delete(const char *envvar, apr_pool_t *pool)
160
167
{
 
168
#if defined(_WIN32_WCE)
 
169
    return APR_ENOTIMPL;
 
170
#else
161
171
#if APR_HAS_UNICODE_FS
162
172
    IF_WIN_OS_IS_UNICODE
163
173
    {
181
191
#endif
182
192
 
183
193
    return APR_SUCCESS;
 
194
#endif
184
195
}