diff options
Diffstat (limited to 'linden/indra/llcommon/llapr.cpp')
-rw-r--r-- | linden/indra/llcommon/llapr.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/linden/indra/llcommon/llapr.cpp b/linden/indra/llcommon/llapr.cpp index 78bf876..73e715a 100644 --- a/linden/indra/llcommon/llapr.cpp +++ b/linden/indra/llcommon/llapr.cpp | |||
@@ -129,7 +129,7 @@ void ll_apr_assert_status(apr_status_t status) | |||
129 | } | 129 | } |
130 | 130 | ||
131 | // File I/O | 131 | // File I/O |
132 | apr_file_t* ll_apr_file_open(const LLString& filename, apr_int32_t flags, S32* sizep, apr_pool_t* pool) | 132 | apr_file_t* ll_apr_file_open(const std::string& filename, apr_int32_t flags, S32* sizep, apr_pool_t* pool) |
133 | { | 133 | { |
134 | apr_file_t* apr_file; | 134 | apr_file_t* apr_file; |
135 | apr_status_t s; | 135 | apr_status_t s; |
@@ -160,15 +160,15 @@ apr_file_t* ll_apr_file_open(const LLString& filename, apr_int32_t flags, S32* s | |||
160 | 160 | ||
161 | return apr_file; | 161 | return apr_file; |
162 | } | 162 | } |
163 | apr_file_t* ll_apr_file_open(const LLString& filename, apr_int32_t flags, S32* sizep) | 163 | apr_file_t* ll_apr_file_open(const std::string& filename, apr_int32_t flags, S32* sizep) |
164 | { | 164 | { |
165 | return ll_apr_file_open(filename, flags, sizep, NULL); | 165 | return ll_apr_file_open(filename, flags, sizep, NULL); |
166 | } | 166 | } |
167 | apr_file_t* ll_apr_file_open(const LLString& filename, apr_int32_t flags, apr_pool_t* pool) | 167 | apr_file_t* ll_apr_file_open(const std::string& filename, apr_int32_t flags, apr_pool_t* pool) |
168 | { | 168 | { |
169 | return ll_apr_file_open(filename, flags, NULL, pool); | 169 | return ll_apr_file_open(filename, flags, NULL, pool); |
170 | } | 170 | } |
171 | apr_file_t* ll_apr_file_open(const LLString& filename, apr_int32_t flags) | 171 | apr_file_t* ll_apr_file_open(const std::string& filename, apr_int32_t flags) |
172 | { | 172 | { |
173 | return ll_apr_file_open(filename, flags, NULL, NULL); | 173 | return ll_apr_file_open(filename, flags, NULL, NULL); |
174 | } | 174 | } |
@@ -188,7 +188,7 @@ S32 ll_apr_file_read(apr_file_t* apr_file, void *buf, S32 nbytes) | |||
188 | } | 188 | } |
189 | } | 189 | } |
190 | 190 | ||
191 | S32 ll_apr_file_read_ex(const LLString& filename, apr_pool_t* pool, void *buf, S32 offset, S32 nbytes) | 191 | S32 ll_apr_file_read_ex(const std::string& filename, apr_pool_t* pool, void *buf, S32 offset, S32 nbytes) |
192 | { | 192 | { |
193 | if (pool == NULL) pool = gAPRPoolp; | 193 | if (pool == NULL) pool = gAPRPoolp; |
194 | apr_file_t* filep = ll_apr_file_open(filename, APR_READ|APR_BINARY, pool); | 194 | apr_file_t* filep = ll_apr_file_open(filename, APR_READ|APR_BINARY, pool); |
@@ -230,7 +230,7 @@ S32 ll_apr_file_write(apr_file_t* apr_file, const void *buf, S32 nbytes) | |||
230 | } | 230 | } |
231 | } | 231 | } |
232 | 232 | ||
233 | S32 ll_apr_file_write_ex(const LLString& filename, apr_pool_t* pool, void *buf, S32 offset, S32 nbytes) | 233 | S32 ll_apr_file_write_ex(const std::string& filename, apr_pool_t* pool, void *buf, S32 offset, S32 nbytes) |
234 | { | 234 | { |
235 | if (pool == NULL) pool = gAPRPoolp; | 235 | if (pool == NULL) pool = gAPRPoolp; |
236 | apr_int32_t flags = APR_CREATE|APR_WRITE|APR_BINARY; | 236 | apr_int32_t flags = APR_CREATE|APR_WRITE|APR_BINARY; |
@@ -287,7 +287,7 @@ S32 ll_apr_file_seek(apr_file_t* apr_file, apr_seek_where_t where, S32 offset) | |||
287 | } | 287 | } |
288 | } | 288 | } |
289 | 289 | ||
290 | bool ll_apr_file_remove(const LLString& filename, apr_pool_t* pool) | 290 | bool ll_apr_file_remove(const std::string& filename, apr_pool_t* pool) |
291 | { | 291 | { |
292 | apr_status_t s; | 292 | apr_status_t s; |
293 | if (pool == NULL) pool = gAPRPoolp; | 293 | if (pool == NULL) pool = gAPRPoolp; |
@@ -301,7 +301,7 @@ bool ll_apr_file_remove(const LLString& filename, apr_pool_t* pool) | |||
301 | return true; | 301 | return true; |
302 | } | 302 | } |
303 | 303 | ||
304 | bool ll_apr_file_rename(const LLString& filename, const LLString& newname, apr_pool_t* pool) | 304 | bool ll_apr_file_rename(const std::string& filename, const std::string& newname, apr_pool_t* pool) |
305 | { | 305 | { |
306 | apr_status_t s; | 306 | apr_status_t s; |
307 | if (pool == NULL) pool = gAPRPoolp; | 307 | if (pool == NULL) pool = gAPRPoolp; |
@@ -315,7 +315,7 @@ bool ll_apr_file_rename(const LLString& filename, const LLString& newname, apr_p | |||
315 | return true; | 315 | return true; |
316 | } | 316 | } |
317 | 317 | ||
318 | bool ll_apr_file_exists(const LLString& filename, apr_pool_t* pool) | 318 | bool ll_apr_file_exists(const std::string& filename, apr_pool_t* pool) |
319 | { | 319 | { |
320 | apr_file_t* apr_file; | 320 | apr_file_t* apr_file; |
321 | apr_status_t s; | 321 | apr_status_t s; |
@@ -332,7 +332,7 @@ bool ll_apr_file_exists(const LLString& filename, apr_pool_t* pool) | |||
332 | } | 332 | } |
333 | } | 333 | } |
334 | 334 | ||
335 | S32 ll_apr_file_size(const LLString& filename, apr_pool_t* pool) | 335 | S32 ll_apr_file_size(const std::string& filename, apr_pool_t* pool) |
336 | { | 336 | { |
337 | apr_file_t* apr_file; | 337 | apr_file_t* apr_file; |
338 | apr_finfo_t info; | 338 | apr_finfo_t info; |
@@ -358,7 +358,7 @@ S32 ll_apr_file_size(const LLString& filename, apr_pool_t* pool) | |||
358 | } | 358 | } |
359 | } | 359 | } |
360 | 360 | ||
361 | bool ll_apr_dir_make(const LLString& dirname, apr_pool_t* pool) | 361 | bool ll_apr_dir_make(const std::string& dirname, apr_pool_t* pool) |
362 | { | 362 | { |
363 | apr_status_t s; | 363 | apr_status_t s; |
364 | if (pool == NULL) pool = gAPRPoolp; | 364 | if (pool == NULL) pool = gAPRPoolp; |
@@ -372,7 +372,7 @@ bool ll_apr_dir_make(const LLString& dirname, apr_pool_t* pool) | |||
372 | return true; | 372 | return true; |
373 | } | 373 | } |
374 | 374 | ||
375 | bool ll_apr_dir_remove(const LLString& dirname, apr_pool_t* pool) | 375 | bool ll_apr_dir_remove(const std::string& dirname, apr_pool_t* pool) |
376 | { | 376 | { |
377 | apr_status_t s; | 377 | apr_status_t s; |
378 | if (pool == NULL) pool = gAPRPoolp; | 378 | if (pool == NULL) pool = gAPRPoolp; |