Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!uunet!mcsun!unido!opal!tmpmbx!scuzzy!src From: src@scuzzy.in-berlin.de (Heiko Blume) Newsgroups: comp.unix.questions Subject: Re: determining size of physical memory Keywords: core, physical memory, size of core Message-ID: <1991Jan02.034626.12684@scuzzy.in-berlin.de> Date: 2 Jan 91 03:46:26 GMT References: <1990Dec27.202715.27688@Neon.Stanford.EDU> <1368@prcrs.UUCP> <7325@plains.NoDak.edu> <3318@mrsvr.UUCP> Organization: Contributed Software Lines: 20 >In article <1990Dec27.202715.27688@Neon.Stanford.EDU>, hitt@Neon.Stanford.EDU (Daniel Hitt) writes: > Is there a standard UNIX program or system call that determines > the size of the physical memory of the machine on which it is > running? > > I'd like to be able to do this on Ultrix, SunOS, and the NeXT OS, > and possibly HP-UX. sounds like you'll have to use #ifdef :-) anyway, you might look for 'machine specific' system calls, for example sys V/386 (interactive in my case) lets you do #include long bytes; bytes=sysi86(SI86MEM); -- Heiko Blume <-+-> src@scuzzy.in-berlin.de <-+-> (+49 30) 691 88 93 public source archive [HST V.42bis]: scuzzy Any ACU,f 38400 6919520 gin:--gin: nuucp sword: nuucp uucp scuzzy!/src/README /your/home