portable.h

Go to the documentation of this file.
00001 #ifndef PORTABLE_H
00002 #define PORTABLE_H
00003 
00004 #include <sys/types.h>
00005 #include <stdio.h>
00006 
00007 #if defined(_WIN32)
00008 typedef __int64 portable_off_t;
00009 #else
00010 typedef off_t portable_off_t;
00011 #endif
00012 
00017 int            portable_system(const char *command,const char *args,bool commandHasConsole=TRUE);
00018 uint           portable_pid();
00019 const char *   portable_getenv(const char *variable);
00020 void           portable_setenv(const char *variable,const char *value);
00021 void           portable_unsetenv(const char *variable);
00022 portable_off_t portable_fseek(FILE *f,portable_off_t offset, int whence);
00023 portable_off_t portable_ftell(FILE *f);
00024 char           portable_pathSeparator();
00025 char           portable_pathListSeparator();
00026 const char *   portable_ghostScriptCommand();
00027 const char *   portable_commandExtension();
00028 bool           portable_fileSystemIsCaseSensitive();
00029 FILE *         portable_popen(const char *name,const char *type);
00030 int            portable_pclose(FILE *stream);
00031 void *         portable_iconv_open(const char* tocode, const char* fromcode);
00032 size_t         portable_iconv (void *cd, const char** inbuf, size_t *inbytesleft, 
00033                                          char* * outbuf, size_t *outbytesleft);
00034 int            portable_iconv_close (void *cd);
00035 
00036 
00037 #endif
00038 



Generated on Mon Mar 31 10:58:41 2008 by  doxygen 1.5.1