<br><br><div class="gmail_quote">On Sun, Mar 20, 2011 at 3:13 AM, Bernd Petrovitsch <span dir="ltr">&lt;<a href="mailto:bernd@petrovitsch.priv.at">bernd@petrovitsch.priv.at</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
On Sam, 2011-03-19 at 19:48 +0530, mohit verma wrote: [...]<br>
<div class="im">&gt;    is there any need of raise() system call if we have kill() system<br>
&gt; call which  is capable of sending signals to the process itself?<br>
<br>
</div>No there is no need. But at least on Fedora 13, `man 2 raise` doesn&#39;t<br>
give anything but `man 3 raise` does. The simple interpretation is that<br>
that raise() is a C library function and not a system call.<br></blockquote><div><br></div><div>Yeah , i almost forgot that. thanks.  But here is a solid example ( i think) : clone(2) and fork(2) system calls. clone() is internally handled by fork handlers. </div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
Well, you can implement your idea as a library function too.<br>
Apart from the &quot;just for fun&quot; factor or to learn how to implement a new<br>
system call, I see no real gain to move that into kernel.<br></blockquote><div><br></div><div>I think it should be there in kernel not because it is my idea but for good reasons (personally think so). </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div class="im"><br>
&gt; Actually there are lots of examples of this type .Some of them are for<br>
&gt; compatibility  reasons  and still some are &quot;i dont know why.&quot; :)<br>
<br>
</div>FullACK. The system calls were defined ages ago and who knows now what<br>
and why people (and *who*) defined it, so some cruft should be expected.<br>
And since such design decision tend to live for ages, more people should<br>
throw their thoughts in .....<br>
[...]<br>
<div><div></div><div class="h5">Bernd<br>
--<br>
Bernd Petrovitsch                  Email : <a href="mailto:bernd@petrovitsch.priv.at">bernd@petrovitsch.priv.at</a><br>
                     LUGA : <a href="http://www.luga.at" target="_blank">http://www.luga.at</a><br>
<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>........................<div><i>MOHIT VERMA</i></div><br>