Chameleon

Chameleon Svn Source Tree

Root/branches/xZenu/src/util/doxygen/src/portable.h

Source at commit 1322 created 9 years 5 months ago.
By meklort, Add doxygen to utils folder
1#ifndef PORTABLE_H
2#define PORTABLE_H
3
4#include <sys/types.h>
5#include <stdio.h>
6#include <qglobal.h>
7
8#if defined(_WIN32)
9typedef __int64 portable_off_t;
10#else
11typedef off_t portable_off_t;
12#endif
13
14/** @file
15 * @brief Portable versions of functions that are platform dependent.
16 */
17
18int portable_system(const char *command,const char *args,bool commandHasConsole=TRUE);
19uint portable_pid();
20const char * portable_getenv(const char *variable);
21void portable_setenv(const char *variable,const char *value);
22void portable_unsetenv(const char *variable);
23portable_off_t portable_fseek(FILE *f,portable_off_t offset, int whence);
24portable_off_t portable_ftell(FILE *f);
25FILE * portable_fopen(const char *fileName,const char *mode);
26char portable_pathSeparator();
27char portable_pathListSeparator();
28const char * portable_ghostScriptCommand();
29const char * portable_commandExtension();
30bool portable_fileSystemIsCaseSensitive();
31FILE * portable_popen(const char *name,const char *type);
32int portable_pclose(FILE *stream);
33void portable_sysTimerStart();
34void portable_sysTimerStop();
35double portable_getSysElapsedTime();
36void portable_sleep(int ms);
37
38extern "C" {
39 void * portable_iconv_open(const char* tocode, const char* fromcode);
40 size_t portable_iconv (void *cd, const char** inbuf, size_t *inbytesleft,
41 char* * outbuf, size_t *outbytesleft);
42 int portable_iconv_close (void *cd);
43}
44
45
46#endif
47
48

Archive Download this file

Revision: 1322