<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jun 18, 2019 at 10:57 PM Joel Sherrill <<a href="mailto:joel@rtems.org">joel@rtems.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jun 18, 2019 at 1:22 AM Vaibhav Gupta <<a href="mailto:vaibhavgupta40@gmail.com" target="_blank">vaibhavgupta40@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hello</div><div>Yesterday I was trying to update newlib/libc/search directory.</div><div>.</div><div><pre><span style="font-family:arial,sans-serif">- Updating hash.h will create need to update following files:
- hash_page.c : now requires libc_private.h
- hash_bigkey.c
- hash_buf.c
- hash.c : requires namespace.h, un-namespace.h present in posix, hence modify Makefile.am</span></pre></div></div></blockquote><div><br></div><div>FWIW namespace*.h is from BSD although it may only be used in newlib/posix. </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><pre><span style="font-family:arial,sans-serif">
- hash_fun.c
- hcreate_r.c : now requires hsearch.h/hsearch_r.c (elix 2)
- hcreate.c
- hash_log2.c<br><br></span></pre><pre><span style="font-family:arial,sans-serif">And newlib/libc/include/search.h was ported from NetBSD and not from FreeBSD, so there<br></span></pre><pre><span style="font-family:arial,sans-serif">is change in data structures, which are giving compilation errors.<br></span></pre></div></div></blockquote><div><br></div><div>What if you start with replacing search.h with the FreeBSD one rather than modifying</div><div>the one that's there? Any existing files that are impacted can then either be fixed or</div><div>updated with the current FreeBSD implementation.</div></div></div></blockquote><div>Okay, I will proceed with that. <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><div><br></div><div>It is generally better to stick close to original and traceable sources than to start</div><div>modifying.</div><div><br></div><div>Sorry for being slow/offline. Between teaching an RTEMS class, some travel,</div><div>and being sick, I am barely answering email.</div></div></div></blockquote><div>I am sorry to hear about your fever. Are you fine now?</div><div>Be comfortable, Gedare and Aditya have helped me out whenever I got stuck.</div><div><br></div><div>Vaibhav Gupta<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><div><br></div><div>--joel</div></div></div>
</blockquote></div></div>