[EMAIL PROTECTED] wrote:
> >Frank Van Der Linden wrote:
> >> John Zolnowsky x69422/408-404-5064 wrote:
[snip]
> >Just curious: How much room is there for more signals, e.g. how many
> >signals can the kernel handle as maximum ? 64 (=number of bits in an
> >|int64_t|) ?
> 
> API/ABI limitation:
> 
> typedef struct {                /* signal set type */
>         unsigned int    __sigbits[4];
> } sigset_t;
> 
> So that's 4x32 = 128.
> 
> The kernel currently uses only 64 bits it seems:
> 
> typedef struct {
>         unsigned int    __sigbits[2];
> } k_sigset_t;
> 
> So upto 64 seems easy and upto 128 possible.

Ok... what about the following change:
Signal bits 0-63 are used or reserved for "normal" signals and signals
from 64-95 are used by realtime signals. Anything signal numbers from
96-128 are reserved.
This would allow 32 realtime signals (like in Linux) and avoid that they
have to move each time a signal gets added...
... would that work ?

----

Bye,
Roland

-- 
  __ .  . __
 (o.\ \/ /.o) [EMAIL PROTECTED]
  \__\/\/__/  MPEG specialist, C&&JAVA&&Sun&&Unix programmer
  /O /==\ O\  TEL +49 641 7950090
 (;O/ \/ \O;)
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to