I checked the value of (1024 / (8 * sizeof (unsigned long int))) and it is 32 
on both our mips, mips64, and x86 targets. Calling ppoll fails with invalid 
argument error in all of these cases. I don't see a user/include/sigset/bits.h 
header in our userland, but _SIGSET_NWORDS macro also returns 32 when printed 
out.

> -----Original Message-----
> From: Cyril Hrubis [mailto:[email protected]]
> Sent: Monday, November 16, 2009 8:23 AM
> To: Henry Yei
> Cc: [email protected]
> Subject: Re: [LTP] rt_sigqueueinfo
> 
> Hi!
> > For the rt_sig* tests I have some changes in my internal tree to set
> SIGSETSIZE depending on arch rather than to use the hardcoded value of
> 8 in orderto fix mips failures. Please consider folding this change
> into your proposal. I've submitted similar changes in a recent ppoll01
> patch, and am awaiting comments on correctness.
> >
> > Ex)
> >
> > +#if defined (__mips__)
> > +#define SIGSETSIZE 16
> > +#else
> > +#define SIGSETSIZE 8
> > +#endif
> >
> > -TEST(syscall(__NR_rt_sigprocmask, SIG_BLOCK, &set, &oset,
> >                                     8));
> > +TEST(syscall(__NR_rt_sigprocmask, SIG_BLOCK, &set, &oset,
> >                                     SIGSETSIZE));
> >
> 
> Well there is _SIGSET_NWORDS macro defined in my
> /usr/include/sigset/bits.h
> header and it's defined as  (1024 / (8 * sizeof (unsigned long int).
> Anyway
> this should be moved to some header in $LTPROOT/include/ or better we
> should
> test for _SIGSET_NWORDS aviability in configure script.
> 
> --
> Cyril Hrubis
> [email protected]

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to