LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-16-2002, 06:56 PM   #1
dragonman
LQ Newbie
 
Registered: Nov 2002
Posts: 2

Rep: Reputation: 0
Question POSIX File-based Semaphores


I am trying to program Posix file based process shared semaphores and Posix share memory with gcc version 2.96 on my system with a Linux 2.4.7-10 kernel. I've run the posixtst program which indicates that my kernel should support Posix semaphores and shared memory. However, the man pages have no information of the file based semaphore calls, sem_open() and sem_unlink(), or shared memory calls such as shm_open() and shm_unlink. Furthermore when compiling with a header include statement for semaphore.h and sys/mman.h, all semaphore and shared memory calls are undefined references. In addition, I have seen some documentation that said process shared semaphores are not supported in Linux. Is this true? If not, is there a library I need to include in my compile command that would add support for these calls?

Thanks.
Steve Davis.
 
Old 11-17-2002, 10:51 AM   #2
crabboy
Senior Member
 
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,821

Rep: Reputation: 121Reputation: 121
Please do not double post:

http://www.linuxquestions.org/questi...threadid=35652

http://www.linuxquestions.org/rules.php
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Sort file based on only ONE colum smart_sagittari Linux - Newbie 6 07-08-2005 12:25 AM
Posix file based process shared semaphores dragonman Programming 9 05-25-2005 04:44 PM
Suggestions for web based file servers Munix Linux - Software 2 01-17-2005 05:48 PM
POSIX semaphores acting strangely spuzzzzzzz Programming 0 10-18-2004 09:10 PM
web-based file browser eugeneQ Programming 2 07-23-2004 09:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration