LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 05-17-2012, 08:40 AM   #1
Tinyspark
LQ Newbie
 
Registered: May 2012
Posts: 15

Rep: Reputation: Disabled
synch.h in Linux


Hi,
I have a C code which contains #include<synch.h>. The code compiles successfully in solaris but in Linux I find that the header is missing. Is there an equivalent header for synch.h in Linux?
 
Old 05-17-2012, 10:44 AM   #2
blue_print
Member
 
Registered: May 2010
Location: In world
Distribution: RHEL, CentOS, Ubuntu
Posts: 275
Blog Entries: 3

Rep: Reputation: 50
Can you try with "sync.h"?
 
Old 05-17-2012, 11:48 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,658

Rep: Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281
Welcome to LQ.

sync.h examples, Linux ...
/usr/include/X11/extensions/sync.h
/usr/include/xcb/sync.h

/usr/src/linux-headers-2.6.31-14-generic/include/config/cyclades/sync.h
/usr/src/linux-headers-2.6.31-14-386/include/config/cyclades/sync.h

.
 
Old 05-21-2012, 05:45 AM   #4
Tinyspark
LQ Newbie
 
Registered: May 2012
Posts: 15

Original Poster
Rep: Reputation: Disabled
Hi,
I don't find <sync.h> as well in my OS!
 
Old 05-21-2012, 05:59 AM   #5
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 9,351

Rep: Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750
you can try the command: locate sync.h, or find /usr/inlcude -name sync.h
if it did not find anything you need to install it
 
Old 05-21-2012, 06:03 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,658

Rep: Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281
OK. Actually synch.h is very easy to find.
It's the first hit with Google .. what is synch.h ..
Suggest : Download synch.h, and try if it works.
http://people.cs.uchicago.edu/~odonn...hreads/synch.h

etc. examples...
http://fixunix.com/aix/85612-problem-synch-h.html

http://www.student.cs.uwaterloo.ca/~.../synch_8h.html

.
 
  


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
Time Synch tractng Linux - Newbie 2 02-24-2009 04:47 PM
how to synch my clocks? hank43 Linux - Newbie 3 11-18-2006 07:23 AM
PDA Synch? Kamikazee Linux - Software 1 11-28-2005 06:34 AM
V-synch NightSoul Linux - Games 1 11-24-2005 08:50 PM
PocketPC Synch with Linux? sideveloper Linux - Laptop and Netbook 2 09-12-2003 02:27 PM


All times are GMT -5. The time now is 03:55 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