malloc.h and mcheck()

The malloc.h header has prototype for some function called mcheck(). It is
not documented, so I assume it is some internal stuff. It conflicts with one
of standard Apache modules, which has static function with same name.

My understanding is, internal functions used by implementation should use
only names reserved for implementation, like __mcheck() may be. Looking at
QNX headers, they are full of undocumented functions with arbitrary names,
that’s just asking for trouble IMHO.

  • igor

Previously, Igor Kovalenko wrote in qdn.public.qnxrtp.devtools:

The malloc.h header has prototype for some function called mcheck(). It is
not documented, so I assume it is some internal stuff…
snip
My understanding is, internal functions used by implementation should use
only names reserved for implementation, like __mcheck() may be. Looking at
QNX headers, they are full of undocumented functions with arbitrary names…
snip

Not all undocumented functions are intended to be internal, at least not indefinitely. Some aren’t quite ready to be released and some simply haven’t been documented due to time constraints or other factors. (As I’m sure you’ve heard before, you use undocumented functions at your own risk.)

That said, mcheck() will be documented in the next release.

Cheers!

Doug Smith dsmith@qnx.com
Technical Publications
QNX Software Systems (613) 591-0931 x9384

Doug Smith wrote:

Previously, Igor Kovalenko wrote in qdn.public.qnxrtp.devtools:


The malloc.h header has prototype for some function called mcheck(). It is
not documented, so I assume it is some internal stuff…

snip

My understanding is, internal functions used by implementation should use
only names reserved for implementation, like __mcheck() may be. Looking at
QNX headers, they are full of undocumented functions with arbitrary names…

snip

Not all undocumented functions are intended to be internal, at least not indefinitely. Some aren’t quite ready to be released and some simply haven’t been documented due to time constraints or other factors. (As I’m sure you’ve heard before, you use undocumented functions at your own risk.)

That said, mcheck() will be documented in the next release.

Sounds like C needs namespaces…