<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Mar 25, 2020 at 4:09 PM Eshan Dhawan <<a href="mailto:eshandhawan51@gmail.com">eshandhawan51@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 dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Mar 26, 2020 at 1:03 AM Joel Sherrill <<a href="mailto:joel@rtems.org" target="_blank">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 Wed, Mar 25, 2020 at 12:17 AM Eshan Dhawan <<a href="mailto:eshandhawan51@gmail.com" target="_blank">eshandhawan51@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 dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Mar 25, 2020 at 4:01 AM Joel Sherrill <<a href="mailto:joel@rtems.org" target="_blank">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, Mar 24, 2020 at 4:57 PM Eshan Dhawan <<a href="mailto:eshandhawan51@gmail.com" target="_blank">eshandhawan51@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 everyone,</div><div>As <a class="gmail_plusreply" id="gmail-m_8483369190912584839gmail-m_2395211683405531058gmail-m_7264151322156336212gmail-m_6755986261809983477gmail-m_4381290465950915824plusReplyChip-3" href="mailto:vaibhav.varodek@gmail.com" target="_blank">@Vaibhav Gupta</a> suggested I have also added adding file descriptor functions to my GSOC project.</div><div>I went through the mailing list archives for more information.<br></div><div>RTEMS as its own file descriptor so the functions need to be implemented from scratch.<br></div><div>I wanted to get more information related to it.<br></div></div></blockquote><div><br></div><div>What's the set of functions you are proposing for those not tracking your draft proposal? </div></div></div></blockquote><div>Link: <a href="https://docs.google.com/document/d/1n-JOFUbFn6V1kViAGWsEGbVHL9MxlMyKP0BbZhEA1Rs/edit?usp=sharing" target="_blank">https://docs.google.com/document/d/1n-JOFUbFn6V1kViAGWsEGbVHL9MxlMyKP0BbZhEA1Rs/edit?usp=sharing</a></div><div>I haven't searched about the functions in the list yet. The list was made by Vaibhav, last year and he told me that it could be added to proposal this year as well.<br></div><div>I read the archives that these need to be written from scratch.<br></div></div></div></blockquote><div><br></div><div><br></div><div>Maybe not. I found at least this implementation of renameat() which was implemented on top of existing calls:</div><div><br></div><div><a href="https://github.com/lattera/freebsd/blob/master/contrib/openbsm/bin/auditdistd/renameat.h" target="_blank">https://github.com/lattera/freebsd/blob/master/contrib/openbsm/bin/auditdistd/renameat.h</a></div><div><br></div><div>It should be in a C file but that shows it can be done. That directory has a lot of these methods.</div><div><br></div><div>NOTE: That list has fstat() while I am sure it should be fstatat.<br><br></div></div></div></blockquote><div>The list has fstatat as well.<br></div><div>I will recheck the list and will run a search to confirm that list doesn't contain any function that has been already implemented :)<br></div></div></div></blockquote><div><br></div><div>The COmpliance Guide is an easy place to search for things. Grep for like "at()" and ignore methods like strcat(). :)</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></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></div><div><br></div><div>I would move these up the list since they look easy to port from that source. Convert them from .h to .c, and we can discuss adding them to newlib.<br><br></div></div></div></blockquote><div><a class="gmail_plusreply" id="gmail-m_8483369190912584839plusReplyChip-5" href="mailto:aadit0402@gmail.com" target="_blank">@Aditya Upadhyay</a> told that need to be added to RTEMS libbsd <br></div></div></div></blockquote><div><br></div><div>That is the most straightforward way to import non-essential POSIX methods that we are taking from FreeBSD. But the implementation I found listed above appears to be completely portable and not require any new system calls or peeks below POSIX APIs. These are not frequently used methods and adding them would be good for all newlib users this way.</div><div><br></div><div>We just didn't find that implementation in the past. I'm thrilled it exists. Easier to add.</div><div><br></div><div>--joel </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></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></div><div><br></div><div>--joel</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></div><div> <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"><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></div><div><br></div><div>thanks <br></div><div>-Eshan <br></div></div>
</blockquote></div></div>
</blockquote></div></div>
</blockquote></div></div>
</blockquote></div></div>
</blockquote></div></div>