Solved

Using Named Semaphores in HP-UX 10.20 - How?

Posted on 2000-05-09
3
317 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
  • 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 50 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Change owner from userA to server Local Administrators 7 59
move a line in eclipse 3 83
Annoying "thing" blocks my view 4 83
Problem to open Excel file 15 99
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …

867 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now