- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Using pstat_getpathname
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-21-2008 02:14 AM
тАО10-21-2008 02:14 AM
Using pstat_getpathname
Can anybody tell me how to use pstat_getpathname function to get the pathname of the running process.
man page of pstat_getpathname states that we can use pstat_getproc method to get the fid which in turn will be used in pstat_getpathname method
int pstat_getpathname(
char *buf,
size_t elemcount,
struct pst_fid *fid
);
but i could not find a way to use pstat_getproc to get the fid, although i am able to do so using call to pstat_getfile2 method, but here i need to open file and get the file id of that to pass to pstat_getfile2 function and not directly using the pid of the process.
can any one provide me an example of using pstat_getpathname using pstat_getproc method.
Thanks for your help in advance.
- Tags:
- pstat
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-21-2008 05:57 AM
тАО10-21-2008 05:57 AM
Re: Using pstat_getpathname
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-21-2008 04:08 PM
тАО10-21-2008 04:08 PM
Re: Using pstat_getpathname
This is a psfileid, 16 bytes (or 32). pst_fid is a 64 byte struct.
Is there a special way to convert them?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-22-2008 04:07 AM
тАО10-22-2008 04:07 AM
Re: Using pstat_getpathname
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-22-2008 03:25 PM
тАО10-22-2008 03:25 PM
Re: Using pstat_getpathname
Not really, the compiler and the kernel told me it wasn't working. :-)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-15-2008 07:41 AM
тАО11-15-2008 07:41 AM
Re: Using pstat_getpathname
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-16-2008 01:51 PM
тАО11-16-2008 01:51 PM
Re: Using pstat_getpathname
mfG Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-17-2008 05:37 AM
тАО11-17-2008 05:37 AM
Re: Using pstat_getpathname
There are two solutions in rakeshcs123's other thread.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-17-2008 05:42 AM
тАО11-17-2008 05:42 AM