<div><div dir="auto">This is probably the best starting point, even if not that great:</div></div><div dir="auto"><div><a href="https://codesearch.isocpp.org/cgi-bin/cgi_ppsearch?q=signal&search=Search">https://codesearch.isocpp.org/cgi-bin/cgi_ppsearch?q=signal&search=Search</a></div><br></div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Jun 2, 2019 at 1:00 PM Niall Douglas <<a href="mailto:s_sourceforge@nedprod.com">s_sourceforge@nedprod.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">>> If not, and particularly if a majority on SG12 agrees me with that<br>
>> signal() is almost useless and almost no newly written production code<br>
>> written in the past 20 years has used it, would SG12 prefer to see a<br>
>> proposed wholesale replacement for signal(), which we send to deprecation?<br>
> <br>
> Sounds plausible. Do we have any code search results about the use of signal()?<br>
<br>
Sigh. I knew somebody was going to ask that.<br>
<br>
It's a great question, but since Google Code Search shut down, I am<br>
unaware of any free of cost search engine which can case sensitively<br>
match "[^a-z0-9_:]signal\(", and which has a non-toy corpus.<br>
<br>
As an illustration of how impossible current search tooling is:<br>
<br>
Probably accurate enough 554K results<br>
<a href="https://github.com/search?q=extension%3Ac+extension%3Acpp+%22sigaction+sig%22" rel="noreferrer" target="_blank">https://github.com/search?q=extension%3Ac+extension%3Acpp+%22sigaction+sig%22</a><br>
<br>
Confounded by Qt 621k results<br>
<a href="https://github.com/search?q=extension%3Ac+extension%3Acpp+%22signal+sig%22" rel="noreferrer" target="_blank">https://github.com/search?q=extension%3Ac+extension%3Acpp+%22signal+sig%22</a><br>
<br>
<br>
I can't get the regex search on <a href="http://opensearch.krugle.org" rel="noreferrer" target="_blank">http://opensearch.krugle.org</a> to work.<br>
<br>
<a href="https://searchcode.com/" rel="noreferrer" target="_blank">https://searchcode.com/</a> no longer appears to match punctuation nor case.<br>
<br>
Chromium code search works well:<br>
<a href="https://cs.chromium.org/search/?q=%5B%5Ea-z0-9_:%5Dsignal%5C(+case:yes&type=cs" rel="noreferrer" target="_blank">https://cs.chromium.org/search/?q=%5B%5Ea-z0-9_:%5Dsignal%5C(+case:yes&type=cs</a><br>
shows that the only use of standard signal() is for a unit test on<br>
non-POSIX platforms. sigaction() is used throughout:<br>
<a href="https://cs.chromium.org/search/?q=%5B%5Ea-z0-9_:%5Dsigaction%5C(+case:yes&type=cs" rel="noreferrer" target="_blank">https://cs.chromium.org/search/?q=%5B%5Ea-z0-9_:%5Dsigaction%5C(+case:yes&type=cs</a>.<br>
But that's one, modern, codebase. Hardly representative.<br>
<br>
<br>
If anybody reading can help with giving a better answer to Ville's<br>
question, it would be very useful.<br>
<br>
Niall<br>
_______________________________________________<br>
ub mailing list<br>
<a href="mailto:ub@isocpp.open-std.org" target="_blank">ub@isocpp.open-std.org</a><br>
<a href="http://www.open-std.org/mailman/listinfo/ub" rel="noreferrer" target="_blank">http://www.open-std.org/mailman/listinfo/ub</a><br>
</blockquote></div></div>