This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: A prototype for final.c


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]