- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- _sys_siglist
Operating System - HP-UX
1753512
Members
5799
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
Go to solution
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
тАО04-28-2011 03:03 AM
тАО04-28-2011 03:03 AM
We are migrating our app from SunOS 5.8 to HP-UX.
While compiling the C program, we are getting the error:
identifier "_sys_siglist" is undefined.
After searching through the net, I have added the headers:
#include
#include
#include
But still the error persists. When searching the hp forums for "_sys_siglist", there were no results for the keyword.
Do I need to add any other headers for this? or Is there an equivalent for "_sys_siglist" which I should use in HP Unix.
While compiling the C program, we are getting the error:
identifier "_sys_siglist" is undefined.
After searching through the net, I have added the headers:
#include
#include
#include
But still the error persists. When searching the hp forums for "_sys_siglist", there were no results for the keyword.
Do I need to add any other headers for this? or Is there an equivalent for "_sys_siglist" which I should use in HP Unix.
Solved! Go to Solution.
- Tags:
- migration
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-28-2011 01:54 PM
тАО04-28-2011 01:54 PM
Solution
> Do I need to add any other headers for this?
You would probably need to create your own
string array on HP-UX. The text seems to be
available in /usr/include/sys/signal.h. A
more modern approach would be to create and
use your own strsignal() function, instead of
trying to create and use sys_siglist (and
sys_siglistn) directly. You'd probably want
your own header file, too, to declare
whatever you create. (It could be a jacket
for.)
You should probably be using strsignal() on
Solaris, too, instead of looking directly at
sys_siglist. As /usr/include/errno.h says:
* The symbols _sys_errlist and _sys_nerr are not visible in the
* LP64 libc. Use strerror(3C) instead.
It looks to me like a trend. (HP-UX does
have strerror(), but apparently not
strsignal(), so you still need to do
something yourself on HP-UX.)
You would probably need to create your own
string array on HP-UX. The text seems to be
available in /usr/include/sys/signal.h. A
more modern approach would be to create and
use your own strsignal() function, instead of
trying to create and use sys_siglist (and
sys_siglistn) directly. You'd probably want
your own header file, too, to declare
whatever you create. (It could be a jacket
for
You should probably be using strsignal() on
Solaris, too, instead of looking directly at
sys_siglist. As /usr/include/errno.h says:
* The symbols _sys_errlist and _sys_nerr are not visible in the
* LP64 libc. Use strerror(3C) instead.
It looks to me like a trend. (HP-UX does
have strerror(), but apparently not
strsignal(), so you still need to do
something yourself on HP-UX.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-28-2011 11:21 PM
тАО04-28-2011 11:21 PM
Re: _sys_siglist
>Is there an equivalent for "_sys_siglist" which I should use in HP-UX?
Perhaps just create an array with "Signal 1", etc. in it. The names aren't that important vs the numbers.
Perhaps just create an array with "Signal 1", etc. in it. The names aren't that important vs the numbers.
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