A prototype for final.c

Horst von Brand vonbrand@sleipnir.valparaiso.cl
Mon Jun 22 18:47:00 GMT 1998


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



More information about the Gcc-patches mailing list