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 / osgnulnx.h < prev    next >
C/C++ Source or Header  |  2005-02-06  |  786b  |  38 lines

  1. /* $Id: osgnulnx.h,v 1.4 2004/07/17 03:05:06 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  64
  11. #define MYMAXDIR   1024
  12. #define MYMAXPATH  1088
  13. #define MYMAXEXT   12
  14. #define MYMAXDRIVE 3
  15. #define filecmp       strcmp
  16. #define filenodir(x) (strchr(x,'/') == NULL)
  17. #define stricmp    strcasecmp
  18.  
  19. /* Needed definitions */
  20. #define OSFND "osgnufnd.c"
  21. #define OSFUL "oslnxful.c"
  22. /* Overrides over defaults */
  23. #undef OSCWD
  24. #define OSCWD "oslnxcwd.c"
  25. #undef OSDSL
  26. #define OSDSL "oslnxdsl.c"
  27.  
  28. #define USE_OWN_FGETS "oslnxget.c"
  29.  
  30. struct _filefind
  31. {
  32.     char path[MYMAXDIR];
  33.     char mask[MYMAXFILE];
  34.     DIR *dirp;
  35.     struct dirent *pentry;
  36.     int flags;
  37. };
  38.