You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by hiten pandya <hp...@lycos.co.uk> on 2001/10/25 21:47:45 UTC

malloc.h is deprecated in FreeBSD :-{

hi all,
after a long time...

correct me if i am wrong...
i was reading the FreeBSD Developer Handbook and the 
Porters Handbook.. and it said that malloc.h is deprecated 
in FreeBSD.. i think 4.3 and up....

I saw some code that was using malloc.h.. i just wanted to 
pass a note.. do u think that when we release the source 
for FreeBSD for example... we should change the malloc.h 
bit to stdlib.h (thats the new one in use)...?

And when we build binaries... we should change the code or 
make a patch which will change the malloc.h bit to the new 
library and then make the actual binary...?

thanks,


regards,
hiten pandya
<hp...@lycos.co.uk>

            

______________________________________________________
Free E-mail - Lycos UK - http://www.lycos.co.uk
Get your domain for £9.90 - http://lycos.uk.domainnames.com/default.asp?caller=lycos_ef
Play now to win £1 Million - http://www.thedailydraw.com/mainframe.cfm?source=lycos



Re: malloc.h is deprecated in FreeBSD :-{

Posted by Jeff Trawick <tr...@attglobal.net>.
Cliff Woolley <cl...@yahoo.com> writes:

> On Fri, 26 Oct 2001, Cliff Woolley wrote:
> 
> > I think I spotted one the other day when Hiten first brought this up, but
> > I'd forgotten about it.  I'll go fix it.
> 
> Turns out that the ones that are missing the #ifdef's are all in Win32 or
> OS2-related files--all the ones for Unix are correct.  Should the
> Win32/OS2 ones have the #ifdef's or not?

It wouldn't seem to be so important (so I ignored them).  If the
vendors of supported compilers decide to remove malloc.h, I guess a
test would be needed.

-- 
Jeff Trawick | trawick@attglobal.net | PGP public key at web site:
       http://www.geocities.com/SiliconValley/Park/9289/
             Born in Roswell... married an alien...

Re: malloc.h is deprecated in FreeBSD :-{

Posted by Cliff Woolley <cl...@yahoo.com>.
On Fri, 26 Oct 2001, Cliff Woolley wrote:

> I think I spotted one the other day when Hiten first brought this up, but
> I'd forgotten about it.  I'll go fix it.

Turns out that the ones that are missing the #ifdef's are all in Win32 or
OS2-related files--all the ones for Unix are correct.  Should the
Win32/OS2 ones have the #ifdef's or not?

--Cliff

--------------------------------------------------------------
   Cliff Woolley
   cliffwoolley@yahoo.com
   Charlottesville, VA



Re: malloc.h is deprecated in FreeBSD :-{

Posted by Cliff Woolley <cl...@yahoo.com>.
On 26 Oct 2001, Jeff Trawick wrote:

> Do you see it included anywhere without #ifdef HAVE_MALLOC_H around the
> include?

I think I spotted one the other day when Hiten first brought this up, but
I'd forgotten about it.  I'll go fix it.

--Cliff

--------------------------------------------------------------
   Cliff Woolley
   cliffwoolley@yahoo.com
   Charlottesville, VA



Re: malloc.h is deprecated in FreeBSD :-{

Posted by Jeff Trawick <tr...@attglobal.net>.
hiten pandya <hp...@lycos.co.uk> writes:

> 
> I saw some code that was using malloc.h.. i just wanted to 
> pass a note.. do u think that when we release the source 
> for FreeBSD for example... we should change the malloc.h 
> bit to stdlib.h (thats the new one in use)...?

We would prefer not to have such low-level knowledge.  We check at
configure time whether or not we can safely include malloc.h and
should only include it on such systems.  Whether or not it is
deprecated on a particular platform isn't a problem.

Do you see it included anywhere without #ifdef HAVE_MALLOC_H around the
include?  APR checks for the existence of malloc.h and is careful to
include it only if it exists and can be included without breaking the
compile.

-- 
Jeff Trawick | trawick@attglobal.net | PGP public key at web site:
       http://www.geocities.com/SiliconValley/Park/9289/
             Born in Roswell... married an alien...