diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/llcommon/llapr.h | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/linden/indra/llcommon/llapr.h b/linden/indra/llcommon/llapr.h index 695b93e..323dcb2 100644 --- a/linden/indra/llcommon/llapr.h +++ b/linden/indra/llcommon/llapr.h | |||
@@ -40,11 +40,11 @@ | |||
40 | 40 | ||
41 | #include <boost/noncopyable.hpp> | 41 | #include <boost/noncopyable.hpp> |
42 | 42 | ||
43 | #include "apr-1/apr_thread_proc.h" | 43 | #include "apr_thread_proc.h" |
44 | #include "apr-1/apr_thread_mutex.h" | 44 | #include "apr_thread_mutex.h" |
45 | #include "apr-1/apr_getopt.h" | 45 | #include "apr_getopt.h" |
46 | #include "apr-1/apr_signal.h" | 46 | #include "apr_signal.h" |
47 | #include "apr-1/apr_atomic.h" | 47 | #include "apr_atomic.h" |
48 | #include "llstring.h" | 48 | #include "llstring.h" |
49 | 49 | ||
50 | extern apr_thread_mutex_t* gLogMutexp; | 50 | extern apr_thread_mutex_t* gLogMutexp; |
@@ -130,24 +130,24 @@ typedef LLAtomic32<S32> LLAtomicS32; | |||
130 | #define LL_APR_WB (APR_CREATE|APR_TRUNCATE|APR_WRITE|APR_BINARY) // "wb" | 130 | #define LL_APR_WB (APR_CREATE|APR_TRUNCATE|APR_WRITE|APR_BINARY) // "wb" |
131 | #define LL_APR_RPB (APR_READ|APR_WRITE|APR_BINARY) // "r+b" | 131 | #define LL_APR_RPB (APR_READ|APR_WRITE|APR_BINARY) // "r+b" |
132 | #define LL_APR_WPB (APR_CREATE|APR_TRUNCATE|APR_READ|APR_WRITE|APR_BINARY) // "w+b" | 132 | #define LL_APR_WPB (APR_CREATE|APR_TRUNCATE|APR_READ|APR_WRITE|APR_BINARY) // "w+b" |
133 | apr_file_t* ll_apr_file_open(const LLString& filename, apr_int32_t flags, S32* sizep, apr_pool_t* pool); | 133 | apr_file_t* ll_apr_file_open(const std::string& filename, apr_int32_t flags, S32* sizep, apr_pool_t* pool); |
134 | apr_file_t* ll_apr_file_open(const LLString& filename, apr_int32_t flags, S32* sizep); | 134 | apr_file_t* ll_apr_file_open(const std::string& filename, apr_int32_t flags, S32* sizep); |
135 | apr_file_t* ll_apr_file_open(const LLString& filename, apr_int32_t flags, apr_pool_t* pool); | 135 | apr_file_t* ll_apr_file_open(const std::string& filename, apr_int32_t flags, apr_pool_t* pool); |
136 | apr_file_t* ll_apr_file_open(const LLString& filename, apr_int32_t flags); | 136 | apr_file_t* ll_apr_file_open(const std::string& filename, apr_int32_t flags); |
137 | // Returns actual offset, -1 if seek fails | 137 | // Returns actual offset, -1 if seek fails |
138 | S32 ll_apr_file_seek(apr_file_t* apr_file, apr_seek_where_t where, S32 offset); | 138 | S32 ll_apr_file_seek(apr_file_t* apr_file, apr_seek_where_t where, S32 offset); |
139 | // Returns bytes read/written, 0 if read/write fails: | 139 | // Returns bytes read/written, 0 if read/write fails: |
140 | S32 ll_apr_file_read(apr_file_t* apr_file, void* buf, S32 nbytes); | 140 | S32 ll_apr_file_read(apr_file_t* apr_file, void* buf, S32 nbytes); |
141 | S32 ll_apr_file_read_ex(const LLString& filename, apr_pool_t* pool, void *buf, S32 offset, S32 nbytes); | 141 | S32 ll_apr_file_read_ex(const std::string& filename, apr_pool_t* pool, void *buf, S32 offset, S32 nbytes); |
142 | S32 ll_apr_file_write(apr_file_t* apr_file, const void* buf, S32 nbytes); | 142 | S32 ll_apr_file_write(apr_file_t* apr_file, const void* buf, S32 nbytes); |
143 | S32 ll_apr_file_write_ex(const LLString& filename, apr_pool_t* pool, void *buf, S32 offset, S32 nbytes); | 143 | S32 ll_apr_file_write_ex(const std::string& filename, apr_pool_t* pool, void *buf, S32 offset, S32 nbytes); |
144 | // returns false if failure: | 144 | // returns false if failure: |
145 | bool ll_apr_file_remove(const LLString& filename, apr_pool_t* pool = NULL); | 145 | bool ll_apr_file_remove(const std::string& filename, apr_pool_t* pool = NULL); |
146 | bool ll_apr_file_rename(const LLString& filename, const LLString& newname, apr_pool_t* pool = NULL); | 146 | bool ll_apr_file_rename(const std::string& filename, const std::string& newname, apr_pool_t* pool = NULL); |
147 | bool ll_apr_file_exists(const LLString& filename, apr_pool_t* pool = NULL); | 147 | bool ll_apr_file_exists(const std::string& filename, apr_pool_t* pool = NULL); |
148 | S32 ll_apr_file_size(const LLString& filename, apr_pool_t* pool = NULL); | 148 | S32 ll_apr_file_size(const std::string& filename, apr_pool_t* pool = NULL); |
149 | bool ll_apr_dir_make(const LLString& dirname, apr_pool_t* pool = NULL); | 149 | bool ll_apr_dir_make(const std::string& dirname, apr_pool_t* pool = NULL); |
150 | bool ll_apr_dir_remove(const LLString& dirname, apr_pool_t* pool = NULL); | 150 | bool ll_apr_dir_remove(const std::string& dirname, apr_pool_t* pool = NULL); |
151 | 151 | ||
152 | /** | 152 | /** |
153 | * @brief Function which approprately logs error or remains quiet on | 153 | * @brief Function which approprately logs error or remains quiet on |