This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: call system in test cases?
- From: Steve Kargl <sgk at troutmask dot apl dot washington dot edu>
- To: FX Coudert <Francois-Xavier dot Coudert at lcp dot u-psud dot fr>
- Cc: Thomas Koenig <Thomas dot Koenig at online dot de>, fortran at gcc dot gnu dot org
- Date: Sun, 16 Jan 2005 15:11:23 -0800
- Subject: Re: call system in test cases?
- References: <20050116214004.GA6077@meiner.onlinehome.de> <41EAE13F.9040501@lcp.u-psud.fr>
On Sun, Jan 16, 2005 at 10:48:47PM +0100, FX Coudert wrote:
> >What is the best way to go about this? Currently, I use
> >call system("touch foo.bar; chmod u-w foo.bar"). Is there
> >anything more elegant or portable?
>
> If I am not mistaken, there is a chmod intrinsic function in g77, but I
> think it is not implemented yet in gfortran.
>
You are correct. Chmod was on my list of intrinsics to implement, but
I haven't found the time or desire to do so.
--
Steve