home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / gnu / gcc / bug / 3026 < prev    next >
Encoding:
Text File  |  1992-12-21  |  1.7 KB  |  39 lines

  1. Newsgroups: gnu.gcc.bug
  2. Path: sparky!uunet!cis.ohio-state.edu!sycraft.COM!ken
  3. From: ken@sycraft.COM (Ken Richardson)
  4. Subject: Is _IOFBF dysfunctional in gcc/g++?
  5. Message-ID: <1992Dec19.135204.55@sycraft.com>
  6. Sender: gnulists@ai.mit.edu
  7. Organization: SyCraft Software, Colorado Springs CO
  8. Distribution: gnu
  9. Date: Sat, 19 Dec 1992 20:52:03 GMT
  10. Approved: bug-gcc@prep.ai.mit.edu
  11. Lines: 26
  12.  
  13. I need to use buffered file I/O for performance, but _IOFBF isn't defined in
  14. stdio.h (as I received it on the standard distribution from miami.edu).
  15.  
  16. I found the definition for _IOFBF as "02" from an old version of GCC (version
  17. 1.something - I don't remember exactly), and it sort-of works.  But it's
  18. slightly buggy, for example sometimes not reading all the file data on input,
  19. and always writing extra buffer space on output, without a correct EOF
  20. indication. These problems didn't exist on the older version of gcc that I
  21. upgraded to 2.2.2.
  22.  
  23. I can work around the problem by dropping the setvbuf/_IOFBF call, but that
  24. increases my file I/O by a factor of 100.  :-(
  25.  
  26. I'm using GCC 2.2.2 on VMS as distributed by mango.rsmas.miami.edu.  :-)
  27. I'm using the /plus compiler option, as I'm using some C++ features.
  28.  
  29. I would greatly appreciate your help; email is fine.
  30. If any interest is expressed, I will gladly summarize.  Thanks.
  31. --
  32. ------------------------------------------------------------------------------
  33.  Ken Richardson  | SyCraft Software | When wealth is lost, nothing is lost;
  34.  ken@sycraft.com | Colorado Springs | when health is lost, something is lost;
  35.                  | CO, USA          | when character is lost, all is lost.
  36. ------------------------------------------------------------------------------
  37.  
  38.  
  39.