Path: utzoo!attcan!uunet!lll-winken!ames!sgi!daisy!klee From: klee@daisy.UUCP (Ken Lee) Newsgroups: comp.unix.questions Subject: Re: available memory Message-ID: <2428@daisy.UUCP> Date: 13 Jan 89 23:46:21 GMT References: <13490@cup.portal.com> Reply-To: klee@daisy.UUCP (Ken Lee) Distribution: na Organization: Daisy Systems Corp., Mountain View, Ca. Lines: 15 In article <13490@cup.portal.com> dbell@cup.portal.com (David J Bell) writes: >Does anyone know of a function, intrinsic to UNIX, or not, that >will return the currently-available amount of memory that may >be alloc'ed. I'm not sure if this is exactly what you want, but on BSD UNIX (and SunOS) you can getrlimit(2) on your data segment. I don't know about other UNIXs. Ken -- uucp: uunet!daisy!klee arpanet: daisy!klee@uunet.uu.net "This Lt. Col. is not gonna challenge a decision of the Commander-In-Chief ... and if the Commander-In-Chief tells this Lt. Col. to go stand in the corner and sit on his head, I will do so." - Oliver North