My Project
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
portable.h
Go to the documentation of this file.
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)
9 typedef __int64 portable_off_t;
10 #else
11 typedef off_t portable_off_t;
12 #endif
13 
18 int portable_system(const char *command,const char *args,bool commandHasConsole=TRUE);
19 uint portable_pid();
20 const char * portable_getenv(const char *variable);
21 void portable_setenv(const char *variable,const char *value);
22 void portable_unsetenv(const char *variable);
23 portable_off_t portable_fseek(FILE *f,portable_off_t offset, int whence);
25 FILE * portable_fopen(const char *fileName,const char *mode);
28 const char * portable_ghostScriptCommand();
29 const char * portable_commandExtension();
31 FILE * portable_popen(const char *name,const char *type);
32 int portable_pclose(FILE *stream);
36 void portable_sleep(int ms);
37 bool portable_isAbsolutePath(const char *fileName);
38 
39 extern "C" {
40  void * portable_iconv_open(const char* tocode, const char* fromcode);
41  size_t portable_iconv (void *cd, char** inbuf, size_t *inbytesleft,
42  char* * outbuf, size_t *outbytesleft);
43  int portable_iconv_close (void *cd);
44 }
45 
46 #endif
47