Operating System - HP-UX
1834431 Members
1995 Online
110067 Solutions
New Discussion

Which function gives the system open file table's current value.

 
mahesh.m
New Member

Which function gives the system open file table's current value.

Hello everybody,

Iam Mahesh, new to hp-ux & this forum as well. I want know which function gives the system open file table's current value in hp-ux. Also I would like to know the same in linux.

Thanks,
Mahesh


4 REPLIES 4
Dennis Handly
Acclaimed Contributor

Re: Which function gives the system open file table's current value.

Do you mean function because you want to call it in C, or command?

You can query the current nfile value by using kctune(1m) for 11.23 and kmtune(1m) for 11.11.

For linux, you'll need to ask in a linux forum.
mahesh.m
New Member

Re: Which function gives the system open file table's current value.

Yes Dennis, I want to call it in C (testcases).

Thanks,
Mahesh
Dennis Handly
Acclaimed Contributor

Re: Which function gives the system open file table's current value.

I don't see a particular pstat(2) call that will return nfile. I suppose you are left with calling kctune/kmtune from system(3).
Senthil Kumar .A_1
Honored Contributor

Re: Which function gives the system open file table's current value.

Hi,

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=991275

Check "Don Morris's" reply on pstat_getdynamic() function in the above link.

SK
Let your effort be such, the very words to define it, by a layman - would sound like a "POETRY" ;)