This is the mail archive of the
newlib@sources.redhat.com
mailing list for the newlib project.
Re: PATCH/RFA add "access" function for ARM
- From: Richard Earnshaw <rearnsha at arm dot com>
- To: "J. Johnston" <jjohnstn at redhat dot com>
- Cc: Richard dot Earnshaw at arm dot com, newlib at sources dot redhat dot com
- Date: Mon, 11 Mar 2002 12:03:43 +0000
- Subject: Re: PATCH/RFA add "access" function for ARM
- Organization: ARM Ltd.
- Reply-to: Richard dot Earnshaw at arm dot com
> Richard Earnshaw wrote:
> > PS, I'm not on this mailing list; please cc me directly on any follow up.
> >
> > <date> Richard Earnshaw <rearnsha@arm.com>
> >
> > * sys/arm/access.c: New file.
> > * sys/arm/Makefile.am (lib_a_SOURCES): Add it
> > * sys/arm/Makefile.in: Regenerate.
> > * sys/arm/syscalls.c (_stat): New function.
> >
>
> Richard,
>
> First of all, we don't add files with the copying.dj licence
> in regular directories any more. As it so happens, the access.c
> file licence has been relaxed by DJ in the past and we can take a copy
> from the libgloss/mn10300 directory which has the less restrictive
> licence.
I just copied the one out of the sys/go32 directory. If there are other
copies with more appropriate licences, I've no problem with that.
>
> Can you comment on whether the change to _fstat is needed by f77
> (i.e. is it just there to support _stat and thus: access() or does f77
> rely on fstat returning S_IFREG | S_IREAD for st_mode). I would prefer
> to remove the call to _fstat and just set st manually since _stat
> has confirmed that the file is regular and readable, not _fstat.
> I have included a modified version of the patch in case you want
> to verify whether the _fstat change is needed.
Your suggested patch works just as well in the g77 testsuite.
R.