?
Solved

Using Named Semaphores in HP-UX 10.20 - How?

Posted on 2000-05-09
3
Medium Priority
?
372 Views
Last Modified: 2013-12-26
I'm adding the use of a named semaphore to an old project I have running under HP-UX-10.20. The project compiles and links fine (plain-ole HP-C compiler), but at runtime I get an error that the function sem_open is not available. Is there something else I need to do? We're running the Korn Shell. Could this be the problem?
0
Comment
Question by:maknight
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 3

Expert Comment

by:ufolk123
ID: 2796115
Can you post the exact lines which appears during run time.Also what options you are using while compilation ?
0
 
LVL 3

Expert Comment

by:ufolk123
ID: 2824382
ping ping
0
 
LVL 2

Accepted Solution

by:
hpcJerry earned 100 total points
ID: 2929841
Did you check for a man page for sem_open() on the machine?  I've only got 11.0 boxes around here, but I'm fairly sure that the POSIX semaphores were not formerly supported until 10.30 (which was very limited release, so really not until 11.0).

See the 10.30 release notes at:
http://www.software.hp.com/STK/partner/relnotes/10.30/10_30RelNotes.txt

You may also find that POSIX semaphores are actually part of the POSIX Real-Time specification, under 11.0 they are not in libc, but rather librt.  Try linking with -lrt as a last resort.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Suggested Courses

800 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question