fopen-vms.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /* Macros for the 'type' part of an fopen, freopen or fdopen.
  2. <Read|Write>[Update]<Binary file|text file>
  3. This version is for VMS systems, where text and binary files are
  4. different.
  5. Copyright (C) 1996-2022 Free Software Foundation, Inc.
  6. This program is free software; you can redistribute it and/or modify
  7. it under the terms of the GNU General Public License as published by
  8. the Free Software Foundation; either version 2, or (at your option)
  9. any later version.
  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. You should have received a copy of the GNU General Public License
  15. along with this program; if not, write to the Free Software
  16. Foundation, Inc., 51 Franklin Street - Fifth Floor,
  17. Boston, MA 02110-1301, USA. */
  18. /* This file is designed for inclusion by host-dependent .h files. No
  19. user application should include it directly, since that would make
  20. the application unable to be configured for both "same" and "binary"
  21. variant systems. */
  22. #define FOPEN_RB "rb,rfm=udf,rat=none"
  23. #define FOPEN_WB "wb,rfm=udf,rat=none"
  24. #define FOPEN_AB "ab,rfm=udf,rat=none"
  25. #define FOPEN_RUB "r+b,rfm=udf,rat=none"
  26. #define FOPEN_WUB "w+b,rfm=udf,rat=none"
  27. #define FOPEN_AUB "a+b,rfm=udf,rat=none"
  28. #define FOPEN_RT "r"
  29. #define FOPEN_WT "w"
  30. #define FOPEN_AT "a"
  31. #define FOPEN_RUT "r+"
  32. #define FOPEN_WUT "w+"
  33. #define FOPEN_AUT "a+"