sm_memstat_get
int sm_memstat_get __P((char *, long *));
r2 = sm_memstat_get(resource, &v);
sm_memstat_get(MemoryResource, &memfree) >= 0 &&