From: Dan.Pop@mail.cern.ch (Dan Pop)
Subject: Re: How can I find the real memory of a Digital Unix 3.x system
Date: 1995/09/30 [thread overview]
Message-ID: <danpop.812428359@rscernix> (raw)
In-Reply-To: 44fe6o$erk@newsbf02.news.aol.com
In <44fe6o$erk@newsbf02.news.aol.com> anjone@aol.com (ANJONE) writes:
>Could you please let me know how I can do that -- instead of
>/usr/adm/messages file, I would prefer some C programming, API/System call
>or command.
#include <stdio.h>
#include <sys/sysinfo.h>
main()
{
int memsize;
getsysinfo(GSI_PHYSMEM, (caddr_t)&memsize, sizeof(memsize), NULL, NULL);
printf("Memory size: %d KB\n", memsize);
return 0;
}
Dan
--
Dan Pop
CERN, CN Division
Email: Dan.Pop@mail.cern.ch
Mail: CERN - PPE, Bat. 31 R-004, CH-1211 Geneve 23, Switzerland
prev parent reply other threads:[~1995-09-30 4:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <44fe6o$erk@newsbf02.news.aol.com>
1995-09-29 4:00 ` How can I find the real memory of a Digital Unix 3.x system Peter Delgado
1995-09-30 4:00 ` Dan Pop [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox