Return to free.c CVS log | Up to [local] / prex-old / usr / bin / free |
version 1.1.1.1, 2008/06/03 10:38:47 | version 1.1.1.1.2.1, 2008/08/13 17:12:34 | ||
---|---|---|---|
|
|
||
sys_info(INFO_MEMORY, &info); | sys_info(INFO_MEMORY, &info); | ||
printf(" total used free kernel\n"); | printf(" total used free\n"); | ||
printf(" %8d %8d %8d %8d\n", (u_int)info.total, | printf("Mem: %8d %8d %8d\n", (u_int)info.total, | ||
(u_int)(info.total - info.free), (u_int)info.free, | (u_int)(info.total - info.free), (u_int)info.free); | ||
(u_int)info.kernel); | |||
exit(0); | exit(0); | ||
/* NOTREACHED */ | /* NOTREACHED */ | ||
} | } |