portable.cpp File Reference

#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 <iconv.h>
#include "portable.h"
#include "debug.h"

Go to the source code of this file.

Defines

#define CASTNEEDED(x)   (char **)(x)

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)
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_iconv_open (const char *tocode, const char *fromcode)
size_t portable_iconv (void *cd, const char **inbuf, size_t *inbytesleft, char **outbuf, size_t *outbytesleft)
int portable_iconv_close (void *cd)

Variables

char ** environ


Define Documentation

#define CASTNEEDED (  )     (char **)(x)

Referenced by portable_iconv().


Function Documentation

const char* portable_commandExtension (  ) 

Definition at line 344 of file portable.cpp.

Referenced by Config::check(), getMscImageMapFromFile(), and writeMscGraphFromFile().

bool portable_fileSystemIsCaseSensitive (  ) 

Definition at line 353 of file portable.cpp.

Referenced by Config::check(), Config::create(), and getFileFilter().

portable_off_t portable_fseek ( FILE *  f,
portable_off_t  offset,
int  whence 
)

Definition at line 299 of file portable.cpp.

Referenced by Store::alloc(), Store::read(), Store::release(), Store::seek(), and Store::write().

portable_off_t portable_ftell ( FILE *  f  ) 

Definition at line 308 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 294 of file portable.cpp.

Referenced by Config::check(), and writeDotGraphFromFile().

const char* portable_ghostScriptCommand (  ) 

Definition at line 335 of file portable.cpp.

Referenced by FormulaList::generateBitmaps().

size_t portable_iconv ( void *  cd,
const char **  inbuf,
size_t *  inbytesleft,
char **  outbuf,
size_t *  outbytesleft 
)

Definition at line 377 of file portable.cpp.

References CASTNEEDED.

Referenced by OutputGenerator::endPlainFile(), TranslatorDecoder::recode(), recodeString(), and transcodeCharacterStringToUTF8().

int portable_iconv_close ( void *  cd  ) 

Definition at line 393 of file portable.cpp.

Referenced by OutputGenerator::endPlainFile(), recodeString(), transcodeCharacterStringToUTF8(), and TranslatorDecoder::~TranslatorDecoder().

void* portable_iconv_open ( const char *  tocode,
const char *  fromcode 
)

Definition at line 372 of file portable.cpp.

Referenced by OutputGenerator::endPlainFile(), recodeString(), transcodeCharacterStringToUTF8(), and TranslatorDecoder::TranslatorDecoder().

char portable_pathListSeparator (  ) 

Definition at line 326 of file portable.cpp.

Referenced by Config::check().

char portable_pathSeparator (  ) 

Definition at line 317 of file portable.cpp.

Referenced by writeDotGraphFromFile(), and writeMscGraphFromFile().

int portable_pclose ( FILE *  stream  ) 

Definition at line 367 of file portable.cpp.

Referenced by FileDef::acquireFileVersion(), copyAndFilterFile(), fileToString(), and preprocessFile().

uint portable_pid (  ) 

Definition at line 168 of file portable.cpp.

Referenced by parseInput().

FILE* portable_popen ( const char *  name,
const char *  type 
)

Definition at line 362 of file portable.cpp.

Referenced by FileDef::acquireFileVersion(), copyAndFilterFile(), fileToString(), and preprocessFile().

void portable_setenv ( const char *  name,
const char *  value 
)

Definition at line 181 of file portable.cpp.

References environ.

Referenced by Config::check(), and writeDotGraphFromFile().

int portable_system ( const char *  command,
const char *  args,
bool  commandHasConsole 
)

Definition at line 32 of file portable.cpp.

References environ, Debug::ExtCmd, Debug::print(), and QCString.

Referenced by Htags::execute(), FormulaList::generateBitmaps(), generateOutput(), getMscImageMapFromFile(), DotRunner::run(), writeDotGraphFromFile(), ClassDiagram::writeFigure(), DotGroupCollaboration::writeGraph(), DotDirDeps::writeGraph(), DotCallGraph::writeGraph(), DotInclDepGraph::writeGraph(), DotClassGraph::writeGraph(), and writeMscGraphFromFile().

void portable_unsetenv ( const char *  variable  ) 

Definition at line 260 of file portable.cpp.

References environ.

Referenced by writeDotGraphFromFile().


Variable Documentation

char** environ

Referenced by portable_setenv(), portable_system(), and portable_unsetenv().



Generated on Mon Mar 31 10:58:53 2008 by  doxygen 1.5.1