On Wed, Jun 16, 2010 at 9:08 AM, Peter Teoh <htmldevelo...@gmail.com> wrote:
> On Tue, Jun 15, 2010 at 9:00 PM, Siddu <siddu.s...@gmail.com> wrote: > > Hello all, > > > > I came across an article (http://www.linuxjournal.com/article/6483) > about > > signals . Its a very nice article > > > > It says and also i verified that the size of sigset_t showing 128 bytes ? > > > > while code from /* /usr/include/bits/sigset.h */ > > > > "Maybe this is not the right place to ask this .... Sorry, Hoping someone > > would be knowing the answer " > > > > # define _SIGSET_NWORDS (1024 / (8 * sizeof (unsigned long int))) > > typedef struct > > { > > unsigned long int __val[_SIGSET_NWORDS]; > > } __sigset_t; > > > > typedef __sigset_t sigset_t; > > > > which is definitely not 128 bytes . > > > yes but it is!!! > > 1024/64 > 16 > 8*16 > 128 > > unsigned long int = 8 fyi. > It could also be possible like this On my machine unsigned long int = 4 bytes 1024 / (8 * 4) = 32 32 * 4 = 128 bytes > > > > > Thanks for your inputs ! > > > > -- > > Regards, > > ~Sid~ > > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - > - > > - - - > > Gazing through the window at the world outside, > > Wondering will mother earth survive ? > > Hoping that the mankind will stop abusing her > > Sometime ! > > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - > - > > - - - > > > > > > -- > Regards, > Peter Teoh > -- Regards, ~Sid~ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Gazing through the window at the world outside, Wondering will mother earth survive ? Hoping that the mankind will stop abusing her Sometime ! - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -