This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: A prototype for final.c
- To: law at cygnus dot com
- Subject: Re: A prototype for final.c
- From: Horst von Brand <vonbrand at sleipnir dot valparaiso dot cl>
- Date: Mon, 22 Jun 1998 20:17:35 -0500
- cc: egcs-patches at cygnus dot com
Jeffrey A Law <law@cygnus.com> said:
> In message <199806220101.VAA28274@caip.rutgers.edu>you write:
> > > From: Jason Merrill <jason@cygnus.com>
> > >
> > > >>>>> H J Lu <hjl@lucon.org> writes:
> > >
> > > > * final.c (getpwd): Add prototype.
> > >
> > > Shouldn't this go in system.h?
> > > Jason
> >
> > What is the standard system header which declares getpwd?
> > I'd like to call GCC_NEED_DECLARATION(getpwd) but only if getpwd
> > lives in one of the headers checked by that AC macro.
> None on most modern systems. "getwd" is the one found on most systems
> these days.
I've got getcwd(3) in unistd.h under glibc-2.0.94. BTW, glibc tells me that
getwd(3) is insecure and deprecated. Time to switch?
--
Horst von Brand vonbrand@sleipnir.valparaiso.cl
Casilla 9G, Viņa del Mar, Chile +56 32 672616