home *** CD-ROM | disk | FTP | other *** search
/ ftp.wwiv.com / ftp.wwiv.com.zip / ftp.wwiv.com / pub / MISC / MN325SRC.ZIP / makenl-3.2.5 / src / osgnuemx.h < prev    next >
C/C++ Source or Header  |  2005-02-06  |  925b  |  42 lines

  1. /* $Id: osgnuemx.h,v 1.4 2004/07/18 10:51:37 ozzmosis Exp $ */
  2.  
  3. #include <sys/types.h>
  4. #include <stdlib.h>
  5. #include <dirent.h>
  6. #include <unistd.h>
  7.  
  8. #define STR_DIRSEPARATOR "/"
  9.  
  10. #define MYMAXFILE  _MAX_FNAME
  11. #define MYMAXDIR   _MAX_DIR
  12. #define MYMAXPATH  _MAX_PATH
  13. #define MYMAXEXT   _MAX_EXT
  14. #define MYMAXDRIVE _MAX_DRIVE
  15. #define HAVE_OS_FILE_GETNAME
  16. #define HAVE_OS_GETCWD
  17. #define HAVE_OS_FGETS
  18. #define HAVE_STRUPR
  19. #define filecmp       stricmp
  20. #define filenodir(x) (strpbrk(x,"\\/") == NULL)
  21.  
  22. /* Needed definitions */
  23. #define OSFND "osgnufnd.c"
  24. #define OSFUL "osemxful.c"
  25. /* Overrides over defaults */
  26. #undef OSEXC
  27. #define OSEXC "osemxexc.c"
  28. #undef OSGTN
  29. #define OSGTN "ignore.h"
  30. #define os_file_getname(path) _getname(path)
  31.  
  32. #define os_getcwd _getcwd2
  33.  
  34. struct _filefind
  35. {
  36.     char path[MYMAXDIR];
  37.     char mask[MYMAXFILE];
  38.     DIR *dirp;
  39.     struct dirent *pentry;
  40.     int flags;
  41. };
  42.