- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Find the variables that store pid value
Operating System - HP-UX
1753518
Members
5226
Online
108795
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
Discussions
Discussions
Forums
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
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
тАО08-25-2004 01:48 AM
тАО08-25-2004 01:48 AM
Find the variables that store pid value
Hi,
I have to find the list of variables that store pid value(s) from our legacy products' source code.
The easy part is-
1. Gather all variables that are of type pid_t.
2. Gather all variables that are named as *pid*.
Now the difficult part-
Those variables that are neither of the above types but store values returned syscalls/libraries like getpid(2), getppid(2), fork(2) and so on.
So the question would be-
Where is the best place or rather one-stop-shop to get the list of all hpux syscalls/libraries that either use pid as an input parameter or the return value is a pid value?
Thanks in advance,
Sanjay
I have to find the list of variables that store pid value(s) from our legacy products' source code.
The easy part is-
1. Gather all variables that are of type pid_t.
2. Gather all variables that are named as *pid*.
Now the difficult part-
Those variables that are neither of the above types but store values returned syscalls/libraries like getpid(2), getppid(2), fork(2) and so on.
So the question would be-
Where is the best place or rather one-stop-shop to get the list of all hpux syscalls/libraries that either use pid as an input parameter or the return value is a pid value?
Thanks in advance,
Sanjay
Dying is the last thing that I will do.
- Tags:
- grep
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-25-2004 01:58 AM
тАО08-25-2004 01:58 AM
Re: Find the variables that store pid value
You can go to http://docs.hp.com/ and search for PID. You'll want to use the "more options" link to narrow the search to the release you're interested in. For 11.00, I got 300+ hits... without narrowing the search to a release, you get 1100+ hits.
--
Jeff Traigle
Jeff Traigle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-25-2004 01:59 AM
тАО08-25-2004 01:59 AM
Re: Find the variables that store pid value
One crude way: -
In the man2.Z directory(s): -
for FILE in `ls`
do
cat $FILE | zcat | nroff | grep -i pid
done
This should unzip and format each man(2) page, and grep for the term "pid". Should give some idea?
In the man2.Z directory(s): -
for FILE in `ls`
do
cat $FILE | zcat | nroff | grep -i pid
done
This should unzip and format each man(2) page, and grep for the term "pid". Should give some idea?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-25-2004 02:07 AM
тАО08-25-2004 02:07 AM
Re: Find the variables that store pid value
All system calls are defined on header files.
We can check the header files which contains the pattern "pid_t" as
find / -name "*.h" -exec grep -w pid_t {} \;
grep -w --> fixed pattern of pid_t
We can use nm to get into the library contents as,
nm /usr/lib/* | grep pid_t
Regards
Muthu
We can check the header files which contains the pattern "pid_t" as
find / -name "*.h" -exec grep -w pid_t {} \;
grep -w --> fixed pattern of pid_t
We can use nm to get into the library contents as,
nm /usr/lib/* | grep pid_t
Regards
Muthu
Easy to suggest when don't know about the problem!
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.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP