home *** CD-ROM | disk | FTP | other *** search
/ ftp.wwiv.com / ftp.wwiv.com.zip / ftp.wwiv.com / pub / MISC / MNLDOS.ZIP / src / os.c < prev    next >
C/C++ Source or Header  |  2004-07-16  |  1KB  |  62 lines

  1. /* os.c -- Operating system dependant functions for makenl */
  2.  
  3. /* $Id: os.c,v 1.4 2004/07/15 17:44:02 ozzmosis Exp $ */
  4.  
  5. #include <stdio.h>
  6. #include <string.h>
  7. #include "fileutil.h"
  8. #include "makenl.h"
  9. #include "os.h"
  10.  
  11. #ifdef MALLOC_DEBUG
  12. #include "rmalloc.h"
  13. #endif
  14.  
  15. #ifdef DMALLOC
  16. #include "dmalloc.h"
  17. #endif
  18.  
  19. /* Definitions for:                                               */
  20. /* __GNUC__     GNU C Compiler under DOS and OS/2 and linux       */
  21. /* __unix__     GNU C Compiler under Unix (tested with linux)     */
  22. /* __EMX__      emx+gcc for DOS/OS2                               */
  23. /* __WATCOMC__  Watcom C Compiler 10.0b under DOS, OS/2 and Win32 */
  24. /* __TURBOC__   Turbo C 2.00 and above, Borland C, under DOS      */
  25.  
  26. #ifndef OSFUL
  27. #error "No os_fullpath for this compiler/OS, giving up!"
  28. #endif
  29. #include OSFUL
  30.  
  31. #ifndef OSFND
  32. #error "No os_findfirst/os_findnext/os_findclose for this compiler/OS, giving up!"
  33. #endif
  34. #include OSFND
  35.  
  36.  
  37. /* os_deslashify */
  38. #include OSDSL
  39. /* os_fulldir */
  40. #include OSFLD
  41. /* os_findfile */
  42. #include OSFF
  43. /* os_append_slash */
  44. #include OSAPS
  45. /* os_remove_slash */
  46. #include OSRMS
  47. /* os_file_getname */
  48. #include OSGTN
  49. /* os_spawn */
  50. #include OSEXC
  51. /* os_file_canonify */
  52. #include OSCAN
  53.  
  54. #ifndef HAVE_STRUPR
  55. #include "osgenupr.c"
  56. #endif
  57.  
  58.  
  59. #ifdef USE_OWN_FGETS
  60. #include USE_OWN_FGETS
  61. #endif
  62.