aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llcommon/llapr.h
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:44:50 -0500
committerJacek Antonelli2008-08-15 23:44:50 -0500
commit89fe5dab825a62a0e3fd8d248cbc91c65eb2a426 (patch)
treebcff14b7888d04a2fec799c59369f6095224bd08 /linden/indra/llcommon/llapr.h
parentSecond Life viewer sources 1.13.3.2 (diff)
downloadmeta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.zip
meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.tar.gz
meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.tar.bz2
meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.tar.xz
Second Life viewer sources 1.14.0.0
Diffstat (limited to '')
-rw-r--r--linden/indra/llcommon/llapr.h18
1 files changed, 14 insertions, 4 deletions
diff --git a/linden/indra/llcommon/llapr.h b/linden/indra/llcommon/llapr.h
index a5c217c..be6fc6c 100644
--- a/linden/indra/llcommon/llapr.h
+++ b/linden/indra/llcommon/llapr.h
@@ -125,14 +125,24 @@ typedef LLAtomic32<S32> LLAtomicS32;
125#define LL_APR_WB (APR_CREATE|APR_TRUNCATE|APR_WRITE|APR_BINARY) // "wb" 125#define LL_APR_WB (APR_CREATE|APR_TRUNCATE|APR_WRITE|APR_BINARY) // "wb"
126#define LL_APR_RPB (APR_READ|APR_WRITE|APR_BINARY) // "r+b" 126#define LL_APR_RPB (APR_READ|APR_WRITE|APR_BINARY) // "r+b"
127#define LL_APR_WPB (APR_CREATE|APR_TRUNCATE|APR_READ|APR_WRITE|APR_BINARY) // "w+b" 127#define LL_APR_WPB (APR_CREATE|APR_TRUNCATE|APR_READ|APR_WRITE|APR_BINARY) // "w+b"
128apr_file_t* ll_apr_file_open(const LLString& filename, apr_int32_t flags, S32* sizep = NULL); 128apr_file_t* ll_apr_file_open(const LLString& filename, apr_int32_t flags, S32* sizep, apr_pool_t* pool);
129apr_file_t* ll_apr_file_open(const LLString& filename, apr_int32_t flags, S32* sizep);
130apr_file_t* ll_apr_file_open(const LLString& filename, apr_int32_t flags, apr_pool_t* pool);
131apr_file_t* ll_apr_file_open(const LLString& filename, apr_int32_t flags);
129// Returns actual offset, -1 if seek fails 132// Returns actual offset, -1 if seek fails
130S32 ll_apr_file_seek(apr_file_t* apr_file, apr_seek_where_t where, S32 offset); 133S32 ll_apr_file_seek(apr_file_t* apr_file, apr_seek_where_t where, S32 offset);
131// Returns bytes read/written, 0 if read/write fails 134// Returns bytes read/written, 0 if read/write fails:
132S32 ll_apr_file_read(apr_file_t* apr_file, void* buf, S32 nbytes); 135S32 ll_apr_file_read(apr_file_t* apr_file, void* buf, S32 nbytes);
136S32 ll_apr_file_read_ex(const LLString& filename, apr_pool_t* pool, void *buf, S32 offset, S32 nbytes);
133S32 ll_apr_file_write(apr_file_t* apr_file, const void* buf, S32 nbytes); 137S32 ll_apr_file_write(apr_file_t* apr_file, const void* buf, S32 nbytes);
134bool ll_apr_file_remove(const LLString& filename); 138S32 ll_apr_file_write_ex(const LLString& filename, apr_pool_t* pool, void *buf, S32 offset, S32 nbytes);
135bool ll_apr_file_rename(const LLString& filename, const LLString& newname); 139// returns false if failure:
140bool ll_apr_file_remove(const LLString& filename, apr_pool_t* pool = NULL);
141bool ll_apr_file_rename(const LLString& filename, const LLString& newname, apr_pool_t* pool = NULL);
142bool ll_apr_file_exists(const LLString& filename, apr_pool_t* pool = NULL);
143S32 ll_apr_file_size(const LLString& filename, apr_pool_t* pool = NULL);
144bool ll_apr_dir_make(const LLString& dirname, apr_pool_t* pool = NULL);
145bool ll_apr_dir_remove(const LLString& dirname, apr_pool_t* pool = NULL);
136 146
137/** 147/**
138 * @brief Function which approprately logs error or remains quiet on 148 * @brief Function which approprately logs error or remains quiet on