From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f678f,fa7a222f271468e6 X-Google-Attributes: gidf678f,public From: Peter Delgado Subject: Re: Which hardware do I have ? Date: 1995/09/11 Message-ID: <431tp9$eqn@info1.sdrc.com>#1/1 X-Deja-AN: 109907458 distribution: world references: content-type: text/plain; charset=us-ascii organization: PIG x-url: news:pwerf.56.017C8ECA@gak.nl mime-version: 1.0 newsgroups: comp.unix.osf.misc x-mailer: Mozilla 1.1 (X11; I; OSF1 V3.2 alpha) Peter, for the specific hardware (cpu, graphics card etc..) see the manpage on the "sizer" command. For memory etc., try using the following C program as an example of how to get the information. Check the manpage for the getsysinfo command to see all of the information available and design your own program that suits your needs. -Pete To Make: cc -std1 -O3 -tune (programname.c) -o programname -------------------------------------------------------------------------------- #include #include #include #include #include int main(int argc, char *argv[]) { int TotalMemory; if (getsysinfo(GSI_PHYSMEM,&TotalMemory,(unsigned long)(sizeof(int)),0,NULL) !=- 1) { TotalMemory += 512; fprintf(stdout,"Total Memory = %d MB\n",TotalMemory/1024); exit(0); } perror("PHYSMEM"); exit(1); } ------------------------------------------------------------------------------- Pete Delgado The opinions expressed are Software Engineer my own and do not reflect Structural Dynamics Research Corporation the official opinions of 2000 Eastman Drive SDRC. Milford, Ohio 45150 No user servicable parts inside! e-mail: Peter.Delgado@sdrc.com -------------------------------------------------------------------------------