交换C中的空间大小 [英] Swap space size in C

查看:58
本文介绍了交换C中的空间大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


我的一个项目我需要弄清楚某个系统的

交换文件的大小。问题是我需要在以下平台上执行此操作

:HP_UX,Solaris,Linux,AIX,OSF,

OpenVMS和Windows。


这看起来比我想象的要难得多。

有些平台似乎没有任何API来查询这些信息。


任何提示如何解决这个问题都非常受欢迎


Otto

解决方案

Otto Meijer写道:

对于我的一个项目,我需要弄清楚某个系统的交换文件的大小。问题是我需要在以下平台上执行此操作:HP_UX,Solaris,Linux,AIX,OSF,OpenVMS和Windows。

这看起来要困难得多比起我原来的想法。
有些平台似乎没有任何API可以查询这些信息。

任何提示如何解决这个问题都非常受欢迎



AFAICT,你最好的选择是

UNIX的便携式操作系统界面,又称POSIX。


在< cd ************************** @ posting.google.com> cw*******@hotmail.com (Otto Meijer)写道:

对于我的一个项目,我需要弄清楚某个系统的交换文件的大小。问题是我需要在以下平台上执行此操作:HP_UX,Solaris,Linux,AIX,OSF,OpenVMS和Windows。

这看起来要困难得多比起我原来的想法。
有些平台似乎没有任何API可以查询这些信息。

任何提示如何解决这个问题都非常受欢迎



在平台的平台基础上。将问题发布到新闻组

致力于在您感兴趣的每个平台上进行编程。

如果您获得所需信息,请为每个平台编写一个函数。 />

Dan

-

Dan Pop

DESY Zeuthen,RZ集团

电子邮件: Da*****@ifh.de


< blockquote>在< br ********** @ news-rocq.inria.fr> Grumble< in ***** @ kma.eu.org>写道:

Otto Meijer写道:

对于我的一个项目我需要弄清楚
交换文件的大小某个系统。问题是我需要在以下平台上执行此操作:HP_UX,Solaris,Linux,AIX,OSF,OpenVMS和Windows。

这看起来要困难得多比起我原来的想法。
有些平台似乎没有任何API可以查询这些信息。

任何提示如何解决这个问题都非常受欢迎


AFAICT,你最好的选择是UNIX的便携式操作系统接口,又称POSIX。




哪,AFAICT,幸福地忽略了这个问题。


Dan

-

Dan Pop

DESY Zeuthen,RZ group

电子邮件: Da*****@ifh.de


Hi everyone,

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

Otto

解决方案

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.


In <cd**************************@posting.google.com > cw*******@hotmail.com (Otto Meijer) writes:

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



On a platform by platform basis. Post the question to newsgroups
dedicated to programming on each of the platforms of interest to you.
If you get the desired information, write a function for each platform.

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


In <br**********@news-rocq.inria.fr> Grumble <in*****@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: Da*****@ifh.de


这篇关于交换C中的空间大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆