|
My Project
|
#include <stdlib.h>#include <ctype.h>#include <unistd.h>#include <sys/types.h>#include <sys/wait.h>#include <errno.h>#include <qglobal.h>#include <qdatetime.h>#include "portable.h"#include "debug.h"Go to the source code of this file.
Functions | |
| int | portable_system (const char *command, const char *args, bool commandHasConsole) |
| uint | portable_pid () |
| void | portable_setenv (const char *name, const char *value) |
| void | portable_unsetenv (const char *variable) |
| const char * | portable_getenv (const char *variable) |
| portable_off_t | portable_fseek (FILE *f, portable_off_t offset, int whence) |
| portable_off_t | portable_ftell (FILE *f) |
| FILE * | portable_fopen (const char *fileName, const char *mode) |
| char | portable_pathSeparator () |
| char | portable_pathListSeparator () |
| const char * | portable_ghostScriptCommand () |
| const char * | portable_commandExtension () |
| bool | portable_fileSystemIsCaseSensitive () |
| FILE * | portable_popen (const char *name, const char *type) |
| int | portable_pclose (FILE *stream) |
| void | portable_sysTimerStart () |
| void | portable_sysTimerStop () |
| double | portable_getSysElapsedTime () |
| void | portable_sleep (int ms) |
| bool | portable_isAbsolutePath (const char *fileName) |
Variables | |
| char ** | environ |
| static double | g_sysElapsedTime |
| static QTime | g_time |
| static char ** | last_environ |
| const char* portable_commandExtension | ( | ) |
Definition at line 382 of file portable.cpp.
Referenced by getMscImageMapFromFile(), writeDiaGraphFromFile(), and writeMscGraphFromFile().
| bool portable_fileSystemIsCaseSensitive | ( | ) |
Definition at line 391 of file portable.cpp.
Referenced by getFilterFromList().
| FILE* portable_fopen | ( | const char * | fileName, |
| const char * | mode | ||
| ) |
Definition at line 344 of file portable.cpp.
Referenced by checkDotResult(), initWarningFormat(), LodePNG_loadFile(), LodePNG_saveFile(), Store::open(), and readCodeFragment().
| portable_off_t portable_fseek | ( | FILE * | f, |
| portable_off_t | offset, | ||
| int | whence | ||
| ) |
Definition at line 322 of file portable.cpp.
Referenced by Store::alloc(), Store::dumpBlock(), Store::read(), Store::release(), Store::seek(), and Store::write().
| portable_off_t portable_ftell | ( | FILE * | f | ) |
Definition at line 333 of file portable.cpp.
Referenced by Store::alloc(), Store::end(), Store::read(), and Store::write().
| const char* portable_getenv | ( | const char * | variable | ) |
Definition at line 317 of file portable.cpp.
Referenced by dateToString(), initDoxygen(), parseInput(), and setDotFontPath().
| double portable_getSysElapsedTime | ( | ) |
Definition at line 420 of file portable.cpp.
References g_sysElapsedTime.
Referenced by generateOutput().
| const char* portable_ghostScriptCommand | ( | ) |
Definition at line 373 of file portable.cpp.
Referenced by FormulaList::generateBitmaps().
| bool portable_isAbsolutePath | ( | const char * | fileName | ) |
Definition at line 434 of file portable.cpp.
Referenced by generateOutput(), and readTextFileByName().
| char portable_pathListSeparator | ( | ) |
Definition at line 364 of file portable.cpp.
Referenced by generatePlantUMLOutput(), parseInput(), and setDotFontPath().
| char portable_pathSeparator | ( | ) |
Definition at line 355 of file portable.cpp.
Referenced by MemberContext::Private::callerGraph(), MemberContext::Private::callGraph(), ClassContext::Private::collaborationDiagram(), DirContext::Private::dirGraph(), InheritanceGraphContext::Private::graph(), ModuleContext::Private::groupGraph(), FileContext::Private::includedByGraph(), FileContext::Private::includeGraph(), ClassContext::Private::inheritanceDiagram(), readTextFileByName(), writeDiaGraphFromFile(), and writeMscGraphFromFile().
| int portable_pclose | ( | FILE * | stream | ) |
Definition at line 405 of file portable.cpp.
Referenced by FileDef::acquireFileVersion(), readCodeFragment(), and readInputFile().
| uint portable_pid | ( | ) |
Definition at line 186 of file portable.cpp.
Referenced by parseInput().
| FILE* portable_popen | ( | const char * | name, |
| const char * | type | ||
| ) |
Definition at line 400 of file portable.cpp.
Referenced by FileDef::acquireFileVersion(), readCodeFragment(), and readInputFile().
| void portable_setenv | ( | const char * | name, |
| const char * | value | ||
| ) |
Definition at line 202 of file portable.cpp.
References environ, and last_environ.
Referenced by initDoxygen(), parseInput(), setDotFontPath(), and unsetDotFontPath().
| void portable_sleep | ( | int | ms | ) |
Definition at line 425 of file portable.cpp.
Referenced by DotManager::run().
| int portable_system | ( | const char * | command, |
| const char * | args, | ||
| bool | commandHasConsole | ||
| ) |
taken from the system() manpage on my Linux box
Definition at line 33 of file portable.cpp.
References environ, Debug::ExtCmd, and Debug::print().
Referenced by createSVG(), FlowChart::createSVG(), Htags::execute(), findAndCopyImage(), FormulaList::generateBitmaps(), generateOutput(), CiteDict::generatePage(), generatePlantUMLOutput(), getMscImageMapFromFile(), DotRunner::run(), writeDiaGraphFromFile(), ClassDiagram::writeFigure(), and writeMscGraphFromFile().
| void portable_sysTimerStart | ( | ) |
Definition at line 410 of file portable.cpp.
References g_time.
Referenced by Htags::execute(), findAndCopyImage(), FormulaList::generateBitmaps(), generateOutput(), generatePlantUMLOutput(), getMscImageMapFromFile(), DotManager::run(), writeDiaGraphFromFile(), ClassDiagram::writeFigure(), and writeMscGraphFromFile().
| void portable_sysTimerStop | ( | ) |
Definition at line 415 of file portable.cpp.
References g_sysElapsedTime, and g_time.
Referenced by Htags::execute(), findAndCopyImage(), FormulaList::generateBitmaps(), generateOutput(), CiteDict::generatePage(), generatePlantUMLOutput(), getMscImageMapFromFile(), DotManager::run(), writeDiaGraphFromFile(), ClassDiagram::writeFigure(), and writeMscGraphFromFile().
| void portable_unsetenv | ( | const char * | variable | ) |
Definition at line 283 of file portable.cpp.
References environ.
Referenced by setDotFontPath(), and unsetDotFontPath().
| char** environ |
Referenced by portable_setenv(), portable_system(), and portable_unsetenv().
|
static |
Definition at line 30 of file portable.cpp.
Referenced by portable_getSysElapsedTime(), and portable_sysTimerStop().
|
static |
Definition at line 31 of file portable.cpp.
Referenced by portable_sysTimerStart(), and portable_sysTimerStop().
|
static |
Definition at line 199 of file portable.cpp.
Referenced by portable_setenv().