FreeMem

Since the file freememk/totmemk in osinfo areunsigned short, what
alternative is there to get the info on a machine with more then 64Meg.

  • Mario

“Mario Charest” postmaster@127.0.0.1 wrote in message
news:dd0gb3$641$1@inn.qnx.com

Since the file freememk/totmemk in osinfo areunsigned short, what
alternative is there to get the info on a machine with more then 64Meg.

Found the answer the knowledge base !

  • Mario

Mario Charest postmaster@127.0.0.1 wrote:

“Mario Charest” postmaster@127.0.0.1 wrote in message
news:dd0gb3$641$> 1@inn.qnx.com> …


Since the file freememk/totmemk in osinfo areunsigned short, what
alternative is there to get the info on a machine with more then 64Meg.


Found the answer the knowledge base !

It is also, amazingly enough, in the documentation for qnx_osinfo() where
it says:

short unsigned totmemk
Use totpmem instead.
short unsigned freememk
Use freepmem instead.

long unsigned totpmem
Total memory in the system.
long unsigned freepmem
Free memory in the system.

-David

David Gibbs
QNX Training Services
dagibbs@qnx.com

“David Gibbs” <dagibbs@qnx.com> wrote in message
news:dd7oi2$3ml$1@inn.qnx.com

Mario Charest postmaster@127.0.0.1 wrote:

“Mario Charest” postmaster@127.0.0.1 wrote in message
news:dd0gb3$641$> 1@inn.qnx.com> …


Since the file freememk/totmemk in osinfo areunsigned short, what
alternative is there to get the info on a machine with more then 64Meg.


Found the answer the knowledge base !

It is also, amazingly enough, in the documentation for qnx_osinfo() where
it says:

short unsigned totmemk
Use totpmem instead.
short unsigned freememk
Use freepmem instead.

long unsigned totpmem
Total memory in the system.
long unsigned freepmem

Free memory in the system.

For reason too long to explain, the machine I’m working with doesn’t have
the lasted patch/doc ;(

-David

David Gibbs
QNX Training Services
dagibbs@qnx.com