llsys.cpp File Reference

Impelementation of the basic system query functions. More...

#include "linden_common.h"
#include "llsys.h"
#include <iostream>
#include "zlib/zlib.h"
#include "llprocessor.h"

Include dependency graph for llsys.cpp:

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &s, const LLOSInfo &info)
std::ostream & operator<< (std::ostream &s, const LLCPUInfo &info)
std::ostream & operator<< (std::ostream &s, const LLMemoryInfo &info)
BOOL gunzip_file (const char *srcfile, const char *dstfile)
BOOL gzip_file (const char *srcfile, const char *dstfile)

Variables

static const S32 CPUINFO_BUFFER_SIZE = 16383
LLCPUInfo gSysCPU
const S32 STATUS_SIZE = 8192


Detailed Description

Impelementation of the basic system query functions.

LicenseInfo
firstyear=2002&license=viewergpl

Copyright (c) 2002-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 llsys.cpp.


Function Documentation

BOOL gunzip_file ( const char *  srcfile,
const char *  dstfile 
)

Definition at line 632 of file llsys.cpp.

References FALSE, LLFile::fopen(), LL_MAX_PATH, llendl, llerrs, NULL, LLFile::rename(), S32, and TRUE.

Referenced by LLInventoryModel::loadSkeleton().

BOOL gzip_file ( const char *  srcfile,
const char *  dstfile 
)

Definition at line 666 of file llsys.cpp.

References FALSE, LLFile::fopen(), LL_MAX_PATH, NULL, LLFile::remove(), LLFile::rename(), S32, and TRUE.

Referenced by LLInventoryModel::cache().

std::ostream& operator<< ( std::ostream &  s,
const LLMemoryInfo info 
)

Definition at line 626 of file llsys.cpp.

std::ostream& operator<< ( std::ostream &  s,
const LLCPUInfo info 
)

Definition at line 620 of file llsys.cpp.

std::ostream& operator<< ( std::ostream &  s,
const LLOSInfo info 
)

Definition at line 614 of file llsys.cpp.


Variable Documentation

const S32 CPUINFO_BUFFER_SIZE = 16383 [static]

Definition at line 64 of file llsys.cpp.

Referenced by LLCPUInfo::stream().

LLCPUInfo gSysCPU

Definition at line 65 of file llsys.cpp.

Referenced by LLFloaterReporter::gatherReport(), LLFeatureManager::initCPUFeatureMasks(), LLFloaterAbout::LLFloaterAbout(), main(), saved_settings_to_globals(), send_stats(), and write_system_info().

const S32 STATUS_SIZE = 8192

Definition at line 258 of file llsys.cpp.

Referenced by LLOSInfo::getProcessResidentSizeKB(), and LLOSInfo::getProcessVirtualSizeKB().


Generated on Thu Jul 1 06:10:41 2010 for Second Life Viewer by  doxygen 1.4.7