#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.
bool portable_fileSystemIsCaseSensitive | ( | ) |
Definition at line 391 of file portable.cpp.
FILE* portable_fopen | ( | const char * | fileName, |
const char * | mode | ||
) |
Definition at line 344 of file portable.cpp.
portable_off_t portable_fseek | ( | FILE * | f, |
portable_off_t | offset, | ||
int | whence | ||
) |
Definition at line 322 of file portable.cpp.
portable_off_t portable_ftell | ( | FILE * | f | ) |
Definition at line 333 of file portable.cpp.
const char* portable_getenv | ( | const char * | variable | ) |
Definition at line 317 of file portable.cpp.
double portable_getSysElapsedTime | ( | ) |
Definition at line 420 of file portable.cpp.
const char* portable_ghostScriptCommand | ( | ) |
Definition at line 373 of file portable.cpp.
bool portable_isAbsolutePath | ( | const char * | fileName | ) |
Definition at line 434 of file portable.cpp.
char portable_pathListSeparator | ( | ) |
Definition at line 364 of file portable.cpp.
char portable_pathSeparator | ( | ) |
Definition at line 355 of file portable.cpp.
int portable_pclose | ( | FILE * | stream | ) |
Definition at line 405 of file portable.cpp.
uint portable_pid | ( | ) |
Definition at line 186 of file portable.cpp.
FILE* portable_popen | ( | const char * | name, |
const char * | type | ||
) |
Definition at line 400 of file portable.cpp.
void portable_setenv | ( | const char * | name, |
const char * | value | ||
) |
Definition at line 202 of file portable.cpp.
void portable_sleep | ( | int | ms | ) |
Definition at line 425 of file portable.cpp.
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.
void portable_sysTimerStart | ( | ) |
Definition at line 410 of file portable.cpp.
void portable_sysTimerStop | ( | ) |
Definition at line 415 of file portable.cpp.
void portable_unsetenv | ( | const char * | variable | ) |
Definition at line 283 of file portable.cpp.
char** environ |
|
static |
Definition at line 30 of file portable.cpp.
|
static |
Definition at line 31 of file portable.cpp.
|
static |
Definition at line 199 of file portable.cpp.