[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference turris::c_plus_plus

Title:C++
Notice:Read 1.* and use keywords (e.g. SHOW KEY/FULL KIT_CXX_VAX_VMS)
Moderator:DECCXX::AMARTIN
Created:Fri Nov 06 1987
Last Modified:Thu Jun 05 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:3604
Total number of notes:18242

1861.0. "Where do I report header file problems, such as mkdir in sys/stat.h on MIPS/Ultrix?" by BOOKND::kennell (Things go better with Bach) Wed Mar 30 1994 14:33

T.RTitleUserPersonal
Name
DateLines
1861.1It dependsDECC::AMARTINAlan H. MartinWed Mar 30 1994 15:5222
1861.2I see.EST::KENNELLThings go better with BachWed Mar 30 1994 19:1147
1861.3Setting expectationsDECC::AMARTINAlan H. MartinWed Mar 30 1994 21:205
1861.4BOOKND::kennellThings go better with BachThu Mar 31 1994 20:203
1861.5What about system calls that don't have prototypes?LEDER1::PETTENGILLmulpTue May 03 1994 23:4221
1861.6@DECC::AMARTINAlan H. MartinWed May 04 1994 12:108
1861.7in C but not CXX?CHOVAX::LEVINEWed May 11 1994 20:3922
1861.8see also 1891.1DECC::MULLENDan Mullen, DEC C/C++Thu May 12 1994 13:4814
1861.9All the answers you needDECC::AMARTINAlan H. MartinThu May 12 1994 19:1033
1861.10Additional informationDECC::AMARTINAlan H. MartinThu Jun 02 1994 15:0122
1861.11Compilation failure on X3.0-10UKARC1::ELANGCOMon Jun 06 1994 09:5235
1861.12@DECC::AMARTINAlan H. MartinMon Jun 06 1994 11:246
1861.13CXX problem with signal.h include file in V1.3B / OSF/1 V3.0?ZUR01::SUTTERWho are you ??? - I'm BATMAN !!!Fri Oct 21 1994 15:3721
1861.14@DECCXX::AMARTINAlan H. MartinFri Oct 21 1994 18:464
1861.15ZUR01::SUTTERWho are you ??? - I'm BATMAN !!!Sat Oct 22 1994 08:382
1861.16Problem with <signal.h> version dependent?SUBPAC::FARICELLIMon Oct 24 1994 11:297
1861.17multiply defined symbols due to inclusion of sys/proc.hSSPADE::SHAMIMThu Dec 01 1994 13:31108
1861.18@DECCXX::AMARTINAlan H. MartinTue Dec 06 1994 20:384
1861.19SSPADE::SHAMIMWed Dec 07 1994 12:215
1861.20signal.h still a problem in V3.0B OSF/1TOOK::MCCROSSANWed Jan 18 1995 16:1723
1861.21A simple C file confuses cxx?PEACHS::MURPHYChris Murphy, Application Support- CSC/AT, DTN 343-0120Fri Jan 20 1995 21:2227
1861.22@DECCXX::AMARTINAlan H. MartinSat Jan 21 1995 18:544
1861.23PDBDEF and cantcomplete errorsCX3PST::WSC500::C_HEISLERChris Heisler, Colorado SpringsMon Aug 28 1995 17:0145
1861.24RTL::COWANKen, TLGMon Aug 28 1995 17:346
1861.25OkCX3PST::WSC500::C_HEISLERChris Heisler, Colorado SpringsMon Aug 28 1995 18:245
1861.26CSC64::BLAYLOCKIf at first you doubt,doubt again.Thu Nov 09 1995 15:1618
1861.27Typo in include file?COMICS::LAWSONIFri Jul 26 1996 15:1223
1861.28@DECCXX::AMARTINAlan H. MartinFri Jul 26 1996 15:244
1861.29CSC64::BLAYLOCKIf at first you doubt,doubt again.Tue Aug 20 1996 21:1712
1861.30Answer to .29DECCXX::MITCHELLWed Aug 21 1996 15:025
1861.31header will be fixedDECC::KIMMELWed Aug 21 1996 15:556
1861.36QAR 52043 in OSF_QARRDGENG::CHAMBERLINDanger! Do not Reverse PolarityTue Mar 18 1997 09:200
1861.37pthread_attr_create()/pthread_setprio()MIASYS::CURRIERMatt DTN 381-2595Fri May 23 1997 18:4386
    
    Hi,
    
    I'm placing the following note on behalf of Dave Collins.
    
    			Matt
    
    -------------------------
    
We have been having problems at a customer site using UNIX 4.0b and 
C++ 5.50.    The customer was attempting to port from a HP-RT platform 
to Digital UNIX and the base code include calls to:

  pthread_attr_create() and
  pthread_setprio()

These calls are documented in older Digital documentation that
referenced POSIX 1003.4a, but do not show up (no forward declarations)
in Digital 4.0 UNIX referencing POSIX 1003.1c.

 Q: Why does the older UNIX have a "higher" posix number?

The following trivial code example compiles if pthread.h is used
in place of pthread_exc.h.   Do we need to specify some POSIX defines
to make this work.   The include files that the customer is referencing
have a problem when trying to use pthread_exc.h

 #include <pthread_exc.h>
 #include <sys/types.h>
 #include <timers.h>

The reason the customer is attemptng to use pthread_exc.h is to 
use the two functions "pthread_attr_create & pthread_setprio"


#include <pthread.h>
// #include <pthread_exc.h>
#include <sys/types.h>
#include <timers.h>
#include <stdio.h>
#include <stdlib.h>

int ii;

void *start_routine (void * arg)
{
int *parg;

	parg = (int *) (arg);

	for (ii = 0; ii<*parg; ii++)

		{
		if (ii > 9999)
			break;
		}
	printf ("\n Thread ii = %d\n", ii);

	pthread_exit((void *) (&ii));

	return (void *) (NULL);
}

main()
{
pthread_t thread1;
int arg = 1256;
int ret = 55;
int *pi;

pi = &ret;
pthread_create (&thread1, NULL, &start_routine, (void *) (&arg));
pthread_join(thread1, (void **) &pi);
printf("\n Thread returned %d \n", *pi);
exit(1);

}

--------------------------------------------------

		Thanks,

		Dave Collins
		collinsda@mail.dec.com
		
1861.38@DECCXX::AMARTINAlan H. MartinFri May 23 1997 20:014
Re .37:

DECthreads issues are addressed in the DECthreads conference: CLT::CMA (q.v.).
				/AHM