🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.os2.programmer
Article #479

Re: GCC won't open ReadOnly files (was Re: GCC FAT21 fopen() bug? ; also ls bug?)

#479
From: Tom J Parry
Date: Sun, 26 Jul 1992 10:22
20 lines
1458 bytes
jja@wsl.ie (John J. Allen) writes:
: neuron@tellabs.com (Don Graft) writes:
: : [Many thanks to all responders re Simple GCC questions. Our mailer is
: : refusing outgoing mail so I can't thank you personally.]
: : 
: : When I do fopen(file, "r") on a file that is read-only, it returns NULL.
: : When I change the file to be read-write, the fopen succeeds. Am I missing
: : something or is this a bug?
: 
: I've noticed that gcc can't compile read-only files and this is a pain in
: the ass, as all my version controlled files are read-only.

 I'm using RCS for version control and have also encountered this problem. My
fix was to set my makefile up so that it checks the required file out, changes
it's attributes, compiles it and then deletes the source file. This system
maintains version integrity.

-- 
Tom J Parry.
Your reality is a figment of my imagination.
Technical Details
Message-ID: <1992Jul26.102233.15031@monu6.cc.monash.edu.au>
Path: arc1-ca.pugleaf.net!sparky!uunet!munnari.oz.au!bruce.cs.monash.edu.au!monu6!yoyo.cc.monash.edu.au!parry
References: <1992Jul20.091236.23003@wsl.ie>

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.os2.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!munnari.oz.au!bruce.cs.monash.edu.au!monu6!yoyo.cc.monash.edu.au!parry
From: parry@yoyo.cc.monash.edu.au (Tom J Parry)
Subject: Re: GCC won't open ReadOnly files (was Re: GCC FAT21 fopen() bug? ; also ls bug?)
Message-ID: <1992Jul26.102233.15031@monu6.cc.monash.edu.au>
Originator: parry@yoyo.cc.monash.edu.au
Sender: news@monu6.cc.monash.edu.au (Usenet system)
Organization: Monash University, Melb., Australia.
References: <1992Jul20.091236.23003@wsl.ie>
Date: Sun, 26 Jul 1992 10:22:33 GMT
Lines: 20