From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f678f,704519c131d23e2 X-Google-Attributes: gidf678f,public X-Google-Thread: 1164f8,704519c131d23e2 X-Google-Attributes: gid1164f8,public From: Peter Sanger Subject: Re: Dec Unix 4.0B and threads Date: 1997/05/02 Message-ID: <336A29A8.2B2DC480@mailbox.swipnet.se>#1/1 X-Deja-AN: 238928413 References: <5kb3ip$jqt@shellx.best.com> To: Dilip Dasilva Organization: - Newsgroups: comp.unix.osf.misc,comp.sys.dec NNTP-Posting-User: s-16000 Dilip Dasilva wrote: > > Hi, > > I am trying to compile a program that uses threads on Dec Unix 4.0B > that compiled without a problem on Dec Unix 3.2. > > It uses posix threads so I have the following include file > > #include > > The problem is that these files are different between 4.0B and 3.2. > The 4.0B file does not contain the definitions for pthread_startroutine_t > and pthread__addr_t . These definitions are included in > /usr/include/pthread_exc.h. I noticed that there are two pthread.h > include files - one in /usr/include/pthread.h and the other in > /usr/include/dce/pthread.h . On 3.2 one of these files was > a linked to the other. > > Does anyone know which include files I need to get my program to > compile on 4.0B. > > Thanks, Dilip 3.2 uses Posix threads that are based on the draft for the Posix threads standard. Dec Unix 4.0 uses a Pthread library that is based on the final Posix thread standard. Unfortunately, there are a number of differences between the draft and the final standard, and you will probably have to make a number of changes in your thread handling code. For a discussion of the differences between the draft and final standard see e.g. "Pthreads Programming" by Bradford Nichols e.a., O'reilly. (http://www.ora.com/catalog/pthread/noframes.html) Peter -- Peter Sanger E-mail: peter.sanger@mailbox.swipnet.se Karlhovsvagen 17 Phone: +46 8 55069514 15137 Sodertalje, Sverige Fax: +46 8 55069514