home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 4: GNU Archives / Linux Cubed Series 4 - GNU Archives.iso / gnu / fontutil.6 / fontutil / fontutils-0.6 / include / c-fopen.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-03-27  |  1.5 KB  |  58 lines

  1. /* c-fopen.h: how to open files with fopen.
  2.  
  3. Copyright (C) 1992 Free Software Foundation, Inc.
  4.  
  5. This program is free software; you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation; either version 2, or (at your option)
  8. any later version.
  9.  
  10. This program is distributed in the hope that it will be useful,
  11. but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13. GNU General Public License for more details.
  14.  
  15. You should have received a copy of the GNU General Public License
  16. along with this program; if not, write to the Free Software
  17. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
  18.  
  19. #ifndef C_FOPEN_H
  20. #define C_FOPEN_H
  21.  
  22. /* How to open a binary file for reading:  */
  23. #ifndef FOPEN_RBIN_MODE
  24. #ifdef VMS
  25. #define    FOPEN_RBIN_MODE    "rb"
  26. #else
  27. #ifdef DOS
  28. #define FOPEN_RBIN_MODE "rb"
  29. #else
  30. #ifdef VMCMS
  31. #define FOPEN_RBIN_MODE "rb"
  32. #else
  33. #define    FOPEN_RBIN_MODE    "r"
  34. #endif /* not VM/CMS */
  35. #endif /* not DOS */
  36. #endif /* not VMS */
  37. #endif /* not FOPEN_RBIN_MODE */
  38.  
  39. /* How to open a binary file for writing:  */
  40. #ifndef FOPEN_WBIN_MODE
  41. #ifdef DOS
  42. #define FOPEN_WBIN_MODE "wb"
  43. #else
  44. #ifdef VMCMS
  45. #define FOPEN_WBIN_MODE "wb, lrecl=1024, recfm=f"
  46. #else
  47. #define    FOPEN_WBIN_MODE    "w"
  48. #endif /* not VM/CMS */
  49. #endif /* not DOS */
  50. #endif /* not FOPEN_WBIN_MODE */
  51.  
  52. /* How to open a normal file:  */
  53. #ifndef FOPEN_R_MODE
  54. #define FOPEN_R_MODE "r"
  55. #endif
  56.  
  57. #endif /* not C_FOPEN_H */
  58.