- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- hsearch and the ENTRY structure
Operating System - HP-UX
1757487
Members
3000
Online
108862
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
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
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
03-21-2003 09:05 AM
03-21-2003 09:05 AM
hsearch and the ENTRY structure
Hello,
I'm trying to use the hsearch() routines from search.h and I have some problems.
First, I get
cc: "test.c", line 64: error 1588: "ENTRY" undefined:(
I did include what am I missing here?
Second, the WARNING section of the man page indicates:
" Only one hash search table can be active at any given time."
Does that mean that the internal table is global? Just want to verify, and if so, can I do a hcreate(nel) in foo() and then do a hsearch(item,ENTER) in bar() and hsearch(item,FIND) is baz()?
Finally, is there any way around this limitation?
Thanks in advance,
Leslie
I'm trying to use the hsearch() routines from search.h and I have some problems.
First, I get
cc: "test.c", line 64: error 1588: "ENTRY" undefined:(
I did include
Second, the WARNING section of the man page indicates:
" Only one hash search table can be active at any given time."
Does that mean that the internal table is global? Just want to verify, and if so, can I do a hcreate(nel) in foo() and then do a hsearch(item,ENTER) in bar() and hsearch(item,FIND) is baz()?
Finally, is there any way around this limitation?
Thanks in advance,
Leslie
If life serves you lemons, make lemonade
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2003 09:05 AM
03-31-2003 09:05 AM
Re: hsearch and the ENTRY structure
Well, I looked at the header file in /usr/include/search.h.
Much to my surprise I found there is a:
#ifdef _INCLUDE_XOPEN_SOURCE
...
#endif /* _INCLUDE_XOPEN_SOURCE */
In fact the example given in the manpage does not work unless you:
#define _INCLUDE_XOPEN_SOURCE
I am still looking for the other questions.
Regards,
Leslie
Much to my surprise I found there is a:
#ifdef _INCLUDE_XOPEN_SOURCE
...
#endif /* _INCLUDE_XOPEN_SOURCE */
In fact the example given in the manpage does not work unless you:
#define _INCLUDE_XOPEN_SOURCE
I am still looking for the other questions.
Regards,
Leslie
If life serves you lemons, make lemonade
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