home *** CD-ROM | disk | FTP | other *** search
/ PC Online 1999 November / PCONLINE_11_99.ISO / filesbbs / OS2 / MMSRC029.ZIP / mmail-0.29 / interfac / mysystem.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-07-17  |  1.1 KB  |  58 lines

  1. /*
  2.  * MultiMail offline mail reader
  3.  * protos for mysystem.cc
  4.  
  5.  Copyright (c) 1999 William McBrine <wmcbrine@clark.net> 
  6.  
  7.  Distributed under the GNU General Public License.
  8.  For details, see the file COPYING in the parent directory. */
  9.  
  10. #ifndef MYSYSTEM_H
  11. #define MYSYSTEM_H
  12.  
  13. #include <ctime>
  14.  
  15. extern "C" {
  16. #include <sys/types.h>
  17. }
  18.  
  19. int mysystem(const char *);
  20. void mytmpnam(char *);
  21. int mychdir(const char *);
  22. int mymkdir(const char *);
  23. void myrmdir(const char *);
  24. void mygetcwd(char *);
  25. bool readable(const char *);
  26. bool writeable(const char *);
  27. const char *sysname();
  28. bool myopendir(const char *);
  29. const char *myreaddir();
  30. void clearDirectory(const char *);
  31.  
  32. #if defined (__MSDOS__) || defined (__EMX__)
  33. const char *canonize(const char *);
  34. void shellout();
  35. #else
  36. # define canonize(x) x
  37. #endif
  38.  
  39. class mystat
  40. {
  41.  public:
  42.     off_t size;
  43.     time_t date;
  44.     bool isdir;
  45.  
  46.     bool init(const char *);
  47. };
  48.  
  49. // Some of the functions normally used by MultiMail don't exist in EMX,
  50. // but are available under other names:
  51.  
  52. #ifdef __EMX__
  53. # define strcasecmp stricmp
  54. # define strncasecmp strnicmp
  55. #endif
  56.  
  57. #endif
  58.