home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / os / os2 / programm / 3784 < prev    next >
Encoding:
Text File  |  1992-07-26  |  1.4 KB  |  33 lines

  1. Newsgroups: comp.os.os2.programmer
  2. Path: sparky!uunet!munnari.oz.au!bruce.cs.monash.edu.au!monu6!yoyo.cc.monash.edu.au!parry
  3. From: parry@yoyo.cc.monash.edu.au (Tom J Parry)
  4. Subject: Re: GCC won't open ReadOnly files (was Re: GCC FAT21 fopen() bug? ; also ls bug?)
  5. Message-ID: <1992Jul26.102233.15031@monu6.cc.monash.edu.au>
  6. Originator: parry@yoyo.cc.monash.edu.au
  7. Sender: news@monu6.cc.monash.edu.au (Usenet system)
  8. Organization: Monash University, Melb., Australia.
  9. References: <1992Jul20.091236.23003@wsl.ie>
  10. Date: Sun, 26 Jul 1992 10:22:33 GMT
  11. Lines: 20
  12.  
  13. jja@wsl.ie (John J. Allen) writes:
  14. : neuron@tellabs.com (Don Graft) writes:
  15. : : [Many thanks to all responders re Simple GCC questions. Our mailer is
  16. : : refusing outgoing mail so I can't thank you personally.]
  17. : : 
  18. : : When I do fopen(file, "r") on a file that is read-only, it returns NULL.
  19. : : When I change the file to be read-write, the fopen succeeds. Am I missing
  20. : : something or is this a bug?
  21. : I've noticed that gcc can't compile read-only files and this is a pain in
  22. : the ass, as all my version controlled files are read-only.
  23.  
  24.  I'm using RCS for version control and have also encountered this problem. My
  25. fix was to set my makefile up so that it checks the required file out, changes
  26. it's attributes, compiles it and then deletes the source file. This system
  27. maintains version integrity.
  28.  
  29. -- 
  30. Tom J Parry.
  31. Your reality is a figment of my imagination.
  32.