| From: DEC:.REO.REOVTX::HUDSON "[email protected] - UK Software
Partner Engineering 830-4121" 4-MAR-1997 15:30:02.41
To: nm%vbormc::"[email protected]"
CC: HUDSON
Subj: RE:POINT No.21589, can't find malloc.h
Hello Tim Scott
Thanks for your ASAP question on malloc.h
I am assuming you are getting this error ("Cannot find file: 'malloc.h'") when
you are attempting to build some code that you've taken from a Unix system.
The file malloc.h doesn't ship with DEC C for VMS.
From looking on my Unix system, the function prototypes it contains are for
"mallopt()" and "mallinfo()". The documentation on Digital Unix says that
these are provided for System V compatibility only and that new applications
shouldn't be using them.
"mallopt()" and "mallinfo()" have never been provided by C compilers on VMS.
From the description of the functions, I guess you should be able to remove
any reference to them in your application without ill-effect. Perhaps your
application isn't actually using them anyway, and so removing the reference to
"malloc.h" would mean your programs would compile without you having to edit
the rest of the code.
Functions such as "malloc()" and "free()" are supported under DEC C for VMS.
For these functions, you need to include "stdlib.h".
On VMS, you can find out which header files are required for a given run-time
function using the on-line help, e.g.
$ help cc run-time malloc
CC
Run-time_functions
malloc
Allocates an area of memory. This function is AST-reentrant.
Syntax:
#include <stdlib.h>
void *malloc(size_t size);
I hope this information is useful to you
Regards
Nick Hudson
Digital Software Partner Engineering
|
| From: VBORMC::"[email protected]" "Tim Scott" 5-MAR-1997 12:45:55.08
To: hudson <[email protected]>
CC:
Subj: RE: RE:POINT No.21589, can't find malloc.h
Please close.
Thank you.
Tim.
----------
From: hudson
To: "[email protected]"
Cc: hudson
Subject: RE:POINT No.21589, can't find malloc.h
Date: 04 March 1997 16:27
Hello Tim Scott
Thanks for your ASAP question on malloc.h
I am assuming you are getting this error ("Cannot find file: 'malloc.h'")
when
you are attempting to build some code that you've taken from a Unix system.
The file malloc.h doesn't ship with DEC C for VMS.
From looking on my Unix system, the function prototypes it contains are for
"mallopt()" and "mallinfo()". The documentation on Digital Unix says that
these are provided for System V compatibility only and that new applications
shouldn't be using them.
"mallopt()" and "mallinfo()" have never been provided by C compilers on VMS.
From the description of the functions, I guess you should be able to remove
any reference to them in your application without ill-effect. Perhaps your
application isn't actually using them anyway, and so removing the reference
to
"malloc.h" would mean your programs would compile without you having to edit
the rest of the code.
Functions such as "malloc()" and "free()" are supported under DEC C for VMS.
For these functions, you need to include "stdlib.h".
On VMS, you can find out which header files are required for a given
run-time
function using the on-line help, e.g.
$ help cc run-time malloc
CC
Run-time_functions
malloc
Allocates an area of memory. This function is AST-reentrant.
Syntax:
#include <stdlib.h>
void *malloc(size_t size);
I hope this information is useful to you
Regards
Nick Hudson
Digital Software Partner Engineering
% ====== Internet headers and postmarks (see DECWRL::GATEWAY.DOC) ======
% Received: from mail.vbo.dec.com (mail.vbo.dec.com [16.36.208.34]) by
vbormc.vbo.dec.com (8.7.3/8.7) with ESMTP id NAA22925 for
<[email protected]>; Wed, 5 Mar 1997 13:42:52 +0100
% Received: from server21.digital.fr (server21.digital.fr [193.56.15.21]) by
mail.vbo.dec.com (8.7.3/8.7) with ESMTP id NAA08266 for
<[email protected]>; Wed, 5 Mar 1997 13:47:35 +0100 (MET)
% Received: from duct.mail.pipex.net (duct.mail.pipex.net [158.43.128.21]) by
server21.digital.fr (8.7.5/8.7) with SMTP id NAA22954 for
<[email protected]>; Wed, 5 Mar 1997 13:50:12 +0100 (MET)
% Received: from swan.fdgroup.co.uk by duct.mail.pipex.net with SMTP (PP); Wed,
5 Mar 1997 12:44:18 +000
% Received: from dodger by swan.fdgroup.co.uk (AIX 3.2/UCB 5.64/4.03) id
AA07175; Wed, 5 Mar 1997 12:36:50 GM
% Received: by dodger.fdgroup.co.uk with NT SMTP Gateway ver 31 id
<[email protected]>; Wed, 05 Mar 97 12:41:56
% From: Tim Scott <[email protected]>
% To: hudson <[email protected]>
% Subject: RE: RE:POINT No.21589, can't find malloc.h
% Date: Wed, 05 Mar 97 12:41:00 G
% Message-Id: <[email protected]>
% Encoding: 68 TEXT
% X-Mailer: Microsoft Mail V3.0
|