Typedefs | Functions
portable.h File Reference

Portable versions of functions that are platform dependent. More...

#include <stdio.h>
#include <sys/types.h>
#include <stdint.h>
#include "qcstring.h"
Include dependency graph for portable.h:

Go to the source code of this file.


typedef off_t portable_off_t


int Portable::system (const QCString &command, const QCString &args, bool commandHasConsole=true)
unsigned int Portable::pid ()
QCString Portable::getenv (const QCString &variable)
void Portable::setenv (const QCString &variable, const QCString &value)
void Portable::unsetenv (const QCString &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 QCString &fileName, const QCString &mode)
int Portable::fclose (FILE *f)
void Portable::unlink (const QCString &fileName)
QCString Portable::pathSeparator ()
QCString Portable::pathListSeparator ()
const char * Portable::ghostScriptCommand ()
const char * Portable::commandExtension ()
bool Portable::fileSystemIsCaseSensitive ()
FILE * Portable::popen (const QCString &name, const QCString &type)
int Portable::pclose (FILE *stream)
void Portable::sysTimerStart ()
void Portable::sysTimerStop ()
double Portable::getSysElapsedTime ()
void Portable::sleep (int ms)
bool Portable::isAbsolutePath (const QCString &fileName)
void Portable::correct_path ()
 Correct a possible wrong PATH variable. More...
void Portable::setShortDir ()
const char * Portable::strnstr (const char *haystack, const char *needle, size_t haystack_len)
const char * Portable::devNull ()
bool Portable::checkForExecutable (const QCString &fileName)
size_t Portable::recodeUtf8StringToW (const QCString &inputStr, uint16_t **buf)
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)

Detailed Description

Portable versions of functions that are platform dependent.

Function Documentation

◆ correct_path()

void Portable::correct_path ( )

Correct a possible wrong PATH variable.

This routine was inspired by the cause for bug 766059 was that in the Windows path there were forward slashes.

◆ system()

int Portable::system ( const QCString command,
const QCString args,
bool  commandHasConsole = true 

taken from the system() manpage on my Linux box