LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 02-21-2006, 10:51 PM   #1
lucky6969b
Member
 
Registered: Nov 2005
Posts: 337

Rep: Reputation: 30
Implementation for pthread.h


I couldn't find the implementation file of pthread.h
is it available?
I tried find -name pthread*.* without any results except the headers...
Thanks
Jack
 
Old 02-21-2006, 11:09 PM   #2
randyding
Member
 
Registered: May 2004
Posts: 552

Rep: Reputation: 31
You can try this, I think this is what you're looking for, if not then I misunderstood.

$ whereis libpthread
libpthread: /usr/lib/libpthread.so /usr/lib/libpthread.a
$ whereis pthread
pthread: /usr/include/pthread.h
 
Old 02-22-2006, 12:02 AM   #3
lucky6969b
Member
 
Registered: Nov 2005
Posts: 337

Original Poster
Rep: Reputation: 30
Hi Randyding,
Thanks for your reply. What I need is the .cpp or .c file thanks
Jack
 
Old 02-22-2006, 02:01 AM   #4
shadow5277
Member
 
Registered: Aug 2005
Location: Texas
Distribution: Redhat FC4, Fedora 8 and AIX 5.3, AIX 6.1
Posts: 39

Rep: Reputation: 16
Hello Lucky6969b,

What you can do it the following:

whereis libpthread
libpthread: /usr/lib/libpthread.so /usr/lib/libpthread.a

Then do a:

rpm -qf /usr/lib/libpthread.a
glibc-devel-2.3.5-10

So the libpthread archive libs comes from the fileset of glibc-devel so you will have to download that SRPM to get the source files so that you will have the .c file to see the code that they used to build the archive library.

shadow5277
 
  


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
Pthread in c++ BoldKiller Programming 3 08-30-2004 05:52 AM
pthread zaman Programming 6 08-29-2004 04:04 PM
pthread and C++ gt73 Programming 17 11-04-2003 03:01 AM
about pthread c12ayon Programming 6 10-25-2003 04:37 AM
need help about pthread c12ayon Programming 1 10-24-2003 07:47 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

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