LINUX programming

Moderators: ITA
Number of threads: 1339
Number of posts: 2924

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
<synch.h> header under Linux??? Posted by MysticManthos on 26 Dec 2004 at 8:43 AM
Hello everybody, merry Christmass (what's left of it ) and a happy new year to all.

I am experiencing a problem with a compatibility issue(or so i call). In the library <synch.h> of the Solaris SUN, there is the implementation of a structure with 4 data members (48 bytes total) and it's typedef'd to "sema_t". I have to use it to declare a semaphore (i.e. sema_t mysemaphore) and then this semaphore will be initialized in a shared segment (created with shmget()), for use in the readers/writters problem. The problem is that i have Mandrake Linux 10.1 at home... I didn't think it would be a problem, but it is! The synch.h header doesn't seem to be in any of the libraries in my linux version. Several searches in google haven't helped a bit . Any suggestions? Is there any such header for linux???



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.