#include "linden_common.h"
#include "llapr.h"
Include dependency graph for llapr.cpp:
Go to the source code of this file.
Functions | |
void | ll_init_apr () |
initialize the common apr constructs -- apr itself, the global pool, and a mutex. | |
void | ll_cleanup_apr () |
Cleanup those common apr constructs. | |
bool | ll_apr_warn_status (apr_status_t status) |
Function which approprately logs error or remains quiet on APR_SUCCESS. | |
void | ll_apr_assert_status (apr_status_t status) |
apr_file_t * | ll_apr_file_open (const LLString &filename, apr_int32_t flags, S32 *sizep, apr_pool_t *pool) |
apr_file_t * | ll_apr_file_open (const LLString &filename, apr_int32_t flags, S32 *sizep) |
apr_file_t * | ll_apr_file_open (const LLString &filename, apr_int32_t flags, apr_pool_t *pool) |
apr_file_t * | ll_apr_file_open (const LLString &filename, apr_int32_t flags) |
S32 | ll_apr_file_read (apr_file_t *apr_file, void *buf, S32 nbytes) |
S32 | ll_apr_file_read_ex (const LLString &filename, apr_pool_t *pool, void *buf, S32 offset, S32 nbytes) |
S32 | ll_apr_file_write (apr_file_t *apr_file, const void *buf, S32 nbytes) |
S32 | ll_apr_file_write_ex (const LLString &filename, apr_pool_t *pool, void *buf, S32 offset, S32 nbytes) |
S32 | ll_apr_file_seek (apr_file_t *apr_file, apr_seek_where_t where, S32 offset) |
bool | ll_apr_file_remove (const LLString &filename, apr_pool_t *pool) |
bool | ll_apr_file_rename (const LLString &filename, const LLString &newname, apr_pool_t *pool) |
bool | ll_apr_file_exists (const LLString &filename, apr_pool_t *pool) |
S32 | ll_apr_file_size (const LLString &filename, apr_pool_t *pool) |
bool | ll_apr_dir_make (const LLString &dirname, apr_pool_t *pool) |
bool | ll_apr_dir_remove (const LLString &dirname, apr_pool_t *pool) |
Variables | |
apr_pool_t * | gAPRPoolp = NULL |
apr_thread_mutex_t * | gLogMutexp = NULL |
Copyright (c) 2004-2007, Linden Research, Inc.
Second Life Viewer Source Code The source code in this file ("Source Code") is provided by Linden Lab to you under the terms of the GNU General Public License, version 2.0 ("GPL"), unless you have obtained a separate licensing agreement ("Other License"), formally executed by you and Linden Lab. Terms of the GPL can be found in doc/GPL-license.txt in this distribution, or online at http://secondlife.com/developers/opensource/gplv2
There are special exceptions to the terms and conditions of the GPL as it is applied to this Source Code. View the full text of the exception in the file doc/FLOSS-exception.txt in this software distribution, or online at http://secondlife.com/developers/opensource/flossexception
By copying, modifying or distributing this software, you acknowledge that you have read and understood your obligations described above, and agree to abide by those obligations.
ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, COMPLETENESS OR PERFORMANCE. $/LicenseInfo$
Definition in file llapr.cpp.
void ll_apr_assert_status | ( | apr_status_t | status | ) |
bool ll_apr_dir_make | ( | const LLString & | dirname, | |
apr_pool_t * | pool | |||
) |
bool ll_apr_dir_remove | ( | const LLString & | dirname, | |
apr_pool_t * | pool | |||
) |
bool ll_apr_file_exists | ( | const LLString & | filename, | |
apr_pool_t * | pool | |||
) |
apr_file_t* ll_apr_file_open | ( | const LLString & | filename, | |
apr_int32_t | flags | |||
) |
apr_file_t* ll_apr_file_open | ( | const LLString & | filename, | |
apr_int32_t | flags, | |||
apr_pool_t * | pool | |||
) |
apr_file_t* ll_apr_file_open | ( | const LLString & | filename, | |
apr_int32_t | flags, | |||
S32 * | sizep, | |||
apr_pool_t * | pool | |||
) |
Definition at line 130 of file llapr.cpp.
Referenced by check_for_invalid_wav_formats(), LLVOAvatar::dumpArchetypeXML(), LLVFS::dumpFiles(), encode_vorbis_file_at(), ll_apr_file_open(), ll_apr_file_read_ex(), ll_apr_file_write_ex(), LLImageFormatted::load(), LLImageJ2C::loadAndValidate(), LLKeyframeMotionParam::loadMotions(), LLBVHLoader::loadTranslationTable(), LLAudioBufferFMOD::loadWAV(), LLFloaterAnimPreview::postBuild(), LLLFSThread::Request::processRequest(), LLImageFormatted::save(), LLPreviewAnim::saveAnim(), LLStateDiagram::saveDotFile(), upload_new_resource(), and LLVOAvatar::writeCAL3D().
Definition at line 174 of file llapr.cpp.
References llassert_always, s, and S32.
Referenced by check_for_invalid_wav_formats(), encode_vorbis_file_at(), ll_apr_file_read_ex(), LLFloaterAnimPreview::postBuild(), LLLFSThread::Request::processRequest(), and upload_new_resource().
S32 ll_apr_file_read_ex | ( | const LLString & | filename, | |
apr_pool_t * | pool, | |||
void * | buf, | |||
S32 | offset, | |||
S32 | nbytes | |||
) |
Definition at line 189 of file llapr.cpp.
References gAPRPoolp, ll_apr_file_open(), ll_apr_file_read(), ll_apr_file_seek(), NULL, and S32.
Referenced by LLTextureCacheWorker::doRead(), LLTextureCache::getHeaderCacheEntry(), LLTextureCache::purgeTextures(), and LLTextureCache::readHeaderCache().
bool ll_apr_file_remove | ( | const LLString & | filename, | |
apr_pool_t * | pool | |||
) |
Definition at line 288 of file llapr.cpp.
References gAPRPoolp, llendl, llwarns, NULL, and s.
Referenced by LLTextureCache::purgeAllTextures(), LLTextureCache::purgeCache(), LLTextureCache::purgeTextures(), remove_marker_file(), and LLTextureCache::removeFromCache().
bool ll_apr_file_rename | ( | const LLString & | filename, | |
const LLString & | newname, | |||
apr_pool_t * | pool | |||
) |
Definition at line 263 of file llapr.cpp.
References llassert_always, s, and S32.
Referenced by check_for_invalid_wav_formats(), encode_vorbis_file_at(), ll_apr_file_read_ex(), ll_apr_file_write_ex(), and LLLFSThread::Request::processRequest().
S32 ll_apr_file_size | ( | const LLString & | filename, | |
apr_pool_t * | pool | |||
) |
Definition at line 331 of file llapr.cpp.
References gAPRPoolp, NULL, s, and S32.
Referenced by LLTextureCacheWorker::doRead(), and LLTextureCache::purgeTextures().
Definition at line 216 of file llapr.cpp.
References llassert_always, s, and S32.
Referenced by LLVFS::dumpFiles(), encode_vorbis_file_at(), ll_apr_file_write_ex(), LLLFSThread::Request::processRequest(), and LLImageFormatted::save().
S32 ll_apr_file_write_ex | ( | const LLString & | filename, | |
apr_pool_t * | pool, | |||
void * | buf, | |||
S32 | offset, | |||
S32 | nbytes | |||
) |
Definition at line 231 of file llapr.cpp.
References gAPRPoolp, ll_apr_file_open(), ll_apr_file_seek(), ll_apr_file_write(), NULL, and S32.
Referenced by LLTextureCache::appendToTextureEntryList(), LLTextureCacheWorker::doWrite(), LLTextureCache::getHeaderCacheEntry(), LLTextureCache::purgeTextures(), LLTextureCache::readHeaderCache(), and LLTextureCache::removeHeaderCacheEntry().
bool ll_apr_warn_status | ( | apr_status_t | status | ) |
Function which approprately logs error or remains quiet on APR_SUCCESS.
true
if status is an error condition. Definition at line 116 of file llapr.cpp.
References llendl, llwarns, and MAX_STRING.
Referenced by LLSocket::blockingConnect(), connect_smtp(), LLSocket::create(), disconnect_smtp(), LLMail::init(), ll_apr_assert_status(), LLScopedLock::LLScopedLock(), LLMessageSystem::poll(), LLIOSocketWriter::process_impl(), LLIOSocketReader::process_impl(), LLPumpIO::rebuildPollset(), LLMail::send(), LLSocket::setOptions(), and LLScopedLock::unlock().
void ll_cleanup_apr | ( | ) |
Cleanup those common apr constructs.
Definition at line 55 of file llapr.cpp.
References gAPRPoolp, gLogMutexp, llendl, llinfos, and NULL.
Referenced by LLCommon::cleanupClass().
void ll_init_apr | ( | ) |
initialize the common apr constructs -- apr itself, the global pool, and a mutex.
Definition at line 41 of file llapr.cpp.
References gAPRPoolp, gLogMutexp, and NULL.
Referenced by tut::LLTemplateMessageBuilderTestData::defaultTemplate(), LLCommon::initClass(), LLMessageSystem::LLMessageSystem(), and tut::LLMessageSystemTestData::LLMessageSystemTestData().
apr_pool_t* gAPRPoolp = NULL |
Definition at line 37 of file llapr.cpp.
Referenced by ll_apr_dir_make(), ll_apr_dir_remove(), ll_apr_file_exists(), ll_apr_file_open(), ll_apr_file_read_ex(), ll_apr_file_remove(), ll_apr_file_rename(), ll_apr_file_size(), ll_apr_file_write_ex(), ll_cleanup_apr(), ll_init_apr(), LLMessageSystem::LLMessageSystem(), LLVolumeMgr::LLVolumeMgr(), main_loop(), and LLVoiceClient::stateMachine().
apr_thread_mutex_t* gLogMutexp = NULL |