HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to know the open files of a process
Operating System - HP-UX
1826314
Members
3749
Online
109692
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
01-17-2001 09:52 AM
01-17-2001 09:52 AM
How to know the open files of a process
I am trying to write a C program to reveal the opened files of a given process. I was using the pstat_getfile function but the second step function pstat_getfiledetails, shown in the link below, lacks in my /usr/include/sys/pstat.h.
What can I do ?
http://docs.hp.com/cgi-bin/otsearch/getfile?top=/hpux/onlinedocs/B2355-90693/B2355-90693_top.html&id=/hpux/onlinedocs/B2355-90693/00/01/140-con.html&searchterms=pstat_getfile
What can I do ?
http://docs.hp.com/cgi-bin/otsearch/getfile?top=/hpux/onlinedocs/B2355-90693/B2355-90693_top.html&id=/hpux/onlinedocs/B2355-90693/00/01/140-con.html&searchterms=pstat_getfile
fcmts
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2001 01:13 PM
01-17-2001 01:13 PM
Re: How to know the open files of a process
Instead of trying to reinvent the wheel why not just use some tried and true PD code instead. The source for lsof is available on the Porting and Archive Center at the following link: http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/lsof-4.51 Just take what you want and leave the rest.
- Tags:
- lsof
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2001 05:04 AM
01-23-2001 05:04 AM
Re: How to know the open files of a process
I tried the lsof and it is really good ! But my application would do other things and I would like to add those functions of lsof to my programming. How could I do that ?
fcmts
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Support
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP