Re: Swap space size in C

From: Dan Pop (Dan.Pop_at_cern.ch)
Date: 12/12/03


Date: 12 Dec 2003 14:20:01 GMT

In <brc3oe$a89$1@news-rocq.inria.fr> Grumble <invalid@kma.eu.org> writes:

>Otto Meijer wrote:
>> for one of my projects I need to figure out the size of the
>> swap file(s) of a certain system. The problem is I need to do this
>> on a host of platforms like: HP_UX, Solaris, Linux, AIX, OSF,
>> OpenVMS and Windows.
>>
>> This seems much more difficult than I thought origionaly.
>> Some platforms don't seem to have any API to query this information.
>>
>> Any hints how to tack this would be very welcome
>
>AFAICT, your best bet is the Portable Operating System Interface for
>UNIX, aka POSIX.

Which, AFAICT, blissfully ignores the issue.

Dan

-- 
Dan Pop
DESY Zeuthen, RZ group
Email: Dan.Pop@ifh.de


Relevant Pages

  • Re: derangement: coding review request
    ... "Michael Mair"> ... > Dan Pop wrote: ... >> No point in complicating the interface of SWAP. ... >> Read the FAQ to see why this is not a good macro definition. ...
    (comp.lang.c)
  • Re: Malloc/Free - freeing memory allocated by malloc
    ... Dan Pop wrote: ... >>memory before allocating it to another program. ... >>swap space. ... from synergy, and Computer Science student from State ...
    (comp.lang.c)
  • Re: economizing with functions that do the same thing
    ... remembered that Dan Pop taught me to write the swap as a macro. ... I find that surprising. ... I'd have thought Dan Pop would have more sense. ...
    (comp.lang.c)
  • Re: swap() function without tmp
    ... >I found the swap() function without a temporary variable. ... Does it rewrite more simply? ... The *portable* way of doing what you want to do is to swap the two doubles ... Dan Pop ...
    (comp.lang.c)