From mboxrd@z Thu Jan 1 00:00:00 1970 From: bernd@petrovitsch.priv.at (Bernd Petrovitsch) Date: Sat, 19 Mar 2011 22:43:26 +0100 Subject: Common signal handler system call In-Reply-To: References: <1300534267.23326.10.camel@thorin> Message-ID: <1300571006.23326.18.camel@thorin> To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org On Sam, 2011-03-19 at 19:48 +0530, mohit verma wrote: [...] > is there any need of raise() system call if we have kill() system > call which is capable of sending signals to the process itself? No there is no need. But at least on Fedora 13, `man 2 raise` doesn't give anything but `man 3 raise` does. The simple interpretation is that that raise() is a C library function and not a system call. Well, you can implement your idea as a library function too. Apart from the "just for fun" factor or to learn how to implement a new system call, I see no real gain to move that into kernel. > Actually there are lots of examples of this type .Some of them are for > compatibility reasons and still some are "i dont know why." :) FullACK. The system calls were defined ages ago and who knows now what and why people (and *who*) defined it, so some cruft should be expected. And since such design decision tend to live for ages, more people should throw their thoughts in ..... [...] Bernd -- Bernd Petrovitsch Email : bernd at petrovitsch.priv.at LUGA : http://www.luga.at