Operating System - HP-UX
1820954 Members
4065 Online
109629 Solutions
New Discussion юеВ

Re: unable to get all files information thru pstat_getfile2() call

 
sanjay khuntia
Occasional Contributor

unable to get all files information thru pstat_getfile2() call

Hi,

i am using the pstat_getfile2() system call to gather information about all files(information like, file name, file type, user id, group id, permission) for every process. But the output does not give all information for each and every file for a process. sometimes the filename and file type can not be shown using the above system call with other syatem calls like pstat_getpathname().

Can anyone guess what would be the problem in showing all file names properly and what is the solution for that.

Regards,

sanjay
2 REPLIES 2
James R. Ferguson
Acclaimed Contributor

Re: unable to get all files information thru pstat_getfile2() call

Hi:

This, and your other questions today, suggest that you should look at 'lsof' to (perhaps) gather some of the information you seek. The 'lsof' utility is available from the Porting center:

http://hpux.connect.org.uk/hppd/cgi-bin/search?package=on&description=on&term=lsof

Regards!

...JRF...
sanjay khuntia
Occasional Contributor

Re: unable to get all files information thru pstat_getfile2() call

yeah, the documentation of pstat_getpathname() says that it will return the full pathname of an opened file in buf if it is available in the system cache of recent names looked up (DNLC). In my case i am also not getting pathname for all files. So i think this is the limitation of this system call or OS where we can't fetch all filepath.