I would like to either make a shell script or c program that computes the free memory in similar fashion as command free
does on linux, for hp-ux.
On hp-ux default installation, only commands that I know which can calculate the free memory are vmstat, or eventually top.
Is there any c api that allows user to calculate all free memory? Or eventually a way to determine all physical memory available on system, then sum all used memory and calculate free PHYS memory?