[82] in Pthreads mailing list archive
Re: pthreads porting help!
daemon@ATHENA.MIT.EDU (Ken Raeburn)
Wed Aug 16 11:43:13 1995
Date: Wed, 16 Aug 1995 11:19:06 -0400
From: Ken Raeburn <raeburn@cygnus.com>
To: neal@ctd.comsat.com (Neal Becker)
Cc: pthreads@MIT.EDU
In-Reply-To: neal@ctd.comsat.com's message of Wed, 16 Aug 95 10:10:34 -0400
(EDT)
From: neal@ctd.comsat.com (Neal Becker)
Date: Wed, 16 Aug 95 10:10:34 -0400 (EDT)
Still trying to port pthreads to hpux9. The basic problem now is,
what should be used for sigset_t? If we use the real hpux definition,
Include the hpux system header file that defines the type.
Then we need a lot of fixing up, for example assignments from
__SIGEMTPYSET.
Yup.
But in pthreads/sig.c: we have definitions of the POSIX sigemptyset,
etc. HPUX already has these. Does pthreads require that sigset_t be
an int?
Rewrite those functions to declare "static const sigset_t" variables
initialized with __SIGEMPTYSET and __SIGFILLSET, and assign from
those. Then they can be defined as structure or array initializers.
(I don't know what other places might be assuming an integral type
though. Try it and see what else doesn't compile...)