aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llcommon/llapr.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/llcommon/llapr.h34
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
50extern apr_thread_mutex_t* gLogMutexp; 50extern 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"
133apr_file_t* ll_apr_file_open(const LLString& filename, apr_int32_t flags, S32* sizep, apr_pool_t* pool); 133apr_file_t* ll_apr_file_open(const std::string& filename, apr_int32_t flags, S32* sizep, apr_pool_t* pool);
134apr_file_t* ll_apr_file_open(const LLString& filename, apr_int32_t flags, S32* sizep); 134apr_file_t* ll_apr_file_open(const std::string& filename, apr_int32_t flags, S32* sizep);
135apr_file_t* ll_apr_file_open(const LLString& filename, apr_int32_t flags, apr_pool_t* pool); 135apr_file_t* ll_apr_file_open(const std::string& filename, apr_int32_t flags, apr_pool_t* pool);
136apr_file_t* ll_apr_file_open(const LLString& filename, apr_int32_t flags); 136apr_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
138S32 ll_apr_file_seek(apr_file_t* apr_file, apr_seek_where_t where, S32 offset); 138S32 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:
140S32 ll_apr_file_read(apr_file_t* apr_file, void* buf, S32 nbytes); 140S32 ll_apr_file_read(apr_file_t* apr_file, void* buf, S32 nbytes);
141S32 ll_apr_file_read_ex(const LLString& filename, apr_pool_t* pool, void *buf, S32 offset, S32 nbytes); 141S32 ll_apr_file_read_ex(const std::string& filename, apr_pool_t* pool, void *buf, S32 offset, S32 nbytes);
142S32 ll_apr_file_write(apr_file_t* apr_file, const void* buf, S32 nbytes); 142S32 ll_apr_file_write(apr_file_t* apr_file, const void* buf, S32 nbytes);
143S32 ll_apr_file_write_ex(const LLString& filename, apr_pool_t* pool, void *buf, S32 offset, S32 nbytes); 143S32 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:
145bool ll_apr_file_remove(const LLString& filename, apr_pool_t* pool = NULL); 145bool ll_apr_file_remove(const std::string& filename, apr_pool_t* pool = NULL);
146bool ll_apr_file_rename(const LLString& filename, const LLString& newname, apr_pool_t* pool = NULL); 146bool ll_apr_file_rename(const std::string& filename, const std::string& newname, apr_pool_t* pool = NULL);
147bool ll_apr_file_exists(const LLString& filename, apr_pool_t* pool = NULL); 147bool ll_apr_file_exists(const std::string& filename, apr_pool_t* pool = NULL);
148S32 ll_apr_file_size(const LLString& filename, apr_pool_t* pool = NULL); 148S32 ll_apr_file_size(const std::string& filename, apr_pool_t* pool = NULL);
149bool ll_apr_dir_make(const LLString& dirname, apr_pool_t* pool = NULL); 149bool ll_apr_dir_make(const std::string& dirname, apr_pool_t* pool = NULL);
150bool ll_apr_dir_remove(const LLString& dirname, apr_pool_t* pool = NULL); 150bool 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