On Tue, Jun 15, 2010 at 6:30 PM, Siddu <siddu.sjce@xxxxxxxxx> 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 . Why not ??? Assuming 32 bit machines unsigned long int is 4 bytes, and you are declaring and array of 32 elements of 4 bytes each. > > 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 ! > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - > - - - > -- Thanks - Manish ================================== [$\*.^ -- I miss being one of them ================================== -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ