# $Id: Head.U,v 3.0.1.9 1997/02/28 15:02:09 ram Exp $
#
-# Generated on Tue Oct 20 11:18:44 EET DST 1998 [metaconfig 3.0 PL70]
+# Generated on Wed Oct 21 12:24:45 EET DST 1998 [metaconfig 3.0 PL70]
# (with additional metaconfig patches by jhi@iki.fi)
cat >/tmp/c1$$ <<EOF
privlib=''
privlibexp=''
prototype=''
-pthread_setdetachstate_pointer=''
ptrsize=''
drand01=''
randbits=''
set pid_t pidtype int stdio.h sys/types.h
eval $typedef_ask
-
-: see whether the state of pthread_attr_setdetachstate is an int pointer
-$cat >try.c <<EOP
-#include <pthread.h>
-main() {
- pthread_attr_t attr;
- int state = 0;
- pthread_attr_init(&attr);
-#ifdef POINTER
- pthread_attr_setdetachstate(&attr, &state);
-#else
- pthread_attr_setdetachstate(&attr, state);
-#endif
-}
-EOP
-set try
-if eval $compile; then
- val="$undef"
-else
- set try -DPOINTER
- if eval $compile; then
- val="$define"
- else
- val="$undef"
- fi
-fi
-set pthread_setdetachstate_pointer
-eval $setvar
-
-$rm -f try try.*
-
: check for length of pointer
echo " "
case "$ptrsize" in
privlib='$privlib'
privlibexp='$privlibexp'
prototype='$prototype'
-pthread_setdetachstate_pointer='$pthread_setdetachstate_pointer'
ptrsize='$ptrsize'
randbits='$randbits'
randfunc='$randfunc'
*/
#$d_pthreads_created_joinable PTHREADS_CREATED_JOINABLE /**/
-/* PTHREAD_SETDETACHSTATE_POINTER:
- * This symbol, if defined, indicates that the second argument of
- * pthread_attr_setdetachstate is a pointer to an int, as opposed
- * to an int.
- */
-#$pthread_setdetachstate_pointer PTHREAD_SETDETACHSTATE_POINTER /**/
-
/* MULTIPLICITY:
* This symbol, if defined, indicates that Perl should
* be built to use multiplicity.
croak("panic: DETACH"); \
} \
} STMT_END
-# define THR getTHR
+# define THR getTHR()
struct perl_thread *getTHR _((void));
# define PTHREAD_GETSPECIFIC_INT
# ifdef DJGPP
# define PTHREAD_ATTR_SETDETACHSTATE(a,s) pthread_setdetach_np(a,s)
# define pthread_key_create(k,d) pthread_keycreate(k,(pthread_destructor_t)(d))
# define pthread_mutexattr_init(a) pthread_mutexattr_create(a)
+# define pthread_mutexattr_settype(a,t) pthread_mutexattr_setkind_np(a,t)
# endif
# if defined(DJGPP) || defined(__OPEN_VM)
# define PTHREAD_ATTR_SETDETACHSTATE(a,s) pthread_attr_setdetachstate(a,&(s))
# if defined(DJGPP) || defined(VMS)
# define PTHREAD_CREATE(t,a,s,d) pthread_create(t,a,s,d)
# endif
-# if defined(__OPEN_VM) || defined(VMS)
-# define pthread_mutexattr_settype(a,t) pthread_mutexattr_setkind_np(a,t)
-# endif
# endif
# ifndef VMS
# define pthread_mutexattr_default NULL