<div dir="ltr">As suggested modified grep to use dlist instead of sys/queue.h<div><br></div><div>regards,</div><div>Ashwini<br><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Dec 6, 2013 at 11:12 PM, <span dir="ltr"><<a href="mailto:ibid.ag@gmail.com" target="_blank">ibid.ag@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Fri, Dec 06, 2013 at 06:44:36PM +0530, Ashwini Sharma wrote:<br>
> Hi Rob, list,<br>
><br>
> _-B_ option support for printing leading context lines, before the match, is<br>
> added to grep command.<br>
<br>
</div>I suppose this is something you use, rather than a feature you noticed<br>
was not present?<br>
<div class="im"><br>
> The implementation is based on the queue. Used sys/queue for the purpose.<br>
<br>
</div>Please not that way. Would you mind doing it by way of llist/dlist?<br>
<br>
I say this because sys/queue.h is not part of POSIX, but rather a BSD<br>
header (consisting entirely of macros).<br>
And since it's BSD, it has a 3-clause BSD license.<br>
So musl does not include this header due to a policy that all headers<br>
should be public domain, and I imagine that Rob would not like to add a<br>
3-clause header that duplicates the llist/dlist code (in llist.c).<br>
<div class="im"><br>
> Have a glance at the same.<br>
><br>
> Regards,<br>
> Ashwini<br>
<br>
</div>Thanks,<br>
Isaac Dunham<br>
</blockquote></div><br></div></div></div>