Portable versions of functions that are platform dependent. More...
Go to the source code of this file.
Typedefs | |
typedef off_t | portable_off_t |
Functions | |
int | portable_system (const char *command, const char *args, bool commandHasConsole=TRUE) |
uint | portable_pid () |
const char * | portable_getenv (const char *variable) |
void | portable_setenv (const char *variable, const char *value) |
void | portable_unsetenv (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) |
void * | portable_iconv_open (const char *tocode, const char *fromcode) |
size_t | portable_iconv (void *cd, char **inbuf, size_t *inbytesleft, char **outbuf, size_t *outbytesleft) |
int | portable_iconv_close (void *cd) |
Portable versions of functions that are platform dependent.
Definition in file portable.h.
typedef off_t portable_off_t |
Definition at line 11 of file portable.h.
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.
size_t portable_iconv | ( | void * | cd, |
char ** | inbuf, | ||
size_t * | inbytesleft, | ||
char ** | outbuf, | ||
size_t * | outbytesleft | ||
) |
Definition at line 24 of file portable_c.c.
int portable_iconv_close | ( | void * | cd | ) |
Definition at line 30 of file portable_c.c.
void* portable_iconv_open | ( | const char * | tocode, |
const char * | fromcode | ||
) |
Definition at line 19 of file portable_c.c.
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 * | variable, |
const char * | value | ||
) |
Definition at line 202 of file portable.cpp.
void portable_sleep | ( | int | ms | ) |
Definition at line 425 of file portable.cpp.
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.