[43] in Pthreads mailing list archive

home help back first fref pref prev next nref lref last post

Pthreads & GNAT

daemon@ATHENA.MIT.EDU (Steven Hugg)
Thu Jul 13 16:46:52 1995

From: Steven Hugg <hugg@xi.cs.fsu.edu>
To: pthreads@MIT.EDU
Date: Thu, 13 Jul 1995 16:25:36 -0400 (EDT)

I'm planning on using Pthreads for a Linux port of the GNAT Ada
compiler, but I'm having some problems interfacing GNAT & Pthreads.

First, I guessed that sigaction() is not explicitily supported, and I must
use pthread_signal instead (or build a pthread_sigaction). Are you
planning to add this function in a future release?

Second, about this piece of code in sig.c:

:struct pthread_sigvec {
:        void                                                    (*vector)();
:        enum pthread_sig_flags {
:                PTHREAD_SIG_IGN = (long)SIG_IGN,
:                PTHREAD_SIG_DFL = (long)SIG_DFL,
:                PTHREAD_SIG_SIGNAL
:        }                                                              
:flags; } pthread_sigvec[SIGMAX];

Is is intentional that PTHREAD_SIG_DFL = PTHREAD_SIG_SIGNAL? They are the
same on my compiler (gcc 2.7.0).

Thanks,

Steven Hugg


home help back first fref pref prev next nref lref last post