LinuxQuestions.org
Help answer threads with 0 replies.
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, 07: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, 11:51 AM   #2
crabboy
Senior Member
 
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,823

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

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

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 01:25 AM
Posix file based process shared semaphores dragonman Programming 9 05-25-2005 05:44 PM
Suggestions for web based file servers Munix Linux - Software 2 01-17-2005 06:48 PM
POSIX semaphores acting strangely spuzzzzzzz Programming 0 10-18-2004 10:10 PM
web-based file browser eugeneQ Programming 2 07-23-2004 10:28 AM


All times are GMT -5. The time now is 04:26 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration